| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private Expression | |
| private boolean | |
| private Domain | |
| private GeneratedColumnResolver | |
| private SequenceOptions | |
| private boolean | |
| private String | |
| public static final int | NOT_NULLABLE
This column is not nullable. |
| public static final int | NULLABLE
This column is nullable. |
| private boolean | |
| public static final int | NULLABLE_UNKNOWN
It is not know whether this column is nullable. |
| private Expression | |
| private boolean | |
| public static final String | ROWID
The name of the rowid pseudo column. |
| private boolean | |
| private int | |
| private Sequence | |
| private Table | |
| private TypeInfo | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Value | Returns: the valuethe cast information provider provider, Value the value v)Convert a value to this column's type without precision and scale checks. |
| public static ValueRow | Returns: a ValueRow which contains the converted valuesthe cast information provider provider, Column[] the column info list used for the conversation columns, ValueRow the holder of the values valueRow)Converts the values in a ValueRow based on the passed column info. |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Column | |
| public int | |
| public String | |
| public String | |
| public String | Returns: the SQL statementwhether this is for the metadata table forMeta)Get this columns part of CREATE TABLE SQL statement. |
| private String | |
| public String | |
| private DbException | |
| public Expression | |
| private Value | |
| public String | |
| public Domain | |
| public Expression | |
| public Expression | |
| public SequenceOptions | Returns: identity column options, ornullReturns identity column options, or |
| public String | |
| public Expression | |
| public String | |
| public int | |
| public Sequence | |
| public String | getSQL(int
formatting flags sqlFlags)Overrides default org. Get the SQL statement of this expression. |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements org. Appends the SQL statement of this object to the specified builder. |
| public StringBuilder | Returns: the specified string builderthe string builder builder, int formatting flags sqlFlags)Appends the table name and column name to the specified builder. |
| public Table | |
| public TypeInfo | |
| public boolean | |
| public int | |
| public boolean | |
| public void | initializeSequence(SessionLocal
the session session, Schema the schema where the sequence should be generated schema, int the object id id, boolean true if the sequence is temporary and does not need to
be stored temporary)Initialize the sequence for this column. |
| public boolean | |
| pack-priv boolean | Returns: true if every visited expression returned true, or if there are no expressionsthe visitor visitor)Visit the default expression, the check constraint, and the sequence (if any). |
| public boolean | Returns: whether this column is a generated columnReturns whether this column is a generated column. |
| public boolean | Returns: whether this column is a generated column or always generated identity columnReturns whether this column is a generated column or always generated identity column. |
| public boolean | Returns: whether this column is an identity columnReturns whether this column is an identity column. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true for _ROWID_ column, false otherwiseReturns whether this column is a row identity column. |
| public boolean | Returns: true if the new column is compatiblethe new (target) column newColumn)Check whether the new column is of the same type and not more restricted than this column. |
| public void | prepareExpressions(SessionLocal
the session session)Implements org. Prepare all expressions of this column or domain. |
| private void | |
| public void | |
| public void | |
| public void | setDefaultExpression(SessionLocal
the session session, Expression the default expression defaultExpression)Implements org. Set the default expression. |
| public void | |
| public void | |
| public void | setGeneratedExpression(Expression
the computed expression expression)Set the default value in the form of a generated expression of other columns. |
| public void | setIdentityOptions(SequenceOptions
identity column options identityOptions, boolean whether value should be always generated generatedAlways)Set the identity options of this column. |
| public void | |
| public void | setOnUpdateExpression(SessionLocal
the session session, Expression the on update expression onUpdateExpression)Implements org. Set the on update expression. |
| public void | |
| public void | |
| public void | |
| public void | setSequence(Sequence
the sequence sequence, boolean whether the value of the sequence is always used generatedAlways)Set the sequence to generate the value. |
| public void | |
| public void | |
| public String | |
| private void | |
| pack-priv Value | Returns: the new or converted valuethe session session, Value the value or null value, Row the row row)Validate the value, convert it if required, and update the sequence value if required. |
| public static StringBuilder | Returns: the specified string builderstring builder builder, Column[] columns columns, int formatting flags sqlFlags)Appends the specified columns to the specified builder. |
| public static StringBuilder | Returns: the specified string builderstring builder builder, Column[] columns columns, String separator separator, String additional SQL to append after each column suffix, int formatting flags sqlFlags)Appends the specified columns to the specified builder. |
| columnId | back to summary |
|---|---|
| private int columnId | |
| comment | back to summary |
|---|---|
| private String comment | |
| defaultExpression | back to summary |
|---|---|
| private Expression defaultExpression | |
| defaultOnNull | back to summary |
|---|---|
| private boolean defaultOnNull | |
| domain | back to summary |
|---|---|
| private Domain domain | |
| generatedTableFilter | back to summary |
|---|---|
| private GeneratedColumnResolver generatedTableFilter | |
| identityOptions | back to summary |
|---|---|
| private SequenceOptions identityOptions | |
| isGeneratedAlways | back to summary |
|---|---|
| private boolean isGeneratedAlways | |
| name | back to summary |
|---|---|
| private String name | |
| NOT_NULLABLE | back to summary |
|---|---|
| public static final int NOT_NULLABLE This column is not nullable. | |
| NULLABLE | back to summary |
|---|---|
| public static final int NULLABLE This column is nullable. | |
| nullable | back to summary |
|---|---|
| private boolean nullable | |
| NULLABLE_UNKNOWN | back to summary |
|---|---|
| public static final int NULLABLE_UNKNOWN It is not know whether this column is nullable. | |
| onUpdateExpression | back to summary |
|---|---|
| private Expression onUpdateExpression | |
| primaryKey | back to summary |
|---|---|
| private boolean primaryKey | |
| ROWID | back to summary |
|---|---|
| public static final String ROWID The name of the rowid pseudo column. | |
| rowId | back to summary |
|---|---|
| private boolean rowId | |
| selectivity | back to summary |
|---|---|
| private int selectivity | |
| sequence | back to summary |
|---|---|
| private Sequence sequence | |
| table | back to summary |
|---|---|
| private Table table | |
| type | back to summary |
|---|---|
| private TypeInfo type | |
| visible | back to summary |
|---|---|
| private boolean visible | |
| Column | back to summary |
|---|---|
| public Column(String name, TypeInfo type) | |
| Column | back to summary |
|---|---|
| public Column(String name, TypeInfo type, Table table, int columnId) | |
| convert | back to summary |
|---|---|
| public Value convert(CastDataProvider provider, Value v) Convert a value to this column's type without precision and scale checks.
| |
| convert | back to summary |
|---|---|
| public static ValueRow convert(CastDataProvider provider, Column[] columns, ValueRow valueRow) Converts the values in a ValueRow based on the passed column info.
Creates a new instance if any of the contained item must be converted.
Otherwise, returns the same
| |
| copy | back to summary |
|---|---|
| public void copy(Column source) Copy the data of the source column into the current column.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getClone | back to summary |
|---|---|
| public Column getClone() | |
| getColumnId | back to summary |
|---|---|
| public int getColumnId() | |
| getComment | back to summary |
|---|---|
| public String getComment() | |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() | |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL(boolean forMeta) Get this columns part of CREATE TABLE SQL statement.
| |
| getCreateSQL | back to summary |
|---|---|
| private String getCreateSQL(StringBuilder builder, boolean forMeta) | |
| getCreateSQLWithoutName | back to summary |
|---|---|
| public String getCreateSQLWithoutName() | |
| getDataConversionError | back to summary |
|---|---|
| private DbException getDataConversionError(Value value, DbException cause) | |
| getDefaultExpression | back to summary |
|---|---|
| public Expression getDefaultExpression() Implements org.
| |
| getDefaultOrGenerated | back to summary |
|---|---|
| private Value getDefaultOrGenerated(SessionLocal session, Row row) | |
| getDefaultSQL | back to summary |
|---|---|
| public String getDefaultSQL() Implements org.
| |
| getDomain | back to summary |
|---|---|
| public Domain getDomain() Implements org.
| |
| getEffectiveDefaultExpression | back to summary |
|---|---|
| public Expression getEffectiveDefaultExpression() Implements org.
| |
| getEffectiveOnUpdateExpression | back to summary |
|---|---|
| public Expression getEffectiveOnUpdateExpression() Implements org.
| |
| getIdentityOptions | back to summary |
|---|---|
| public SequenceOptions getIdentityOptions() Returns identity column options, or
| |
| getName | back to summary |
|---|---|
| public String getName() | |
| getOnUpdateExpression | back to summary |
|---|---|
| public Expression getOnUpdateExpression() Implements org.
| |
| getOnUpdateSQL | back to summary |
|---|---|
| public String getOnUpdateSQL() Implements org.
| |
| getSelectivity | back to summary |
|---|---|
| public int getSelectivity() Get the selectivity of the column. Selectivity 100 means values are unique, 10 means every distinct value appears 10 times on average.
| |
| getSequence | back to summary |
|---|---|
| public Sequence getSequence() | |
| getSQL | back to summary |
|---|---|
| public String getSQL(int sqlFlags) Overrides default org. Doc from org. Get the SQL statement of this expression. This may not always be the original SQL statement, specially after optimization. | |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| getSQLWithTable | back to summary |
|---|---|
| public StringBuilder getSQLWithTable(StringBuilder builder, int sqlFlags) Appends the table name and column name to the specified builder.
| |
| getTable | back to summary |
|---|---|
| public Table getTable() | |
| getType | back to summary |
|---|---|
| public TypeInfo getType() Implements org. Doc from org. Returns the data type. | |
| getVisible | back to summary |
|---|---|
| public boolean getVisible() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasIdentityOptions | back to summary |
|---|---|
| public boolean hasIdentityOptions() Whether the column has any identity options.
| |
| initializeSequence | back to summary |
|---|---|
| public void initializeSequence(SessionLocal session, Schema schema, int id, boolean temporary) Initialize the sequence for this column.
| |
| isDefaultOnNull | back to summary |
|---|---|
| public boolean isDefaultOnNull() | |
| isEverything | back to summary |
|---|---|
| pack-priv boolean isEverything(ExpressionVisitor visitor) Visit the default expression, the check constraint, and the sequence (if any).
| |
| isGenerated | back to summary |
|---|---|
| public boolean isGenerated() Returns whether this column is a generated column.
| |
| isGeneratedAlways | back to summary |
|---|---|
| public boolean isGeneratedAlways() Returns whether this column is a generated column or always generated identity column.
| |
| isIdentity | back to summary |
|---|---|
| public boolean isIdentity() Returns whether this column is an identity column.
| |
| isNullable | back to summary |
|---|---|
| public boolean isNullable() | |
| isPrimaryKey | back to summary |
|---|---|
| public boolean isPrimaryKey() | |
| isRowId | back to summary |
|---|---|
| public boolean isRowId() Returns whether this column is a row identity column.
| |
| isWideningConversion | back to summary |
|---|---|
| public boolean isWideningConversion(Column newColumn) Check whether the new column is of the same type and not more restricted than this column.
| |
| prepareExpressions | back to summary |
|---|---|
| public void prepareExpressions(SessionLocal session) Implements org. Doc from org. Prepare all expressions of this column or domain.
| |
| removeNonIdentityProperties | back to summary |
|---|---|
| private void removeNonIdentityProperties() | |
| rename | back to summary |
|---|---|
| public void rename(String newName) Rename the column. This method will only set the column name to the new value.
| |
| setComment | back to summary |
|---|---|
| public void setComment(String comment) | |
| setDefaultExpression | back to summary |
|---|---|
| public void setDefaultExpression(SessionLocal session, Expression defaultExpression) Implements org. Doc from org. Set the default expression.
| |
| setDefaultOnNull | back to summary |
|---|---|
| public void setDefaultOnNull(boolean defaultOnNull) | |
| setDomain | back to summary |
|---|---|
| public void setDomain(Domain domain) Implements org.
| |
| setGeneratedExpression | back to summary |
|---|---|
| public void setGeneratedExpression(Expression expression) Set the default value in the form of a generated expression of other columns.
| |
| setIdentityOptions | back to summary |
|---|---|
| public void setIdentityOptions(SequenceOptions identityOptions, boolean generatedAlways) Set the identity options of this column.
| |
| setNullable | back to summary |
|---|---|
| public void setNullable(boolean b) | |
| setOnUpdateExpression | back to summary |
|---|---|
| public void setOnUpdateExpression(SessionLocal session, Expression onUpdateExpression) Implements org. Doc from org. Set the on update expression.
| |
| setPrimaryKey | back to summary |
|---|---|
| public void setPrimaryKey(boolean primaryKey) | |
| setRowId | back to summary |
|---|---|
| public void setRowId(boolean rowId) Set row identity flag.
| |
| setSelectivity | back to summary |
|---|---|
| public void setSelectivity(int selectivity) Set the new selectivity of a column.
| |
| setSequence | back to summary |
|---|---|
| public void setSequence(Sequence sequence, boolean generatedAlways) Set the sequence to generate the value.
| |
| setTable | back to summary |
|---|---|
| public void setTable(Table table, int columnId) Set the table and column id.
| |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean b) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateSequenceIfRequired | back to summary |
|---|---|
| private void updateSequenceIfRequired(SessionLocal session, long value) | |
| validateConvertUpdateSequence | back to summary |
|---|---|
| pack-priv Value validateConvertUpdateSequence(SessionLocal session, Value value, Row row) Validate the value, convert it if required, and update the sequence value if required. If the value is null, the default value (NULL if no default is set) is returned. Domain constraints are validated as well.
| |
| writeColumns | back to summary |
|---|---|
| public static StringBuilder writeColumns(StringBuilder builder, Column[] columns, int sqlFlags) Appends the specified columns to the specified builder.
| |
| writeColumns | back to summary |
|---|---|
| public static StringBuilder writeColumns(StringBuilder builder, Column[] columns, String separator, String suffix, int sqlFlags) Appends the specified columns to the specified builder.
| |