com.caucho.db.jdbc
Class ResultSetMetaDataImpl

java.lang.Object
  extended by com.caucho.db.jdbc.ResultSetMetaDataImpl
All Implemented Interfaces:
java.sql.ResultSetMetaData, java.sql.Wrapper

public class ResultSetMetaDataImpl
extends java.lang.Object
implements java.sql.ResultSetMetaData

Metadata for the result


Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Method Summary
 java.lang.String getCatalogName(int column)
          Returns the column catalog name
 Expr getColumn(int column)
          Returns the column.
 java.lang.String getColumnClassName(int column)
          Returns the column class namewritability
 int getColumnCount()
          Returns the number of columns.
 int getColumnDisplaySize(int column)
          Returns the normal width
 java.lang.String getColumnLabel(int column)
          Returns the column label
 java.lang.String getColumnName(int column)
          Returns the column name
 java.lang.String getColumnSchema(int column)
          Returns the column schema
 int getColumnType(int column)
          Returns the column type
 java.lang.String getColumnTypeName(int column)
          Returns the column type name
 int getPrecision(int column)
          Returns the column precision
 int getScale(int column)
          Returns the column scale
 java.lang.String getSchemaName(int column)
          Returns the column table name
 java.lang.String getTableName(int column)
          Returns the column table name
 boolean isAutoIncrement(int column)
          Returns true if the column is auto-numbered.
 boolean isCaseSensitive(int column)
          Returns true if the column is case sensitive
 boolean isCurrency(int column)
          Returns true if the column is a currency;
 boolean isDefinitelyWritable(int column)
          Returns the column writability
 int isNullable(int column)
          Returns true if the column is nullable
 boolean isReadOnly(int column)
          Returns the column writability
 boolean isSearchable(int column)
          Returns true if the column can be in a where clause
 boolean isSigned(int column)
          Returns true for signed results.
 boolean isWrapperFor(java.lang.Class<?> iface)
           
 boolean isWritable(int column)
          Returns the column writability
<T> T
unwrap(java.lang.Class<T> iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns.

Specified by:
getColumnCount in interface java.sql.ResultSetMetaData

isAutoIncrement

public boolean isAutoIncrement(int column)
Returns true if the column is auto-numbered.

Specified by:
isAutoIncrement in interface java.sql.ResultSetMetaData

isCaseSensitive

public boolean isCaseSensitive(int column)
Returns true if the column is case sensitive

Specified by:
isCaseSensitive in interface java.sql.ResultSetMetaData

isSearchable

public boolean isSearchable(int column)
Returns true if the column can be in a where clause

Specified by:
isSearchable in interface java.sql.ResultSetMetaData

isCurrency

public boolean isCurrency(int column)
Returns true if the column is a currency;

Specified by:
isCurrency in interface java.sql.ResultSetMetaData

isNullable

public int isNullable(int column)
Returns true if the column is nullable

Specified by:
isNullable in interface java.sql.ResultSetMetaData

getColumnDisplaySize

public int getColumnDisplaySize(int column)
Returns the normal width

Specified by:
getColumnDisplaySize in interface java.sql.ResultSetMetaData

getColumnLabel

public java.lang.String getColumnLabel(int column)
Returns the column label

Specified by:
getColumnLabel in interface java.sql.ResultSetMetaData

getColumnName

public java.lang.String getColumnName(int column)
Returns the column name

Specified by:
getColumnName in interface java.sql.ResultSetMetaData

getColumnSchema

public java.lang.String getColumnSchema(int column)
Returns the column schema


isSigned

public boolean isSigned(int column)
Returns true for signed results.

Specified by:
isSigned in interface java.sql.ResultSetMetaData

getPrecision

public int getPrecision(int column)
Returns the column precision

Specified by:
getPrecision in interface java.sql.ResultSetMetaData

getScale

public int getScale(int column)
Returns the column scale

Specified by:
getScale in interface java.sql.ResultSetMetaData

getSchemaName

public java.lang.String getSchemaName(int column)
Returns the column table name

Specified by:
getSchemaName in interface java.sql.ResultSetMetaData

getTableName

public java.lang.String getTableName(int column)
Returns the column table name

Specified by:
getTableName in interface java.sql.ResultSetMetaData

getCatalogName

public java.lang.String getCatalogName(int column)
Returns the column catalog name

Specified by:
getCatalogName in interface java.sql.ResultSetMetaData

getColumnType

public int getColumnType(int column)
Returns the column type

Specified by:
getColumnType in interface java.sql.ResultSetMetaData

getColumnTypeName

public java.lang.String getColumnTypeName(int column)
Returns the column type name

Specified by:
getColumnTypeName in interface java.sql.ResultSetMetaData

isReadOnly

public boolean isReadOnly(int column)
Returns the column writability

Specified by:
isReadOnly in interface java.sql.ResultSetMetaData

isWritable

public boolean isWritable(int column)
Returns the column writability

Specified by:
isWritable in interface java.sql.ResultSetMetaData

isDefinitelyWritable

public boolean isDefinitelyWritable(int column)
Returns the column writability

Specified by:
isDefinitelyWritable in interface java.sql.ResultSetMetaData

getColumnClassName

public java.lang.String getColumnClassName(int column)
Returns the column class namewritability

Specified by:
getColumnClassName in interface java.sql.ResultSetMetaData

getColumn

public Expr getColumn(int column)
Returns the column.


unwrap

public <T> T unwrap(java.lang.Class<T> iface)
         throws java.sql.SQLException
Specified by:
unwrap in interface java.sql.Wrapper
Throws:
java.sql.SQLException

isWrapperFor

public boolean isWrapperFor(java.lang.Class<?> iface)
                     throws java.sql.SQLException
Specified by:
isWrapperFor in interface java.sql.Wrapper
Throws:
java.sql.SQLException