java.io.Serializable, java.sql.ResultSetMetaData, java.sql.Wrapper, javax.sql.RowSetMetaDatapublic class OPLRowSetMetaData
extends java.lang.Object
implements javax.sql.RowSetMetaData, java.io.Serializable
The RowSetMetaData interface extends ResultSetMetaData with methods that allow a metadata object to be initialized.
| Constructor | Description |
|---|---|
OPLRowSetMetaData(java.sql.ResultSetMetaData rsmd) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCatalogName(int column) |
Gets the designated column table's catalog name.
|
java.lang.String |
getColumnClassName(int column) |
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method
ResultSet.getObject
is called to retrieve a value
from the column. |
int |
getColumnCount() |
Returns the number of columns in this RowSet
|
int |
getColumnDisplaySize(int column) |
Indicates the designated column normal maximum width in characters.
|
java.lang.String |
getColumnLabel(int column) |
Gets the designated column suggested title for use in printouts and
displays.
|
java.lang.String |
getColumnName(int column) |
Get the designated column name.
|
int |
getColumnType(int column) |
Retrieves the designated column SQL type.
|
java.lang.String |
getColumnTypeName(int column) |
Retrieves the designated column database-specific type name.
|
int |
getPrecision(int column) |
Get the designated column number of decimal digits.
|
int |
getScale(int column) |
Gets the designated column number of digits to right of the decimal point.
|
java.lang.String |
getSchemaName(int column) |
Get the designated column table's schema.
|
java.lang.String |
getTableName(int column) |
Gets the designated column table name.
|
boolean |
isAutoIncrement(int column) |
Indicates whether the column is automatically numbered, thus read-only.
|
boolean |
isCaseSensitive(int column) |
Indicates whether a column case matters.
|
boolean |
isCurrency(int column) |
Indicates whether the designated column is a cash value.
|
boolean |
isDefinitelyWritable(int column) |
Indicates whether a write on the designated column will definitely succeed.
|
int |
isNullable(int column) |
Indicates the nullability of values in the designated column.
|
boolean |
isReadOnly(int column) |
Indicates whether the designated column is definitely not writable.
|
boolean |
isSearchable(int column) |
Indicates whether the designated column can be used in a where clause.
|
boolean |
isSigned(int column) |
Indicates whether values in the designated column are signed numbers.
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does.
|
boolean |
isWritable(int column) |
Indicates whether it is possible for a write on the designated column to succeed.
|
void |
setAutoIncrement(int column,
boolean property) |
Specify whether the is column automatically numbered, thus read-only.
|
void |
setCaseSensitive(int column,
boolean property) |
Specify whether the column is case sensitive.
|
void |
setCatalogName(int column,
java.lang.String catalogName) |
Specify the column table's catalog name, if any.
|
void |
setColumnCount(int columnCount) |
Set the number of columns in the RowSet.
|
void |
setColumnDisplaySize(int column,
int size) |
Specify the column normal max width in chars.
|
void |
setColumnLabel(int column,
java.lang.String label) |
Specify the suggested column title for use in printouts and
displays, if any.
|
void |
setColumnName(int column,
java.lang.String columnName) |
Specify the column name.
|
void |
setColumnType(int column,
int SQLType) |
Specify the column SQL type.
|
void |
setColumnTypeName(int column,
java.lang.String typeName) |
Specify the column data source specific type name, if any.
|
void |
setCurrency(int column,
boolean property) |
Specify whether the column is a cash value.
|
void |
setNullable(int column,
int property) |
Specify whether the column value can be set to NULL.
|
void |
setPrecision(int column,
int precision) |
Specify the column number of decimal digits.
|
void |
setScale(int column,
int scale) |
Specify the column number of digits to right of the decimal point.
|
void |
setSchemaName(int column,
java.lang.String schemaName) |
Specify the column table's schema, if any.
|
void |
setSearchable(int column,
boolean property) |
Specify whether the column can be used in a where clause.
|
void |
setSigned(int column,
boolean property) |
Speicfy whether the column is a signed number.
|
void |
setTableName(int column,
java.lang.String tableName) |
Specify the column table name, if any.
|
<T> T |
unwrap(java.lang.Class<T> iface) |
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
|
public OPLRowSetMetaData(java.sql.ResultSetMetaData rsmd)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setAutoIncrement(int column,
boolean property)
throws java.sql.SQLException
setAutoIncrement in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...property - is either true or false (default is false).java.sql.SQLException - if a database-access error occurs.public void setCaseSensitive(int column,
boolean property)
throws java.sql.SQLException
setCaseSensitive in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...property - is either true or false (default is false).java.sql.SQLException - if a database-access error occurs.public void setCatalogName(int column,
java.lang.String catalogName)
throws java.sql.SQLException
setCatalogName in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...catalogName - column catalog name.java.sql.SQLException - if a database-access error occurs.public void setColumnCount(int columnCount)
throws java.sql.SQLException
setColumnCount in interface javax.sql.RowSetMetaDatacolumnCount - number of columns.java.sql.SQLException - if a database-access error occurs.public void setColumnDisplaySize(int column,
int size)
throws java.sql.SQLException
setColumnDisplaySize in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...size - size of the columnjava.sql.SQLException - if a database-access error occurs.public void setColumnLabel(int column,
java.lang.String label)
throws java.sql.SQLException
setColumnLabel in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...label - the column titlejava.sql.SQLException - if a database-access error occurs.public void setColumnName(int column,
java.lang.String columnName)
throws java.sql.SQLException
setColumnName in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...columnName - the column namejava.sql.SQLException - if a database-access error occurs.public void setColumnType(int column,
int SQLType)
throws java.sql.SQLException
setColumnType in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...SQLType - column SQL type.java.sql.SQLException - if a database-access error occurs.Typespublic void setColumnTypeName(int column,
java.lang.String typeName)
throws java.sql.SQLException
setColumnTypeName in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...typeName - data source specific type name.java.sql.SQLException - if a database-access error occurs.public void setCurrency(int column,
boolean property)
throws java.sql.SQLException
setCurrency in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...property - is either true or false (default is false).java.sql.SQLException - if a database-access error occurs.public void setNullable(int column,
int property)
throws java.sql.SQLException
setNullable in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...property - is either one of columnNoNulls, columnNullable
or columnNullableUnknown (default is columnNullableUnknown).java.sql.SQLException - if a database-access error occurs.public void setPrecision(int column,
int precision)
throws java.sql.SQLException
setPrecision in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...precision - number of decimal digits.java.sql.SQLException - if a database-access error occurs.public void setScale(int column,
int scale)
throws java.sql.SQLException
setScale in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...scale - number of digits to right of decimal point.java.sql.SQLException - if a database-access error occurs.public void setSchemaName(int column,
java.lang.String schemaName)
throws java.sql.SQLException
setSchemaName in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...schemaName - the schema namejava.sql.SQLException - if a database-access error occurs.public void setSearchable(int column,
boolean property)
throws java.sql.SQLException
setSearchable in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...property - is either true or false (default is false).java.sql.SQLException - if a database-access error occurs.public void setSigned(int column,
boolean property)
throws java.sql.SQLException
setSigned in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...property - is either true or false (default is false).java.sql.SQLException - if a database-access error occurs.public void setTableName(int column,
java.lang.String tableName)
throws java.sql.SQLException
setTableName in interface javax.sql.RowSetMetaDatacolumn - the first column is 1, the second is 2, ...tableName - column table name.java.sql.SQLException - if a database-access error occurs.public int getColumnCount()
throws java.sql.SQLException
getColumnCount in interface java.sql.ResultSetMetaDatajava.sql.SQLException - if a database access error occurspublic boolean isAutoIncrement(int column)
throws java.sql.SQLException
isAutoIncrement in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic boolean isCaseSensitive(int column)
throws java.sql.SQLException
isCaseSensitive in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic boolean isSearchable(int column)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic boolean isCurrency(int column)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic int isNullable(int column)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...columnNoNulls,
columnNullable or columnNullableUnknownjava.sql.SQLException - if a database access error occurspublic boolean isSigned(int column)
throws java.sql.SQLException
isSigned in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic int getColumnDisplaySize(int column)
throws java.sql.SQLException
getColumnDisplaySize in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getColumnLabel(int column)
throws java.sql.SQLException
getColumnLabel in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getColumnName(int column)
throws java.sql.SQLException
getColumnName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getSchemaName(int column)
throws java.sql.SQLException
getSchemaName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getPrecision(int column)
throws java.sql.SQLException
getPrecision in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getScale(int column)
throws java.sql.SQLException
getScale in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getTableName(int column)
throws java.sql.SQLException
getTableName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic java.lang.String getCatalogName(int column)
throws java.sql.SQLException
getCatalogName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic int getColumnType(int column)
throws java.sql.SQLException
getColumnType in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occursTypespublic java.lang.String getColumnTypeName(int column)
throws java.sql.SQLException
getColumnTypeName in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...java.sql.SQLException - if a database access error occurspublic boolean isReadOnly(int column)
throws java.sql.SQLException
isReadOnly in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic boolean isWritable(int column)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...true if so; false otherwisejava.sql.SQLException - if a database access error occurspublic java.lang.String getColumnClassName(int column)
throws java.sql.SQLException
Returns the fully-qualified name of the Java class whose instances
are manufactured if the method 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 java.sql.ResultSetMetaDataResultSet.getObject to retrieve the value in the specified
column. This is the class name used for custom mapping.java.sql.SQLException - if a database access error occurspublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap recursively on the wrapped object
or a proxy for that result. If the receiver is not a
wrapper and does not implement the interface, then an SQLException is thrown.unwrap in interface java.sql.Wrapperiface - A Class defining an interface that the result must implement.java.sql.SQLException - If no object found that implements the interfacepublic boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor on the wrapped
object. If this does not implement the interface and is not a wrapper, return false.
This method should be implemented as a low-cost operation compared to unwrap so that
callers can use this method to avoid expensive unwrap calls that may fail. If this method
returns true then calling unwrap with the same argument should succeed.isWrapperFor in interface java.sql.Wrapperiface - a Class defining an interface.java.sql.SQLException - if an error occurs while determining whether this is a wrapper
for an object with the given interface.