|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.interfaceware.chameleon.Table
public class Table
This class handles Table objects. This class gives the interface to the basic data container in the Chameleon framework: a nested in-memory table.
Field Summary | |
---|---|
protected long |
m_TableHandle
The table handle member variable. |
Constructor Summary | |
---|---|
Table()
Construct a Table object. |
|
Table(long Handle)
Construct a Table object with the specified table handle. |
|
Table(long Handle,
boolean IsOwner)
Construct a Table object with the specified table handle. |
Method Summary | |
---|---|
void |
addRow()
Add a row to the table. |
protected void |
CHMtableAddRef(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected void |
CHMtableAddRow(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableColumnIndex(long TableHandle,
java.lang.String ColumnName)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected java.lang.String |
CHMtableColumnName(long TableHandle,
int ColumnIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableColumnType(long TableHandle,
int ColumnIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableCountOfColumn(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableCountOfRow(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableCountOfSubTable(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected long |
CHMtableCreate()
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected java.lang.String |
CHMtableDump(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected long |
CHMtableGetDateTime(long TableHandle,
int ColumnIndex,
int RowIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected double |
CHMtableGetDouble(long TableHandle,
int ColumnIndex,
int RowIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableGetInteger(long TableHandle,
int ColumnIndex,
int RowIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected java.lang.String |
CHMtableGetString(long TableHandle,
int ColumnIndex,
int RowInde)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected boolean |
CHMtableIsNull(long TableHandle,
int ColumnIndex,
int RowIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected java.lang.String |
CHMtableName(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected void |
CHMtableRelease(long TableHandle)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected void |
CHMtableSetDateTime(long TableHandle,
int ColumnIndex,
int RowIndex,
long DateTimeHandleValue)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected void |
CHMtableSetDouble(long TableHandle,
int ColumnIndex,
int RowIndex,
double Value)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected void |
CHMtableSetInteger(long TableHandle,
int ColumnIndex,
int RowIndex,
int Value)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected void |
CHMtableSetString(long TableHandle,
int ColumnIndex,
int RowIndex,
java.lang.String Value)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected int |
CHMtableState(long TableHandle,
int ColumnIndex,
int RowIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
protected long |
CHMtableSubTable(long TableHandle,
int RowIndex,
int TableIndex)
Used in the internal implementation of Chameleon; should not be invoked directly. |
int |
columnIndex(java.lang.String ColumnName)
Get the column index of the column named ColumnName . |
java.lang.String |
columnName(int ColumnIndex)
Get the table column name. |
int |
columnType(int ColumnIndex)
Get the column type of the column at the specified column index. |
int |
countOfColumn()
Get the number of table columns. |
int |
countOfRow()
Get the number of table rows. |
int |
countOfSubTable()
Get the number of sub-tables. |
protected void |
finalize()
Finalizer that invokes the release method. |
ChameleonDateTime |
getDate(int ColumnIndex,
int RowIndex)
Get the date/time value at ColumnIndex and RowIndex . |
double |
getdouble(int ColumnIndex,
int RowIndex)
Get the double value at ColumnIndex and RowIndex . |
java.lang.Double |
getDouble(int ColumnIndex,
int RowIndex)
Get the Double value at ColumnIndex and RowIndex . |
java.lang.Integer |
getInteger(int ColumnIndex,
int RowIndex)
Get the Integer value at ColumnIndex and RowIndex . |
int |
getState(int ColumnIndex,
int RowIndex)
Test the value in the cell at row RowIndex and column ColumnIndex to see if it is null, zero, empty or invalid. |
java.lang.String |
getString(int ColumnIndex,
int RowIndex)
Get the String value at ColumnIndex and RowIndex . |
long |
handle()
Get the table handle. |
boolean |
isNull(int ColumnIndex,
int RowIndex)
Check if the value at ColumnIndex and RowIndex is null. |
void |
release()
Free the Table object handle. |
void |
setDate(int ColumnIndex,
int RowIndex,
ChameleonDateTime Value)
Set the value at ColumnIndex and RowIndex of a date/time-type column. |
void |
setdouble(int ColumnIndex,
int RowIndex,
double Value)
Set the value at ColumnIndex and RowIndex of a double-type column. |
void |
setDouble(int ColumnIndex,
int RowIndex,
java.lang.Double Value)
Set the value at ColumnIndex and RowIndex of a Double-type column. |
void |
setInteger(int ColumnIndex,
int RowIndex,
int Value)
Set the value at ColumnIndex and RowIndex of an integer-type column. |
void |
setInteger(int ColumnIndex,
int RowIndex,
java.lang.Integer Value)
Set the value at ColumnIndex and RowIndex of an Integer-type column. |
void |
setString(int ColumnIndex,
int RowIndex,
java.lang.String Value)
Set the value at ColumnIndex and RowIndex of a String-type
column. |
Table |
subTable(int RowIndex,
int TableIndex)
Get the sub-table with the specified row and table index. |
java.lang.String |
tableName()
Get the table name. |
java.lang.String |
toString()
Convert the table data to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long m_TableHandle
Constructor Detail |
---|
public Table() throws ChameleonException
ChameleonException
public Table(long Handle) throws ChameleonException
ChameleonException
public Table(long Handle, boolean IsOwner) throws ChameleonException
ChameleonException
Method Detail |
---|
public void release() throws ChameleonException
ChameleonException
protected void finalize() throws ChameleonException
finalize
in class java.lang.Object
ChameleonException
public java.lang.String tableName() throws ChameleonException
ChameleonException
public int countOfColumn() throws ChameleonException
columnName
offers an easy way
to iterate through the columns in the table.
ChameleonException
public int countOfRow() throws ChameleonException
ChameleonException
public int countOfSubTable() throws ChameleonException
ChameleonException
public Table subTable(int RowIndex, int TableIndex) throws ChameleonException
ChameleonException
public java.lang.String columnName(int ColumnIndex) throws ChameleonException
countOfColumn
offers an easy way to iterate through the columns in a table.
ChameleonException
public int columnIndex(java.lang.String ColumnName) throws ChameleonException
ColumnName
.
Returns -1 if there is no column with that name.
ChameleonException
public int columnType(int ColumnIndex) throws ChameleonException
ChameleonException
DataType
,
http://www.interfaceware.com/manual/table_properties.htmlpublic void addRow() throws ChameleonException
ChameleonException
public void setString(int ColumnIndex, int RowIndex, java.lang.String Value) throws ChameleonException
ColumnIndex
and RowIndex
of a String-type
column. Throws an exception if the data type doesn't match.
ChameleonException
public void setDouble(int ColumnIndex, int RowIndex, java.lang.Double Value) throws ChameleonException
ColumnIndex
and RowIndex
of a Double-type column.
Throws an exception if the data type doesn't match.
ChameleonException
public void setdouble(int ColumnIndex, int RowIndex, double Value) throws ChameleonException
ColumnIndex
and RowIndex
of a double-type column.
Throws an exception if the data type doesn't match.
ChameleonException
public void setInteger(int ColumnIndex, int RowIndex, int Value) throws ChameleonException
ColumnIndex
and RowIndex
of an integer-type column.
Throws an exception if the data type doesn't match.
ChameleonException
public void setInteger(int ColumnIndex, int RowIndex, java.lang.Integer Value) throws ChameleonException
ColumnIndex
and RowIndex
of an Integer-type column.
Throws an exception if the data type doesn't match.
ChameleonException
public void setDate(int ColumnIndex, int RowIndex, ChameleonDateTime Value) throws ChameleonException
ColumnIndex
and RowIndex
of a date/time-type column.
Throws an exception if the data type doesn't match.
ChameleonException
public ChameleonDateTime getDate(int ColumnIndex, int RowIndex) throws ChameleonException
ColumnIndex
and RowIndex
.
Throws an exception if the data type doesn't match.
ChameleonException
public java.lang.Integer getInteger(int ColumnIndex, int RowIndex) throws ChameleonException
ColumnIndex
and RowIndex
.
Throws an exception if the data type doesn't match.
ChameleonException
public java.lang.String getString(int ColumnIndex, int RowIndex) throws ChameleonException
ColumnIndex
and RowIndex
.
Throws an exception if the data type doesn't match.
ChameleonException
public java.lang.Double getDouble(int ColumnIndex, int RowIndex) throws ChameleonException
ColumnIndex
and RowIndex
.
Throws an exception if the data type doesn't match.
ChameleonException
public double getdouble(int ColumnIndex, int RowIndex) throws ChameleonException
ColumnIndex
and RowIndex
.
Throws an exception if the data type doesn't match.
ChameleonException
public boolean isNull(int ColumnIndex, int RowIndex) throws ChameleonException
ColumnIndex
and RowIndex
is null.
ChameleonException
public int getState(int ColumnIndex, int RowIndex) throws ChameleonException
RowIndex
and column ColumnIndex
to see if it is null, zero, empty or invalid.
ChameleonException
public final java.lang.String toString()
toString
in class java.lang.Object
public long handle()
protected long CHMtableCreate() throws ChameleonException
ChameleonException
protected void CHMtableAddRef(long TableHandle) throws ChameleonException
ChameleonException
protected void CHMtableRelease(long TableHandle) throws ChameleonException
ChameleonException
protected java.lang.String CHMtableName(long TableHandle) throws ChameleonException
ChameleonException
protected long CHMtableSubTable(long TableHandle, int RowIndex, int TableIndex) throws ChameleonException
ChameleonException
protected int CHMtableCountOfColumn(long TableHandle) throws ChameleonException
ChameleonException
protected int CHMtableCountOfRow(long TableHandle) throws ChameleonException
ChameleonException
protected int CHMtableCountOfSubTable(long TableHandle) throws ChameleonException
ChameleonException
protected int CHMtableColumnType(long TableHandle, int ColumnIndex) throws ChameleonException
ChameleonException
protected java.lang.String CHMtableColumnName(long TableHandle, int ColumnIndex) throws ChameleonException
ChameleonException
protected int CHMtableColumnIndex(long TableHandle, java.lang.String ColumnName) throws ChameleonException
ChameleonException
protected boolean CHMtableIsNull(long TableHandle, int ColumnIndex, int RowIndex) throws ChameleonException
ChameleonException
protected int CHMtableState(long TableHandle, int ColumnIndex, int RowIndex) throws ChameleonException
ChameleonException
protected java.lang.String CHMtableGetString(long TableHandle, int ColumnIndex, int RowInde) throws ChameleonException
ChameleonException
protected double CHMtableGetDouble(long TableHandle, int ColumnIndex, int RowIndex) throws ChameleonException
ChameleonException
protected int CHMtableGetInteger(long TableHandle, int ColumnIndex, int RowIndex) throws ChameleonException
ChameleonException
protected long CHMtableGetDateTime(long TableHandle, int ColumnIndex, int RowIndex) throws ChameleonException
ChameleonException
protected void CHMtableSetString(long TableHandle, int ColumnIndex, int RowIndex, java.lang.String Value) throws ChameleonException
ChameleonException
protected void CHMtableSetDouble(long TableHandle, int ColumnIndex, int RowIndex, double Value) throws ChameleonException
ChameleonException
protected void CHMtableSetInteger(long TableHandle, int ColumnIndex, int RowIndex, int Value) throws ChameleonException
ChameleonException
protected void CHMtableSetDateTime(long TableHandle, int ColumnIndex, int RowIndex, long DateTimeHandleValue) throws ChameleonException
ChameleonException
protected void CHMtableAddRow(long TableHandle) throws ChameleonException
ChameleonException
protected java.lang.String CHMtableDump(long TableHandle) throws ChameleonException
ChameleonException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |