101 lines
2.3 KiB
Java
101 lines
2.3 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.data;
|
|
|
|
import com.tridium.data.BDataRow;
|
|
import javax.baja.collection.BITable;
|
|
import javax.baja.collection.Column;
|
|
import javax.baja.collection.TableCursor;
|
|
import javax.baja.data.BIDataTable;
|
|
import javax.baja.sys.BFacets;
|
|
import javax.baja.sys.BObject;
|
|
import javax.baja.sys.Context;
|
|
|
|
public class DataTableCursor
|
|
implements TableCursor {
|
|
private BIDataTable table;
|
|
private int row;
|
|
private BDataRow rowObject;
|
|
|
|
public Context getContext() {
|
|
return null;
|
|
}
|
|
|
|
public BITable getTable() {
|
|
return this.table;
|
|
}
|
|
|
|
public boolean next() {
|
|
int n = this.table.size();
|
|
if (this.row != n) {
|
|
++this.row;
|
|
boolean bl = false;
|
|
if (this.row != n) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public boolean nextComponent() {
|
|
return false;
|
|
}
|
|
|
|
public boolean next(Class clazz) {
|
|
return false;
|
|
}
|
|
|
|
public BObject get() {
|
|
if (this.rowObject == null) {
|
|
this.rowObject = new BDataRow(this.table, this.row);
|
|
} else {
|
|
this.rowObject.setRow(this.row);
|
|
}
|
|
return this.rowObject;
|
|
}
|
|
|
|
public BObject get(Column column) {
|
|
return this.table.get(this.row, column);
|
|
}
|
|
|
|
public String getString(Column column) {
|
|
return this.table.getString(this.row, column);
|
|
}
|
|
|
|
public double getDouble(Column column) {
|
|
return this.table.getDouble(this.row, column);
|
|
}
|
|
|
|
public float getFloat(Column column) {
|
|
return this.table.getFloat(this.row, column);
|
|
}
|
|
|
|
public int getInt(Column column) {
|
|
return this.table.getInt(this.row, column);
|
|
}
|
|
|
|
public long getLong(Column column) {
|
|
return this.table.getLong(this.row, column);
|
|
}
|
|
|
|
public boolean getBoolean(Column column) {
|
|
return this.table.getBoolean(this.row, column);
|
|
}
|
|
|
|
public int getFlags(Column column) {
|
|
return this.table.getFlags(this.row, column);
|
|
}
|
|
|
|
public BFacets getFacets(Column column) {
|
|
return this.table.getFacets(this.row, column);
|
|
}
|
|
|
|
public DataTableCursor(BIDataTable bIDataTable) {
|
|
this.table = bIDataTable;
|
|
this.row = -1;
|
|
}
|
|
}
|
|
|