|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.mimer.jdbc.ResultSetMetaData
The ResultSetMetaData class represents the result of the compilation of a single Mimer SQL statement. If the statement was executed, the ResultSetMetaData object will contain a row count.
The ResultSetMetaData object returned from a compilation will contain one array of output Columns representing the columns in the result set that is returned when the statement executes. If the statement does not return a result set, the array will be empty (outputs.length == 0).
The ResultSetMetaData object also contains an array of input columns representing parameters for a PreparedStatement or CallableStatement. Not that all this array contains all parameters of a CallableStatement, including OUT and INOUT parameters. If the statement does not have any parameters, the inputs array will be empty (inputs.length == 0).
The ResultSetMetaData object will also contain a hashtable with column names so that individual input or output columns can be accessed by name.
Statement,
PreparedStatement,
CallableStatement| Field Summary |
| Fields inherited from interface java.sql.ResultSetMetaData |
columnNoNulls, columnNullable, columnNullableUnknown |
| Method Summary | |
String |
getCatalogName(int column)
Returns the catalog of a column. |
String |
getColumnClassName(int column)
Returns the class names of the objects returned by ResultSet.getObject. |
int |
getColumnCount()
Returns the number of columns in the result set. |
int |
getColumnDisplaySize(int column)
Returns the maximum number of characters needed to display the contents of this column. |
String |
getColumnLabel(int column)
Returns the column label. |
String |
getColumnName(int column)
Returns the column name. |
int |
getColumnType(int column)
Returns the column type. |
String |
getColumnTypeName(int column)
Returns the column type name. |
int |
getPrecision(int column)
Returns the precision of the column. |
int |
getScale(int column)
Returns the scale of the column. |
String |
getSchemaName(int column)
Returns the schema of the column. |
String |
getTableName(int column)
Returns the table of the column. |
boolean |
isAutoIncrement(int column)
Returns if the column is autoincremental. |
boolean |
isCaseSensitive(int column)
Returns if the column is sensitive of character case. |
boolean |
isCurrency(int column)
Returns if the column is a money or currency data type. |
boolean |
isDefinitelyWritable(int column)
Returns if the column is updatable or not. |
int |
isNullable(int column)
Returns if the column is nullable. |
boolean |
isReadOnly(int column)
Returns if the column is read only. |
boolean |
isSearchable(int column)
Returns if the column can be included in a where clause. |
boolean |
isSigned(int column)
Returns if the column is signed. |
boolean |
isWritable(int column)
Returns if the column is writeable |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public String getCatalogName(int column)
throws SQLException
Mimer SQL does not support the notion of catalogs, so this method will always return an empty string.
getCatalogName in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public String getColumnClassName(int column)
throws SQLException
ResultSet.getObject.
getColumnClassName in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public int getColumnCount()
throws SQLException
getColumnCount in interface ResultSetMetaDataSQLException - if an error occurs.
public int getColumnDisplaySize(int column)
throws SQLException
getColumnDisplaySize in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public String getColumnLabel(int column)
throws SQLException
getColumnLabel in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public String getColumnName(int column)
throws SQLException
getColumnName in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public int getColumnType(int column)
throws SQLException
getColumnType in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public String getColumnTypeName(int column)
throws SQLException
getColumnTypeName in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public int getPrecision(int column)
throws SQLException
getPrecision in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public int getScale(int column)
throws SQLException
getScale in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public String getSchemaName(int column)
throws SQLException
getSchemaName in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public String getTableName(int column)
throws SQLException
getTableName in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public boolean isAutoIncrement(int column)
throws SQLException
Mimer SQL always returns false on this method because it uses sequences to automatically generate column values. Sequences are not a part of the column type, and it is therefore not possible to definately determine that a column is autoincremented or not. It all depends on the SQL used to insert data. For example see the below SQL statements where it is not certain at compile time that the insertion will use sequence.
create sequence OUR_SEQUENCE;
create table OUR_TABLE (C1 integer);
insert into OUR_TABLE values (coalesce(cast(? as integer),next_value of OUR_SEQUENCE));
isAutoIncrement in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public boolean isCaseSensitive(int column)
throws SQLException
isCaseSensitive in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public boolean isCurrency(int column)
throws SQLException
Mimer SQL has no special data type for money or currencies. This will always return false.
isCurrency in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public boolean isDefinitelyWritable(int column)
throws SQLException
isDefinitelyWritable in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.isReadOnly(int)
public int isNullable(int column)
throws SQLException
isNullable in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public boolean isReadOnly(int column)
throws SQLException
isReadOnly in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.isDefinitelyWritable(int)
public boolean isSearchable(int column)
throws SQLException
Mimer SQL has no limitations on which columns may be included in a where clause. This will return true for any column.
isSearchable in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.
public boolean isSigned(int column)
throws SQLException
isSigned in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.isDefinitelyWritable(int)
public boolean isWritable(int column)
throws SQLException
isWritable in interface ResultSetMetaDatacolumn - The column number. First column is 1.
SQLException - if an error occurs. SQLSTATE 07009 is thrown if the column dos not exist.isDefinitelyWritable(int)
|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||