|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--kotkabeans.RSMetaData
Stores data of ResultSetMetaData. Info of one column is saved in RSColumn object and all columns are in ArrayList which starts from index 1.
ResultSetMetaData,
RSContainer| Nested Class Summary | |
protected class |
RSMetaData.RSColumn
Stores info of one column of ResultSetMetaData |
| Field Summary | |
protected int |
columnCount
|
protected RSMetaData.RSColumn[] |
columns
|
| Constructor Summary | |
RSMetaData()
Dummy empty constructor. |
|
RSMetaData(java.sql.ResultSetMetaData rsmd)
Constructor with ResultSetMetaData as parameter |
|
| Method Summary | |
int |
getColumnCount()
Returns the number of columns in this RSContainer object. |
int |
getColumnIndex(java.lang.String columnName)
Returns the fully-qualified name of the Java class whose instances are manufactured if the method RSContainer.getObject is called to retrieve a value from the column. |
java.lang.String |
getColumnLabel(int column)
Gets the wanted column's suggested title for use in printouts and displays. |
java.lang.String |
getColumnName(int column)
Get wanted column's name. |
int |
getColumnType(int column)
Retrieves the wanted column's SQL type. |
java.lang.String |
getColumnTypeName(int column)
Retrieves the wanted column's database-specific type name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int columnCount
protected RSMetaData.RSColumn[] columns
| Constructor Detail |
public RSMetaData()
public RSMetaData(java.sql.ResultSetMetaData rsmd)
throws java.sql.SQLException
| Method Detail |
public int getColumnCount()
public java.lang.String getColumnName(int column)
throws java.lang.IndexOutOfBoundsException
column - the first column is 1, the second is 2, ...
java.lang.IndexOutOfBoundsException - if column is out of range (column<0 || column>=getColumCount())
public java.lang.String getColumnLabel(int column)
throws java.lang.IndexOutOfBoundsException
column - the first column is 1, the second is 2, ...
java.lang.IndexOutOfBoundsException - if column is out of range (column<0 || column>=getColumCount())
public int getColumnType(int column)
throws java.lang.IndexOutOfBoundsException
column - the first column is 1, the second is 2, ...
java.lang.IndexOutOfBoundsException - if column is out of range (column<0 || column>=getColumCount())
public java.lang.String getColumnTypeName(int column)
throws java.lang.IndexOutOfBoundsException
column - the first column is 1, the second is 2, ...
java.lang.IndexOutOfBoundsException - if column is out of range (column<0 || column>=getColumCount())
public int getColumnIndex(java.lang.String columnName)
throws java.lang.Exception
java.lang.IndexOutOfBoundsException - if column is out of range (column<0 || column>=getColumCount())
public String getColumnClassName(int column) throws IndexOutOfBoundsException {
if ( column < 0 || column >= getColumnCount() )
throw new IndexOutOfBoundsException("Column index out of bounds.");
RSColumn col = (RSColumn)this.columns.get(column);
return col.getClassName();
}
/**
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||