166 lines
3.8 KiB
Java
166 lines
3.8 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.bql.collection.BqlColumn
|
|
* javax.baja.collection.BITable
|
|
* javax.baja.collection.Column
|
|
* javax.baja.collection.TableCursor
|
|
* javax.baja.nre.util.IFilter
|
|
* javax.baja.sys.BFacets
|
|
* javax.baja.sys.BObject
|
|
* javax.baja.sys.Context
|
|
* javax.baja.sys.Cursor
|
|
*/
|
|
package com.tridium.alarm;
|
|
|
|
import com.tridium.bql.collection.BqlColumn;
|
|
import javax.baja.collection.BITable;
|
|
import javax.baja.collection.Column;
|
|
import javax.baja.collection.TableCursor;
|
|
import javax.baja.nre.util.IFilter;
|
|
import javax.baja.sys.BFacets;
|
|
import javax.baja.sys.BObject;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Cursor;
|
|
|
|
public class AlarmTableCursor
|
|
implements TableCursor {
|
|
private BITable table;
|
|
private Cursor inner;
|
|
private IFilter filter;
|
|
private Context context;
|
|
|
|
/*
|
|
* Unable to fully structure code
|
|
*/
|
|
public boolean next() {
|
|
if (this.filter != null) ** GOTO lbl6
|
|
return this.inner.next();
|
|
lbl-1000:
|
|
// 1 sources
|
|
|
|
{
|
|
var1_1 = this.inner.get();
|
|
if (!this.filter.accept((Object)var1_1)) continue;
|
|
return true;
|
|
lbl6:
|
|
// 2 sources
|
|
|
|
** while (this.inner.next())
|
|
}
|
|
lbl7:
|
|
// 1 sources
|
|
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
* Unable to fully structure code
|
|
*/
|
|
public boolean next(Class var1_1) {
|
|
if (this.filter != null) ** GOTO lbl6
|
|
return this.inner.next(var1_1);
|
|
lbl-1000:
|
|
// 1 sources
|
|
|
|
{
|
|
var2_2 = this.inner.get();
|
|
if (!this.filter.accept((Object)var2_2)) continue;
|
|
return true;
|
|
lbl6:
|
|
// 2 sources
|
|
|
|
** while (this.inner.next((Class)var1_1))
|
|
}
|
|
lbl7:
|
|
// 1 sources
|
|
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
* Unable to fully structure code
|
|
*/
|
|
public boolean nextComponent() {
|
|
if (this.filter != null) ** GOTO lbl6
|
|
return this.inner.nextComponent();
|
|
lbl-1000:
|
|
// 1 sources
|
|
|
|
{
|
|
var1_1 = this.inner.get();
|
|
if (!this.filter.accept((Object)var1_1)) continue;
|
|
return true;
|
|
lbl6:
|
|
// 2 sources
|
|
|
|
** while (this.inner.nextComponent())
|
|
}
|
|
lbl7:
|
|
// 1 sources
|
|
|
|
return false;
|
|
}
|
|
|
|
public BITable getTable() {
|
|
return this.table;
|
|
}
|
|
|
|
public Context getContext() {
|
|
return this.inner.getContext();
|
|
}
|
|
|
|
public BObject get() {
|
|
return this.inner.get();
|
|
}
|
|
|
|
public BObject get(Column column) {
|
|
return ((BqlColumn)column).get(this.inner.get());
|
|
}
|
|
|
|
public String getString(Column column) {
|
|
return ((BqlColumn)column).getString(this.inner.get());
|
|
}
|
|
|
|
public float getFloat(Column column) {
|
|
return ((BqlColumn)column).getFloat(this.inner.get());
|
|
}
|
|
|
|
public double getDouble(Column column) {
|
|
return ((BqlColumn)column).getDouble(this.inner.get());
|
|
}
|
|
|
|
public int getInt(Column column) {
|
|
return ((BqlColumn)column).getInt(this.inner.get());
|
|
}
|
|
|
|
public long getLong(Column column) {
|
|
return ((BqlColumn)column).getLong(this.inner.get());
|
|
}
|
|
|
|
public boolean getBoolean(Column column) {
|
|
return ((BqlColumn)column).getBoolean(this.inner.get());
|
|
}
|
|
|
|
public int getFlags(Column column) {
|
|
return ((BqlColumn)column).getFlags(this.inner.get());
|
|
}
|
|
|
|
public BFacets getFacets(Column column) {
|
|
return ((BqlColumn)column).getFacets(this.inner.get());
|
|
}
|
|
|
|
public AlarmTableCursor(BITable bITable, Cursor cursor) {
|
|
this.table = bITable;
|
|
this.inner = cursor;
|
|
}
|
|
|
|
public AlarmTableCursor(BITable bITable, Cursor cursor, IFilter iFilter) {
|
|
this.table = bITable;
|
|
this.inner = cursor;
|
|
this.filter = iFilter;
|
|
}
|
|
}
|
|
|