MockConnection
| Modifier and Type | Field and Description |
|---|---|
| private final MockResultSet | rs
The result set reference. |
| Access | Constructor and Description |
|---|---|
| public | MockResultSetMetaData(MockResultSet rs)
Deprecated
as a consequence of
Create a new mock result set meta data object
MockResultSet being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getCatalogName(int
the first column is 1, the second is 2, ... column)Implements java. |
| public String | getColumnClassName(int
the first column is 1, the second is 2, ... column)Implements java. Returns the fully-qualified name of the Java class whose instances
are manufactured if the method |
| public int | getColumnCount()
Implements java. ResultSet object.
|
| public int | getColumnDisplaySize(int
the first column is 1, the second is 2, ... column)Implements java. |
| public String | getColumnLabel(int
the first column is 1, the second is 2, ... column)Implements java. |
| public String | getColumnName(int
the first column is 1, the second is 2, ... column)Implements java. |
| public int | getColumnType(int
the first column is 1, the second is 2, ... column)Implements java. |
| public String | getColumnTypeName(int
the first column is 1, the second is 2, ... column)Implements java. |
| public int | getPrecision(int
the first column is 1, the second is 2, ... column)Implements java. |
| public int | getScale(int
the first column is 1, the second is 2, ... column)Implements java. |
| public String | getSchemaName(int
the first column is 1, the second is 2, ... column)Implements java. |
| public String | getTableName(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isAutoIncrement(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isCaseSensitive(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isCurrency(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isDefinitelyWritable(int
the first column is 1, the second is 2, ... column)Implements java. |
| public int | isNullable(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isReadOnly(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isSearchable(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isSigned(int
the first column is 1, the second is 2, ... column)Implements java. |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Implements java. |
| public boolean | isWritable(int
the first column is 1, the second is 2, ... column)Implements java. |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Implements java. |
| rs | back to summary |
|---|---|
| private final MockResultSet rs
Deprecated as a consequence of The result set reference. | |
| MockResultSetMetaData | back to summary |
|---|---|
| public MockResultSetMetaData(MockResultSet rs)
Deprecated as a consequence of Create a new mock result set meta data object | |
| getCatalogName | back to summary |
|---|---|
| public String getCatalogName(int column) throws SQLException Implements java. Doc from java. Gets the designated column's table's catalog name.
| |
| getColumnClassName | back to summary |
|---|---|
| public String getColumnClassName(int column) throws SQLException Implements java. Doc from java. Returns the fully-qualified name of the Java class whose instances
are manufactured if the method
| |
| getColumnCount | back to summary |
|---|---|
| public int getColumnCount() throws SQLException Implements java. Doc from java. Returns the number of columns in this
| |
| getColumnDisplaySize | back to summary |
|---|---|
| public int getColumnDisplaySize(int column) throws SQLException Implements java. Doc from java. Indicates the designated column's normal maximum width in characters.
| |
| getColumnLabel | back to summary |
|---|---|
| public String getColumnLabel(int column) throws SQLException Implements java. Doc from java. Gets the designated column's suggested title for use in printouts and
displays. The suggested title is usually specified by the SQL
| |
| getColumnName | back to summary |
|---|---|
| public String getColumnName(int column) throws SQLException Implements java. Doc from java. Get the designated column's name.
| |
| getColumnType | back to summary |
|---|---|
| public int getColumnType(int column) throws SQLException Implements java. Doc from java. Retrieves the designated column's SQL type.
| |
| getColumnTypeName | back to summary |
|---|---|
| public String getColumnTypeName(int column) throws SQLException Implements java. Doc from java. Retrieves the designated column's database-specific type name.
| |
| getPrecision | back to summary |
|---|---|
| public int getPrecision(int column) throws SQLException Implements java. Doc from java. Get the designated column's specified column size. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.
| |
| getScale | back to summary |
|---|---|
| public int getScale(int column) throws SQLException Implements java. Doc from java. Gets the designated column's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.
| |
| getSchemaName | back to summary |
|---|---|
| public String getSchemaName(int column) throws SQLException Implements java. Doc from java. Get the designated column's table's schema.
| |
| getTableName | back to summary |
|---|---|
| public String getTableName(int column) throws SQLException Implements java. Doc from java. Gets the designated column's table name.
| |
| isAutoIncrement | back to summary |
|---|---|
| public boolean isAutoIncrement(int column) throws SQLException Implements java. Doc from java. Indicates whether the designated column is automatically numbered.
| |
| isCaseSensitive | back to summary |
|---|---|
| public boolean isCaseSensitive(int column) throws SQLException Implements java. Doc from java. Indicates whether a column's case matters.
| |
| isCurrency | back to summary |
|---|---|
| public boolean isCurrency(int column) throws SQLException Implements java. Doc from java. Indicates whether the designated column is a cash value.
| |
| isDefinitelyWritable | back to summary |
|---|---|
| public boolean isDefinitelyWritable(int column) throws SQLException Implements java. Doc from java. Indicates whether a write on the designated column will definitely succeed.
| |
| isNullable | back to summary |
|---|---|
| public int isNullable(int column) throws SQLException Implements java. Doc from java. Indicates the nullability of values in the designated column.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(int column) throws SQLException Implements java. Doc from java. Indicates whether the designated column is definitely not writable.
| |
| isSearchable | back to summary |
|---|---|
| public boolean isSearchable(int column) throws SQLException Implements java. Doc from java. Indicates whether the designated column can be used in a where clause.
| |
| isSigned | back to summary |
|---|---|
| public boolean isSigned(int column) throws SQLException Implements java. Doc from java. Indicates whether values in the designated column are signed numbers.
| |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws SQLException Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable(int column) throws SQLException Implements java. Doc from java. Indicates whether it is possible for a write on the designated column to succeed.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws SQLException Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |