SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.impl.jdbc.schema
Class Column

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.schema.Column
All Implemented Interfaces:
Comparable

public class Column
extends Object
implements Comparable

Represents a database column.


Constructor Summary
(package private) Column(Column other, Table table)
           
(package private) Column(String name, Table table)
           
 
Method Summary
 Index addIndex(String name)
           
 Index addIndex(String name, String type)
           
 void addPrimaryKey()
           
 void applyTemplate(Column other)
           
 int compareTo(Object other)
           
 boolean getAutoIncrement()
           
 String getFullName()
           
 Index getIndex()
           
 int getLength()
           
 String getName()
           
 Table getTable()
           
 int getType()
           
 boolean isIndexed()
           
 boolean isPrimaryKey()
           
 boolean removeIndex()
           
 boolean removePrimaryKey()
           
 void setAutoIncrement(boolean val)
           
 void setLength(int length)
           
 void setType(int sqlType)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

Column(String name,
       Table table)

Column

Column(Column other,
       Table table)
Method Detail

applyTemplate

public void applyTemplate(Column other)

getName

public String getName()

getFullName

public String getFullName()

setType

public void setType(int sqlType)

getType

public int getType()

setLength

public void setLength(int length)

getLength

public int getLength()

isIndexed

public boolean isIndexed()

addIndex

public Index addIndex(String name)

addIndex

public Index addIndex(String name,
                      String type)

getIndex

public Index getIndex()

removeIndex

public boolean removeIndex()

isPrimaryKey

public boolean isPrimaryKey()

addPrimaryKey

public void addPrimaryKey()

setAutoIncrement

public void setAutoIncrement(boolean val)

getAutoIncrement

public boolean getAutoIncrement()

removePrimaryKey

public boolean removePrimaryKey()

getTable

public Table getTable()

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.