2004.04.29


com.jdc.rdb.tbl.col
Class TableColumn

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.SerializableObject
              |
              +--com.jdc.rdb.Column
                    |
                    +--com.jdc.rdb.tbl.col.TableColumn
All Implemented Interfaces:
Column, Serializable

public class TableColumn
extends Column

TableColumn represents a table column that contains an unknown database table column definition.

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jdc.rdb.Column
ALLOW_NULL, NOT_NULL
 
Fields inherited from class com.jdc.lang.Object
string
 
Fields inherited from interface com.jdc.db.Column
NULL
 
Constructor Summary
TableColumn(DataType type, String name, String alias, boolean allowNull)
          Constructs a new TableColumn object for the specified column type, name, alias, and allow null status.
TableColumn(DataType type, String name, String alias, int length, boolean allowNull)
          Constructs a new TableColumn object for the specified column type, name, alias, length, and allow null status.
TableColumn(DataType type, String name, String alias, int precision, int scale, boolean allowNull)
          Constructs a new TableColumn object for the specified column type, name, alias, precision, scale, and allow null status.
 
Method Summary
 Column newInstance(Column column, String alias, boolean allowNull)
          Returns a new Column instance with the specified column attributes, alias, and allow null status.
 
Methods inherited from class com.jdc.rdb.Column
equals, getAlias, getLength, getName, getPrecision, getScale, getType, isAllowNull, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableColumn

public TableColumn(DataType type,
                   String name,
                   String alias,
                   boolean allowNull)
Constructs a new TableColumn object for the specified column type, name, alias, and allow null status.


TableColumn

public TableColumn(DataType type,
                   String name,
                   String alias,
                   int length,
                   boolean allowNull)
Constructs a new TableColumn object for the specified column type, name, alias, length, and allow null status.


TableColumn

public TableColumn(DataType type,
                   String name,
                   String alias,
                   int precision,
                   int scale,
                   boolean allowNull)
Constructs a new TableColumn object for the specified column type, name, alias, precision, scale, and allow null status.

Method Detail

newInstance

public Column newInstance(Column column,
                          String alias,
                          boolean allowNull)
Description copied from interface: Column
Returns a new Column instance with the specified column attributes, alias, and allow null status.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.