primaryKey
private boolean primaryKey
ColumnTemplate
, HasSQL
, Typed
private int
private String
private Expression
private boolean
private Domain
private GeneratedColumnResolver
private SequenceOptions
private boolean
private String
static final int
private boolean
static final int
static final int
private Expression
private boolean
private boolean
static final String
private int
private Sequence
private Table
private TypeInfo
private boolean
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
convert(CastDataProvider provider,
Value v)
void
boolean
getClone()
int
getCreateSQL(boolean forMeta)
private String
getCreateSQL(StringBuilder builder,
boolean forMeta)
private DbException
getDataConversionError(Value value,
DbException cause)
private Value
getDefaultOrGenerated(SessionLocal session,
Row row)
null
if sequence was already
created or this column is not an identity column.getName()
int
getSQL(int sqlFlags)
getSQL(StringBuilder builder,
int sqlFlags)
getSQLWithTable(StringBuilder builder,
int sqlFlags)
getTable()
getType()
boolean
int
hashCode()
boolean
void
initializeSequence(SessionLocal session,
Schema schema,
int id,
boolean temporary)
boolean
(package private) boolean
isEverything(ExpressionVisitor visitor)
boolean
boolean
boolean
boolean
boolean
boolean
isRowId()
boolean
isWideningConversion(Column newColumn)
void
prepareExpressions(SessionLocal session)
private void
void
void
setComment(String comment)
void
setDefaultExpression(SessionLocal session,
Expression defaultExpression)
void
setDefaultOnNull(boolean defaultOnNull)
void
void
setGeneratedExpression(Expression expression)
void
setIdentityOptions(SequenceOptions identityOptions,
boolean generatedAlways)
void
setNullable(boolean b)
void
setOnUpdateExpression(SessionLocal session,
Expression onUpdateExpression)
void
setPrimaryKey(boolean primaryKey)
void
setRowId(boolean rowId)
void
setSelectivity(int selectivity)
void
setSequence(Sequence sequence,
boolean generatedAlways)
void
void
setVisible(boolean b)
toString()
private void
updateSequenceIfRequired(SessionLocal session,
long value)
(package private) Value
validateConvertUpdateSequence(SessionLocal session,
Value value,
Row row)
static StringBuilder
writeColumns(StringBuilder builder,
Column[] columns,
int sqlFlags)
static StringBuilder
writeColumns(StringBuilder builder,
Column[] columns,
String separator,
String suffix,
int sqlFlags)
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTraceSQL
builder
- string buildercolumns
- columnssqlFlags
- formatting flagsbuilder
- string buildercolumns
- columnsseparator
- separatorsuffix
- additional SQL to append after each columnsqlFlags
- formatting flagsprovider
- the cast information providerv
- the valueexpression
- the computed expressiontable
- the tablecolumnId
- the column indexColumnTemplate
setDefaultExpression
in interface ColumnTemplate
session
- the sessiondefaultExpression
- the default expressionColumnTemplate
setOnUpdateExpression
in interface ColumnTemplate
session
- the sessiononUpdateExpression
- the on update expressionHasSQL
HasSQL
builder
- the string buildersqlFlags
- formatting flagsTyped
getDomain
in interface ColumnTemplate
setDomain
in interface ColumnTemplate
rowId
- true _ROWID_ column, false otherwisesession
- the sessionvalue
- the value or nullrow
- the rowsession
- the sessionschema
- the schema where the sequence should be generatedid
- the object idtemporary
- true if the sequence is temporary and does not need to
be storedColumnTemplate
prepareExpressions
in interface ColumnTemplate
session
- the sessionforMeta
- whether this is for the metadata tablegetDefaultExpression
in interface ColumnTemplate
getEffectiveDefaultExpression
in interface ColumnTemplate
getOnUpdateExpression
in interface ColumnTemplate
getEffectiveOnUpdateExpression
in interface ColumnTemplate
identityOptions
- identity column optionsgeneratedAlways
- whether value should be always generatednull
if sequence was already
created or this column is not an identity column.null
newName
- the new column namesequence
- the sequencegeneratedAlways
- whether the value of the sequence is always usedselectivity
- the new valuegetDefaultSQL
in interface ColumnTemplate
getOnUpdateSQL
in interface ColumnTemplate
visitor
- the visitornewColumn
- the new (target) columnsource
- the source column