|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.vti.VTIMetaDataTemplate
public abstract class VTIMetaDataTemplate
An abstract implementation of ResultSetMetaData (JDBC 1.2) that is useful when writing a VTI (virtual table interface). This class implements most of the methods of ResultSetMetaData, each one throwing a SQLException with the name of the method. A concrete subclass can then just implement the methods not implemented here and override any methods it needs to implement for correct functionality.
The methods not implemented here are
| Field Summary |
|---|
| Fields inherited from interface java.sql.ResultSetMetaData |
|---|
columnNoNulls, columnNullable, columnNullableUnknown |
| Constructor Summary | |
|---|---|
VTIMetaDataTemplate()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCatalogName(int column)
What's a column's 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.
|
int |
getColumnDisplaySize(int column)
What's the column's normal maximum width in chars? |
java.lang.String |
getColumnLabel(int column)
What's the suggested column title for use in printouts and displays? |
java.lang.String |
getColumnName(int column)
What's a column's name? |
java.lang.String |
getColumnTypeName(int column)
What's a column's data source specific type name? |
int |
getPrecision(int column)
How many decimal digits are in the column? |
int |
getScale(int column)
What's a column's number of digits to the right of the decimal point? |
java.lang.String |
getSchemaName(int column)
What's a column's table's schema? |
java.lang.String |
getTableName(int column)
What's a column's table name? |
boolean |
isAutoIncrement(int column)
Is the column automatically numbered, and 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ResultSetMetaData |
|---|
getColumnCount, getColumnType |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Constructor Detail |
|---|
public VTIMetaDataTemplate()
| Method Detail |
|---|
public 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 occurs.
public boolean isCaseSensitive(int column)
throws java.sql.SQLException
isCaseSensitive in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public boolean isSearchable(int column)
throws java.sql.SQLException
isSearchable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public boolean isCurrency(int column)
throws java.sql.SQLException
isCurrency in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public int isNullable(int column)
throws java.sql.SQLException
isNullable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public boolean isSigned(int column)
throws java.sql.SQLException
isSigned in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public 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 occurs.
public boolean isReadOnly(int column)
throws java.sql.SQLException
isReadOnly in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public boolean isWritable(int column)
throws java.sql.SQLException
isWritable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
isDefinitelyWritable in interface java.sql.ResultSetMetaDatacolumn - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database-access error occurs.
public java.lang.String getColumnClassName(int column)
throws java.sql.SQLException
ResultSet.getObject
is called to retrieve a value from the column. JDBC 2.0.
getColumnClassName in interface java.sql.ResultSetMetaDatajava.sql.SQLException - if a database-access error occurs
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||