org.postgresql.jdbc2
Class AbstractJdbc2ResultSetMetaData
java.lang.Object
org.postgresql.jdbc2.AbstractJdbc2ResultSetMetaData
- All Implemented Interfaces:
- PGResultSetMetaData
- Direct Known Subclasses:
- Jdbc3gResultSetMetaData, Jdbc3ResultSetMetaData, Jdbc4ResultSetMetaData
public abstract class AbstractJdbc2ResultSetMetaData
- extends Object
- implements PGResultSetMetaData
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected final BaseConnection connection
fields
protected final Field[] fields
AbstractJdbc2ResultSetMetaData
public AbstractJdbc2ResultSetMetaData(BaseConnection connection,
Field[] fields)
getColumnCount
public int getColumnCount()
throws SQLException
- Throws:
SQLException
isAutoIncrement
public boolean isAutoIncrement(int column)
throws SQLException
- Throws:
SQLException
isCaseSensitive
public boolean isCaseSensitive(int column)
throws SQLException
- Throws:
SQLException
isSearchable
public boolean isSearchable(int column)
throws SQLException
- Throws:
SQLException
isCurrency
public boolean isCurrency(int column)
throws SQLException
- Throws:
SQLException
isNullable
public int isNullable(int column)
throws SQLException
- Throws:
SQLException
isSigned
public boolean isSigned(int column)
throws SQLException
- Throws:
SQLException
getColumnDisplaySize
public int getColumnDisplaySize(int column)
throws SQLException
- Throws:
SQLException
getColumnLabel
public String getColumnLabel(int column)
throws SQLException
- Throws:
SQLException
getColumnName
public String getColumnName(int column)
throws SQLException
- Throws:
SQLException
getBaseColumnName
public String getBaseColumnName(int column)
throws SQLException
- Description copied from interface:
PGResultSetMetaData
- Returns the underlying column name of a query result, or ""
if it is unable to be determined.
- Specified by:
getBaseColumnName in interface PGResultSetMetaData
- Throws:
SQLException
getSchemaName
public String getSchemaName(int column)
throws SQLException
- Throws:
SQLException
getBaseSchemaName
public String getBaseSchemaName(int column)
throws SQLException
- Description copied from interface:
PGResultSetMetaData
- Returns the underlying table name of query result, or ""
if it is unable to be determined.
- Specified by:
getBaseSchemaName in interface PGResultSetMetaData
- Throws:
SQLException
getPrecision
public int getPrecision(int column)
throws SQLException
- Throws:
SQLException
getScale
public int getScale(int column)
throws SQLException
- Throws:
SQLException
getTableName
public String getTableName(int column)
throws SQLException
- Throws:
SQLException
getBaseTableName
public String getBaseTableName(int column)
throws SQLException
- Description copied from interface:
PGResultSetMetaData
- Returns the underlying table name of query result, or ""
if it is unable to be determined.
- Specified by:
getBaseTableName in interface PGResultSetMetaData
- Throws:
SQLException
getCatalogName
public String getCatalogName(int column)
throws SQLException
- Throws:
SQLException
getColumnType
public int getColumnType(int column)
throws SQLException
- Throws:
SQLException
getColumnTypeName
public String getColumnTypeName(int column)
throws SQLException
- Throws:
SQLException
isReadOnly
public boolean isReadOnly(int column)
throws SQLException
- Throws:
SQLException
isWritable
public boolean isWritable(int column)
throws SQLException
- Throws:
SQLException
isDefinitelyWritable
public boolean isDefinitelyWritable(int column)
throws SQLException
- Throws:
SQLException
getField
protected Field getField(int columnIndex)
throws SQLException
- Throws:
SQLException
getPGType
protected String getPGType(int columnIndex)
throws SQLException
- Throws:
SQLException
getSQLType
protected int getSQLType(int columnIndex)
throws SQLException
- Throws:
SQLException
getColumnClassName
public String getColumnClassName(int column)
throws 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.
- Parameters:
column - the first column is 1, the second is 2, ...
- Returns:
- the fully-qualified name of the class in the Java programming
language that would be used by the method
ResultSet.getObject to retrieve the value in the specified
column. This is the class name used for custom mapping.
- Throws:
SQLException - if a database access error occurs
Copyright © 2013. All Rights Reserved.