| java.lang.Object org.h2.table.Column
Column | public class Column (Code) | | This class represents a column in a table.
|
Constructor Summary | |
public | Column(String name, int type) | public | Column(String name, int type, long precision, int scale, int displaySize) |
Method Summary | |
public void | addCheckConstraint(Session session, Expression expr) | public Value | computeValue(Session session, Row row) | public void | convertAutoIncrementToSequence(Session session, Schema schema, int id, boolean temporary) Convert the auto-increment flag to a sequence that is linked with this
table. | public boolean | equals(Object o) | public boolean | getAutoIncrement() | public Expression | getCheckConstraint(Session session, String asColumnName) | public String | getCheckConstraintSQL(Session session, String name) | public Column | getClone() | public int | getColumnId() | public String | getComment() | public boolean | getComputed() | public String | getCreateSQL() | public DataType | getDataType() | public Expression | getDefaultExpression() | public String | getDefaultSQL() | public int | getDisplaySize() | public String | getName() | public boolean | getNullable() | public String | getOriginalSQL() | public long | getPrecision() | public int | getPrecisionAsInt() | public String | getSQL() | public int | getScale() | public int | getSelectivity() Get the selectivity of the column. | public Sequence | getSequence() | public Table | getTable() | public int | getType() | public int | hashCode() | boolean | isEverything(ExpressionVisitor visitor) | public void | prepareExpression(Session session) | public void | rename(String newName) | public void | setAutoIncrement(boolean autoInc, long start, long increment) | public void | setComment(String comment) | public void | setComputed(boolean computed, Expression expression) | public void | setConvertNullToDefault(boolean convert) | public void | setDefaultExpression(Session session, Expression defaultExpression) | public void | setNullable(boolean b) | public void | setOriginalSQL(String original) | public void | setPrimaryKey(boolean primaryKey) | public void | setSelectivity(int selectivity) Set the new selectivity of a column. | public void | setSequence(Sequence sequence) | void | setTable(Table table, int columnId) | public Value | validateConvertUpdateSequence(Session session, Value value) |
NOT_NULLABLENULLABLENULLABLE_UNKNOWN | final public static int NOT_NULLABLENULLABLENULLABLE_UNKNOWN(Code) | | |
Column | public Column(String name, int type, long precision, int scale, int displaySize)(Code) | | |
convertAutoIncrementToSequence | public void convertAutoIncrementToSequence(Session session, Schema schema, int id, boolean temporary) throws SQLException(Code) | | Convert the auto-increment flag to a sequence that is linked with this
table.
Parameters: session - the session Parameters: schema - the schema where the sequence should be generated Parameters: id - the object id Parameters: temporary - true if the sequence is temporary and does not need tobe stored |
getAutoIncrement | public boolean getAutoIncrement()(Code) | | |
getColumnId | public int getColumnId()(Code) | | |
getComputed | public boolean getComputed()(Code) | | |
getDisplaySize | public int getDisplaySize()(Code) | | |
getNullable | public boolean getNullable()(Code) | | |
getPrecision | public long getPrecision()(Code) | | |
getPrecisionAsInt | public int getPrecisionAsInt()(Code) | | |
getScale | public int getScale()(Code) | | |
getSelectivity | public int getSelectivity()(Code) | | Get the selectivity of the column. Selectivity 100 means values are
unique, 10 means every distinct value appears 10 times on average.
the selectivity |
getType | public int getType()(Code) | | |
hashCode | public int hashCode()(Code) | | |
setAutoIncrement | public void setAutoIncrement(boolean autoInc, long start, long increment)(Code) | | |
setComputed | public void setComputed(boolean computed, Expression expression)(Code) | | |
setConvertNullToDefault | public void setConvertNullToDefault(boolean convert)(Code) | | |
setNullable | public void setNullable(boolean b)(Code) | | |
setOriginalSQL | public void setOriginalSQL(String original)(Code) | | |
setPrimaryKey | public void setPrimaryKey(boolean primaryKey)(Code) | | |
setSelectivity | public void setSelectivity(int selectivity)(Code) | | Set the new selectivity of a column.
Parameters: selectivity - the new value |
setTable | void setTable(Table table, int columnId)(Code) | | |
|
|