public class JdbcColumnMetaData
extends java.lang.Object
Constructor and Description |
---|
JdbcColumnMetaData(JdbcTableMetaData table,
java.sql.ResultSet rs) |
Modifier and Type | Method and Description |
---|---|
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() |
public JdbcColumnMetaData(JdbcTableMetaData table, java.sql.ResultSet rs) throws java.sql.SQLException
rs
- the ResultSet from a DatabaseMetaData.getColumns calljava.sql.SQLException
public java.lang.String getName()
public JdbcTableMetaData getTable()
public int getLength()
public boolean isNotNull()
public boolean isPrimaryKey()
public boolean isIndex()
public boolean isUnique()
public int getJdbcType()
public static boolean isNumeric(int jdbcType)
public boolean isNumeric()
public boolean isFloat()
public boolean isUnsigned()
public boolean isZeroFill()
public static boolean isBlob(int jdbcType)
public boolean isBlob()
public java.lang.String toString()
toString
in class java.lang.Object