org.enableit.db
Class Column

java.lang.Object
  |
  +--org.enableit.db.Column

public class Column
extends java.lang.Object

Represent a database column.

Intended only as a helper to the DataLoader class (perhaps should have been an inner class).

Version:
v1.3

Field Summary
static java.lang.String ABOUT
          CVS info about this class and its current version
 
Constructor Summary
Column()
          Default Constructor.
Column(java.lang.String name)
          Constructor that sets the column's name.
Column(java.lang.String name, java.lang.String datatype)
          Constructor that sets the column's name and datatype.
 
Method Summary
 java.lang.String getDatatype()
           
 java.lang.String getName()
           
 void setDatatype(java.lang.String datatype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABOUT

public static final java.lang.String ABOUT
CVS info about this class and its current version

See Also:
Constant Field Values
Constructor Detail

Column

public Column()
Default Constructor.


Column

public Column(java.lang.String name)
Constructor that sets the column's name.

Parameters:
name - The column name.

Column

public Column(java.lang.String name,
              java.lang.String datatype)
Constructor that sets the column's name and datatype.

Parameters:
name - The column name.
datatype - The column datatype (database type name, not Java name).
Method Detail

setDatatype

public void setDatatype(java.lang.String datatype)

getName

public java.lang.String getName()
Returns:
The column's name.

getDatatype

public java.lang.String getDatatype()
Returns:
the column's name.


Copyright © 1999-2004 enableIT.org. All Rights Reserved.