2004.04.29


com.jdc.db
Interface Column

All Known Implementing Classes:
Column

public interface Column

Column represents an application database table column.

Version:
2.0
Author:
Jay Damon
See Also:
Table

Field Summary
static String NULL
          A database Table column null value.
 
Method Summary
 String getAlias()
          Returns the database table column alias.
 int getLength()
          Returns the database table column length for character table columns.
 String getName()
          Returns the database table column name.
 int getPrecision()
          Returns the database table column precision for numeric table columns.
 int getScale()
          Returns the database table column scale for numeric table columns.
 DataType getType()
          Returns the database table column data type.
 boolean isAllowNull()
          Returns true if the database table column allows a null value.
 Column newInstance(Column column, String alias, boolean allowNull)
          Returns a new Column instance with the specified column attributes, alias, and allow null status.
 

Field Detail

NULL

public static final String NULL
A database Table column null value.

See Also:
Constant Field Values
Method Detail

getAlias

public String getAlias()
Returns the database table column alias.

Returns:
The database table column alias.

getLength

public int getLength()
Returns the database table column length for character table columns.

Returns:
The database table column length.

getName

public String getName()
Returns the database table column name.

Returns:
The database table column name.

getPrecision

public int getPrecision()
Returns the database table column precision for numeric table columns.

Returns:
The database table column precision.

getScale

public int getScale()
Returns the database table column scale for numeric table columns.

Returns:
The database table column scale.

getType

public DataType getType()
Returns the database table column data type.

Returns:
The database table column data type.

isAllowNull

public boolean isAllowNull()
Returns true if the database table column allows a null value.

Returns:
True if the database table column allows a null values.
False if the database table column does not allow a null value.

newInstance

public Column newInstance(Column column,
                          String alias,
                          boolean allowNull)
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.