com.scooterframework.orm.sqldataexpress.object
Class ColumnInfo

java.lang.Object
  extended by com.scooterframework.orm.sqldataexpress.object.ColumnInfo
All Implemented Interfaces:
java.io.Serializable

public class ColumnInfo
extends java.lang.Object
implements java.io.Serializable

ColumnInfo class. This class is a mirror of JDK's ResultSetMetaData class.

See Also:
Serialized Form

Constructor Summary
ColumnInfo()
           
 
Method Summary
 java.lang.String getCatalogName()
           
 java.lang.String getColumnClassName()
           
 java.lang.String getColumnDefault()
           
 java.lang.String getColumnDefaultForEntryScreen()
           
 int getColumnDisplaySize()
           
 java.lang.String getColumnName()
           
 java.lang.String getColumnTypeName()
           
 int getPrecision()
           
 int getScale()
           
 java.lang.String getSchemaName()
           
 int getSQLDataType()
           
 java.lang.String getTableName()
           
 boolean isAutoIncrement()
           
 boolean isCaseSensitive()
           
 boolean isCurrency()
           
 boolean isDate()
          Checks if this column is of date type.
 boolean isDefinitelyWritable()
           
 boolean isNotNull()
           
 boolean isNull()
           
 boolean isNullUnknown()
           
 boolean isNumeric()
          Checks if this column is of numeric type.
static boolean isNumeric(int dataType)
          Checks if a column is of numeric type.
 boolean isPrimaryKey()
           
 boolean isReadOnly()
           
 boolean isSearchable()
           
 boolean isSigned()
           
 boolean isTimestamp()
          Checks if this column is of timestamp type.
 boolean isWritable()
           
 void setPrimaryKey(boolean primaryKey)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnInfo

public ColumnInfo()
Method Detail

getSchemaName

public java.lang.String getSchemaName()

getCatalogName

public java.lang.String getCatalogName()

getTableName

public java.lang.String getTableName()

isPrimaryKey

public boolean isPrimaryKey()

setPrimaryKey

public void setPrimaryKey(boolean primaryKey)

getColumnClassName

public java.lang.String getColumnClassName()

getColumnName

public java.lang.String getColumnName()

getColumnDefault

public java.lang.String getColumnDefault()

getColumnDefaultForEntryScreen

public java.lang.String getColumnDefaultForEntryScreen()

getColumnTypeName

public java.lang.String getColumnTypeName()

getColumnDisplaySize

public int getColumnDisplaySize()

getSQLDataType

public int getSQLDataType()

getPrecision

public int getPrecision()

getScale

public int getScale()

isNull

public boolean isNull()

isNotNull

public boolean isNotNull()

isNullUnknown

public boolean isNullUnknown()

isAutoIncrement

public boolean isAutoIncrement()

isCaseSensitive

public boolean isCaseSensitive()

isCurrency

public boolean isCurrency()

isDefinitelyWritable

public boolean isDefinitelyWritable()

isReadOnly

public boolean isReadOnly()

isSearchable

public boolean isSearchable()

isSigned

public boolean isSigned()

isWritable

public boolean isWritable()

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
String

isDate

public boolean isDate()
Checks if this column is of date type.

The following types from java.sql.Types are treated as date type:

Returns:
true if it is of date type

isTimestamp

public boolean isTimestamp()
Checks if this column is of timestamp type.

The following types from java.sql.Types are treated as timestamp type:

Returns:
true if it is of timestamp type

isNumeric

public static boolean isNumeric(int dataType)
Checks if a column is of numeric type.

The following types from java.sql.Types are treated as numeric type:

Parameters:
dataType -
Returns:
true if it is of numeric type

isNumeric

public boolean isNumeric()
Checks if this column is of numeric type.

The following types from java.sql.Types are treated as numeric type:

Returns:
true if it is of numeric type