|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.schema.ReferenceCounter | +--kodo.jdbc.schema.Column
Represents a database column.
Field Summary | |
static int |
PRIORITY_DIRECT
|
static int |
PRIORITY_FK
|
static int |
PRIORITY_FK_CONST
|
static int |
PRIORITY_NONE
|
static int |
PRIORITY_PK
|
Constructor Summary | |
Column(String name,
Table table)
Constructor. |
Method Summary | |
int |
compareTo(Object other)
Columns order on name. |
void |
deref()
|
boolean |
equalsColumn(Column col)
Tests compatibility. |
int |
getDecimalDigits()
Return the number of decimal digits for the column, if applicable. |
String |
getDefault()
Return the default value set for the column, if any. |
String |
getDescription()
Useful for debugging. |
String |
getFullName()
Return the column's full name, in the form <table>.<name>. |
int |
getIndex()
Return the column's 0-based index in the owning table. |
String |
getName()
Return the column's name. |
int |
getPriority()
|
int |
getRefCount()
|
int |
getSize()
Return the column's size. |
Table |
getTable()
Return the table for the column. |
int |
getType()
Return the column's SQL type. |
String |
getTypeName()
If this column's type is not reflected in Types , set the
type to Types.OTHER and set this string to the desired type
name. |
boolean |
isAutoIncrement()
Whether this column is auto-incrementing. |
boolean |
isCompatible(int type,
int size)
Return true if this column is compatible with the given JDBC type from Types and size. |
boolean |
isNotNull()
Return true if this is a NOT NULL column. |
boolean |
isPrimaryKey()
Return true if this column belongs to the table's primary key. |
void |
ref()
|
void |
ref(int priority)
|
void |
resetPriority()
|
void |
setAutoIncrement(boolean autoInc)
Whether this column is auto-incrementing. |
void |
setDecimalDigits(int digits)
Set the number of decimal digits for the column. |
void |
setDefault(String def)
Set the default value for the column. |
void |
setNotNull(boolean notNull)
Set whether this is a NOT NULL column. |
void |
setSize(int size)
Set the column's size. |
void |
setType(int sqlType)
Set the column's SQL type. |
void |
setTypeName(String typeName)
If this column's type is not reflected in Types , set the
type to Types.OTHER and set this string to the desired type
name. |
String |
toString()
Returns the column name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PRIORITY_PK
public static final int PRIORITY_DIRECT
public static final int PRIORITY_FK
public static final int PRIORITY_FK_CONST
public static final int PRIORITY_NONE
Constructor Detail |
public Column(String name, Table table)
name
- the name of the columntable
- the column's tableMethod Detail |
public void ref()
ref
in class kodo.jdbc.schema.ReferenceCounter
public void ref(int priority)
public int getPriority()
public void resetPriority()
public Table getTable()
public String getName()
public String getFullName()
public int getType()
Types
.public void setType(int sqlType)
Types
.public String getTypeName()
Types
, set the
type to Types.OTHER
and set this string to the desired type
name.public void setTypeName(String typeName)
Types
, set the
type to Types.OTHER
and set this string to the desired type
name.public int getSize()
public void setSize(int size)
public int getDecimalDigits()
public void setDecimalDigits(int digits)
public String getDefault()
public void setDefault(String def)
public boolean isNotNull()
public void setNotNull(boolean notNull)
public boolean isAutoIncrement()
public void setAutoIncrement(boolean autoInc)
public boolean isPrimaryKey()
public int getIndex()
public boolean isCompatible(int type, int size)
Types
and size.public int compareTo(Object other)
compareTo
in interface Comparable
public String toString()
toString
in class Object
public String getDescription()
public boolean equalsColumn(Column col)
public int getRefCount()
public void deref()
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |