org.rimudb
Class ColumnMetaData

java.lang.Object
  extended by org.rimudb.ColumnMetaData
Direct Known Subclasses:
FieldEntry

public class ColumnMetaData
extends java.lang.Object

This class represents the meta data that describes a column in a table.

Author:
Simon Ritchie

Constructor Summary
ColumnMetaData()
           
ColumnMetaData(int columnNbr, java.lang.String propertyName, java.lang.String columnName, int length, int decimals, int keyNbr, boolean rightJustify, int type, boolean nullCapable, boolean autoIncrement, boolean version)
           
ColumnMetaData(int columnNbr, java.lang.String propertyName, java.lang.String columnName, int length, int decimals, int keyNbr, boolean rightJustify, int type, boolean nullCapable, boolean autoIncrement, boolean version, java.lang.String sequenceName)
           
 
Method Summary
 java.lang.String getColumnName()
           
 int getColumnNbr()
           
 int getColumnSize()
           
 int getColumnType()
          Return the SQL type of the column.
 int getDecimalDigits()
           
 int getPrimaryKeyNbr()
           
 java.lang.String getPropertyName()
           
 java.lang.String getSequenceName()
           
 boolean isAutoIncrement()
           
 boolean isNullCapable()
           
 boolean isRightJustify()
           
 boolean isVersion()
           
 void setAutoIncrement(boolean autoIncrement)
           
 void setColumnName(java.lang.String columnName)
           
 void setColumnNbr(int columnNbr)
           
 void setColumnSize(int columnSize)
           
 void setColumnType(int columnType)
          Set the SQL type of the column.
 void setDecimalDigits(int decimalDigits)
           
 void setNullCapable(boolean nullCapable)
           
 void setPrimaryKeyNbr(int primaryKeyNbr)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setRightJustify(boolean rightJustify)
           
 void setSequenceName(java.lang.String sequenceName)
           
 void setVersion(boolean version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnMetaData

public ColumnMetaData()

ColumnMetaData

public ColumnMetaData(int columnNbr,
                      java.lang.String propertyName,
                      java.lang.String columnName,
                      int length,
                      int decimals,
                      int keyNbr,
                      boolean rightJustify,
                      int type,
                      boolean nullCapable,
                      boolean autoIncrement,
                      boolean version)

ColumnMetaData

public ColumnMetaData(int columnNbr,
                      java.lang.String propertyName,
                      java.lang.String columnName,
                      int length,
                      int decimals,
                      int keyNbr,
                      boolean rightJustify,
                      int type,
                      boolean nullCapable,
                      boolean autoIncrement,
                      boolean version,
                      java.lang.String sequenceName)
Method Detail

getColumnNbr

public int getColumnNbr()

setColumnNbr

public void setColumnNbr(int columnNbr)

getPropertyName

public java.lang.String getPropertyName()

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getColumnName

public java.lang.String getColumnName()

setColumnName

public void setColumnName(java.lang.String columnName)

getColumnSize

public int getColumnSize()

setColumnSize

public void setColumnSize(int columnSize)

getDecimalDigits

public int getDecimalDigits()

setDecimalDigits

public void setDecimalDigits(int decimalDigits)

getPrimaryKeyNbr

public int getPrimaryKeyNbr()

setPrimaryKeyNbr

public void setPrimaryKeyNbr(int primaryKeyNbr)

isRightJustify

public boolean isRightJustify()

setRightJustify

public void setRightJustify(boolean rightJustify)

getColumnType

public int getColumnType()
Return the SQL type of the column. See java.sql.Types

Returns:
int

setColumnType

public void setColumnType(int columnType)
Set the SQL type of the column. See java.sql.Types

Parameters:
columnType - int

isNullCapable

public boolean isNullCapable()

setNullCapable

public void setNullCapable(boolean nullCapable)

isAutoIncrement

public boolean isAutoIncrement()

setAutoIncrement

public void setAutoIncrement(boolean autoIncrement)

setVersion

public void setVersion(boolean version)
Parameters:
version - the version to set

isVersion

public boolean isVersion()
Returns:
the version

setSequenceName

public void setSequenceName(java.lang.String sequenceName)

getSequenceName

public java.lang.String getSequenceName()


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.