|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.interpret.ColumnDef
public final class ColumnDef
Represents a column definition (description).
Constructor Summary | |
---|---|
ColumnDef()
|
Method Summary | |
---|---|
void |
addConstraint(java.lang.String constraint)
Adds a constraint to this column. |
java.lang.Object |
clone()
Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members. |
boolean |
isNotNull()
Returns true if this column has the not null constraint set for it. |
boolean |
isPrimaryKey()
Returns true if this column has a primary key constraint set on it. |
boolean |
isUnique()
Returns true if this column has the unique constraint set for it. |
void |
prepareExpressions(ExpressionPreparer preparer)
Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression. |
void |
setDataType(TType type)
Sets the type of data of this column. |
void |
setDefaultExpression(Expression exp)
Sets the default expression (this is used to make a new constraint). |
void |
setIndex(Token t)
Sets the indexing. |
void |
setName(java.lang.String name)
Sets the name of the column. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColumnDef()
Method Detail |
---|
public boolean isPrimaryKey()
public boolean isUnique()
public boolean isNotNull()
public void setName(java.lang.String name)
public void addConstraint(java.lang.String constraint)
public void setDataType(TType type)
public void setIndex(Token t) throws ParseException
ParseException
public void setDefaultExpression(Expression exp)
public void prepareExpressions(ExpressionPreparer preparer) throws DatabaseException
StatementTreeObject
prepareExpressions
in interface StatementTreeObject
DatabaseException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
StatementTreeObject
clone
in interface StatementTreeObject
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |