|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ModSQL.ResultSetMetaData
A ResultSetMetaData object can be used to find out about the types and properties of the columns in a ResultSet.
| Field Summary | |
private Select |
query
Query that generated the ResultSet. |
| Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
| Constructor Summary | |
protected |
ResultSetMetaData(Select query)
Constructor. |
| Method Summary | |
String |
getCatalogName(int column)
What's a column's table's catalog name? |
String |
getColumnClassName(int column)
Return the fully qualified name of the Java class whose instances are manufactured if ResultSet.getObject() is called to retrieve a value from the column. |
int |
getColumnCount()
What's the number of columns in the ResultSet? |
int |
getColumnDisplaySize(int column)
What's the column's normal max width in chars? |
String |
getColumnLabel(int column)
What's the suggested column title for use in printouts and displays? |
String |
getColumnName(int column)
What's a column's name? |
int |
getColumnType(int column)
What's a column's SQL type? |
String |
getColumnTypeName(int column)
What's a column's data source specific type name? |
int |
getPrecision(int column)
What's a column's number of decimal digits? |
int |
getScale(int column)
What's a column's number of digits to right of the decimal point? |
String |
getSchemaName(int column)
What's a column's table's schema? |
String |
getTableName(int column)
What's a column's table name? |
boolean |
isAutoIncrement(int column)
Is the column automatically numbered, thus read-only? |
boolean |
isCaseSensitive(int column)
Does a column's case matter? |
boolean |
isCurrency(int column)
Is the column a cash value? |
boolean |
isDefinitelyWritable(int column)
Will a write on the column definitely succeed? |
int |
isNullable(int column)
Can you put a NULL in this column? |
boolean |
isReadOnly(int column)
Is a column definitely not writable? |
boolean |
isSearchable(int column)
Can the column be used in a where clause? |
boolean |
isSigned(int column)
Is the column a signed number? |
boolean |
isWritable(int column)
Is it possible for a write on the column to succeed? |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private Select query
| Constructor Detail |
protected ResultSetMetaData(Select query)
query - query that generated the ResultSet| Method Detail |
public int getColumnCount()
throws SQLException
getColumnCount in interface ResultSetMetaDataSQLException - if a database-access error occurs.
public boolean isAutoIncrement(int column)
throws SQLException
isAutoIncrement in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isCaseSensitive(int column)
throws SQLException
isCaseSensitive in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isSearchable(int column)
throws SQLException
isSearchable in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isCurrency(int column)
throws SQLException
isCurrency in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public int isNullable(int column)
throws SQLException
isNullable in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isSigned(int column)
throws SQLException
isSigned in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public int getColumnDisplaySize(int column)
throws SQLException
getColumnDisplaySize in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public String getColumnLabel(int column)
throws SQLException
getColumnLabel in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public String getColumnName(int column)
throws SQLException
getColumnName in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public String getSchemaName(int column)
throws SQLException
getSchemaName in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public int getPrecision(int column)
throws SQLException
getPrecision in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public int getScale(int column)
throws SQLException
getScale in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public String getTableName(int column)
throws SQLException
getTableName in interface ResultSetMetaDataSQLException - if a database-access error occurs.
public String getCatalogName(int column)
throws SQLException
getCatalogName in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public int getColumnType(int column)
throws SQLException
getColumnType in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.Types
public String getColumnTypeName(int column)
throws SQLException
getColumnTypeName in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isReadOnly(int column)
throws SQLException
isReadOnly in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isWritable(int column)
throws SQLException
isWritable in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public boolean isDefinitelyWritable(int column)
throws SQLException
isDefinitelyWritable in interface ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLException - if a database-access error occurs.
public String getColumnClassName(int column)
throws SQLException
Return the fully qualified name of the Java class whose instances are manufactured if ResultSet.getObject() is called to retrieve a value from the column. ResultSet.getObject() may return a subClass of the class returned by this method.
getColumnClassName in interface ResultSetMetaData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||