| |
|
| java.lang.Object com.quadcap.sql.Column
Column | public class Column implements Externalizable(Code) | | A column lives in a tuple, has a name, a type, and a default value.
author: Stan Bailes |
isAutoIncr | boolean isAutoIncr(Code) | | |
joinColumn | boolean joinColumn(Code) | | |
Column | public Column()(Code) | | Default constructor
|
Column | public Column(String name, Type type)(Code) | | Basic column construction: name + type
|
Column | public Column(String name, Column col)(Code) | | Copy (rename) column construction: name + old col
|
addConstraint | public void addConstraint(Constraint con)(Code) | | Add a new column constraint. Keep the constraints in order by
priority.
|
getColumn | public int getColumn()(Code) | | Get the column's position (one-based) in the table
|
getConstraints | Vector getConstraints()(Code) | | Return all of this column's constraints, as a vector
|
getNullable | public int getNullable()(Code) | | Return the JDBC 'nullable' state of this column.
|
getRelation | public Tuple getRelation()(Code) | | Get the tuple in which this column is contained.
|
getShortName | public String getShortName()(Code) | | Get the column's short name
|
getType | public Type getType()(Code) | | Return this column's type
|
isAutoIncrement | public boolean isAutoIncrement()(Code) | | Return true if this column is an auto-increment
type.
|
isJoinColumn | public boolean isJoinColumn()(Code) | | Return true if this column has the 'joinColumn' flag set.
|
isNullable | public boolean isNullable()(Code) | | Return true if this column allows nulls.
|
setColumn | void setColumn(int column)(Code) | | Set the column's position (one-based) in the table
|
setDefault | public void setDefault(Expression expr)(Code) | | Set the column's default value
|
setJoinColumn | public void setJoinColumn(boolean b)(Code) | | Set the 'joinColumn' flag.
|
setName | void setName(String name)(Code) | | Set the column's name
|
setNullable | public void setNullable(int nullable)(Code) | | Set the JDBC 'nullable' state of this column.
|
setShortName | void setShortName(String name)(Code) | | Set the column's short name
|
setTable | void setTable(Tuple table)(Code) | | Set the column's table
|
setType | void setType(Type type)(Code) | | Set the column's type
|
toString | public String toString()(Code) | | Return a string for debugging purposes
|
|
|
|