com.xavax.xstore
Class ColumnMap

Object
  extended byPersistenceMap
      extended byColumnMap

public class ColumnMap
extends PersistenceMap

ColumnMap encapsulates the metadata for a column within a table in a persistence environment. The metadata consists of the column name, SQL data type, width, and precision as well as a reference to the parent TableMap.


Method Summary
 void outputXML(PrintWriter out)
          Output an XML representation of this column on the specified print writer.
 byte precision()
          Returns the precision of this column.
 void show()
          Output a description of this column on stdout.
 TableMap table()
          Returns the TableMap which contains this ColumnMap.
 short type()
          Returns the SQL data type for this column.
 long width()
          Returns the width of this column.
 
Methods inherited from class PersistenceMap
hashCode, manager, name, toString
 
Methods inherited from class Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

show

public void show()
Output a description of this column on stdout.


outputXML

public void outputXML(PrintWriter out)
Output an XML representation of this column on the specified print writer.

Parameters:
out - the print writer to use for all output.

table

public TableMap table()
Returns the TableMap which contains this ColumnMap.

Returns:
the TableMap which contains this ColumnMap.

type

public short type()
Returns the SQL data type for this column.

Returns:
the SQL data type for this column.
See Also:
SQLTypes

width

public long width()
Returns the width of this column.

Returns:
the width of this column.

precision

public byte precision()
Returns the precision of this column.

Returns:
the precision of this column.