|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.table.DefaultTable
public class DefaultTable
Constructor Summary | |
---|---|
DefaultTable(java.lang.String tableName,
java.lang.String[] columnNames,
int[] columnTypes)
|
|
DefaultTable(java.lang.String tableName,
java.lang.String[] columnNames,
int[] columnTypes,
int initialCapacity)
|
|
DefaultTable(java.lang.String tableName,
java.lang.String[] columnNames,
int[] columnTypes,
java.lang.Object[][] data)
|
Method Summary | |
---|---|
void |
addColumn(java.lang.String name,
int type)
adds a new column to the table. for this a computional expensive operation this method should be used with care. |
void |
appendRow(java.lang.Object[] data)
appends a row to the table and sets its data |
int |
getColumnCount()
returns the number columns of the table |
int |
getColumnIndex(java.lang.String columnName)
returns the index of the submitted columns name. |
java.lang.String |
getColumnName(int col)
returns the name of the specified column. |
java.lang.String[] |
getColumnNames()
returns the names of all table columns. |
int |
getColumnType(int col)
returns the name of the type of the specifies column. |
int[] |
getColumnTypes()
returns the names of all column types. |
java.lang.Object[] |
getRow(int row)
returns the data of the row'th row of the table |
int |
getRowCount()
returns the number rows of the table |
java.lang.String |
getTableName()
returns the name of the table. |
java.lang.Object |
getValueAt(int row,
int col)
returns the value of the table field indexed by row and col |
java.lang.Object[] |
removeRow(int index)
removes a row from the table |
void |
setColumnName(int col,
java.lang.String name)
sets the name of a column. |
void |
setColumnType(int col,
int type)
sets the type of a column. |
void |
setRow(java.lang.Object[] data,
int row)
sets the data of the row'th row |
void |
setTableName(java.lang.String tableName)
|
void |
setValueAt(java.lang.Object value,
int row,
int col)
set a value at the table field indexed by row and col |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTable(java.lang.String tableName, java.lang.String[] columnNames, int[] columnTypes) throws TableException
tableName
- columnNames
- columnTypes
-
TableException
public DefaultTable(java.lang.String tableName, java.lang.String[] columnNames, int[] columnTypes, java.lang.Object[][] data) throws TableException
tableName
- columnNames
- columnTypes
- data
-
TableException
public DefaultTable(java.lang.String tableName, java.lang.String[] columnNames, int[] columnTypes, int initialCapacity) throws TableException
tableName
- columnNames
- columnTypes
- initialCapacity
-
TableException
Method Detail |
---|
public java.lang.String getTableName()
getTableName
in interface Table
public void setTableName(java.lang.String tableName)
setTableName
in interface Table
getTableName()
public java.lang.Object getValueAt(int row, int col)
getValueAt
in interface Table
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface Table
public java.lang.Object[] getRow(int row)
getRow
in interface Table
public void setRow(java.lang.Object[] data, int row) throws TableException
setRow
in interface Table
TableException
public void appendRow(java.lang.Object[] data) throws TableException
appendRow
in interface Table
TableException
public int getRowCount()
getRowCount
in interface Table
public void addColumn(java.lang.String name, int type)
addColumn
in interface Table
public int getColumnCount()
getColumnCount
in interface Table
public java.lang.String[] getColumnNames()
getColumnNames
in interface Table
public java.lang.String getColumnName(int col)
getColumnName
in interface Table
public int[] getColumnTypes()
getColumnTypes
in interface Table
public int getColumnType(int col)
getColumnType
in interface Table
public void setColumnType(int col, int type) throws TableException
setColumnType
in interface Table
TableException
public void setColumnName(int col, java.lang.String name)
setColumnName
in interface Table
public java.lang.Object[] removeRow(int index)
removeRow
in interface Table
index
-
public int getColumnIndex(java.lang.String columnName)
getColumnIndex
in interface Table
columnName
- public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org