com.caucho.quercus.lib.db
Class JdbcColumnMetaData

java.lang.Object
  extended by com.caucho.quercus.lib.db.JdbcColumnMetaData

public class JdbcColumnMetaData
extends java.lang.Object

Represents a JDBC column metadata


Constructor Summary
JdbcColumnMetaData(JdbcTableMetaData table, java.sql.ResultSet rs)
           
 
Method Summary
 int getJdbcType()
          Returns the JDBC type.
 int getLength()
          Returns the column length.
 java.lang.String getName()
          Returns the column's name.
 JdbcTableMetaData getTable()
          Returns the column's table
 boolean isBlob()
          Returns true for blob data types.
static boolean isBlob(int jdbcType)
          Returns true for blob data types.
 boolean isFloat()
          Returns true for float data types.
 boolean isIndex()
          Returns true for an index
 boolean isNotNull()
          Returns true if the column is nullable.
 boolean isNumeric()
          Returns true for numeric data types.
static boolean isNumeric(int jdbcType)
          Returns true for numeric data types.
 boolean isPrimaryKey()
          Returns true for a primary key.
 boolean isUnique()
          Returns true for a unique column
 boolean isUnsigned()
          Returns true for unsigned.
 boolean isZeroFill()
          Returns true for zerofill
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcColumnMetaData

public JdbcColumnMetaData(JdbcTableMetaData table,
                          java.sql.ResultSet rs)
                   throws java.sql.SQLException
Parameters:
rs - the ResultSet from a DatabaseMetaData.getColumns call
Throws:
java.sql.SQLException
Method Detail

getName

public java.lang.String getName()
Returns the column's name.


getTable

public JdbcTableMetaData getTable()
Returns the column's table


getLength

public int getLength()
Returns the column length.


isNotNull

public boolean isNotNull()
Returns true if the column is nullable.


isPrimaryKey

public boolean isPrimaryKey()
Returns true for a primary key.


isIndex

public boolean isIndex()
Returns true for an index


isUnique

public boolean isUnique()
Returns true for a unique column


getJdbcType

public int getJdbcType()
Returns the JDBC type.


isNumeric

public static boolean isNumeric(int jdbcType)
Returns true for numeric data types.


isNumeric

public boolean isNumeric()
Returns true for numeric data types.


isFloat

public boolean isFloat()
Returns true for float data types.


isUnsigned

public boolean isUnsigned()
Returns true for unsigned.


isZeroFill

public boolean isZeroFill()
Returns true for zerofill


isBlob

public static boolean isBlob(int jdbcType)
Returns true for blob data types.


isBlob

public boolean isBlob()
Returns true for blob data types.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object