public final class ColumnSchema extends ColumnBase implements SchemaObject
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
Modifier and Type | Field and Description |
---|---|
static ColumnSchema[] |
emptyArray |
dataType, parameterMode
ACTOR, ASPECTS, ASSERTION, CATALOG, CHARSET, COLLATION, COLLECTION, COLUMN, CONNECTION_FACTORY, CONSTRAINT, CURSOR, DOMAIN, EVENT_PROTOTYPE, FACETS, FILE_DESCRIPTOR, FULL_TEXT_INDEX, FUNCTION, GRANTEE, INDEX, JOB, LABEL, PARAMETER, PROCEDURE, REFERENCE_LINK, REPLICA, REPLICATION_SOURCE, ROUTINE, SCHEMA, SEMANTIC_TYPE, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TIMER, TRANSIENT_VAR, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
Constructor and Description |
---|
ColumnSchema(NameManager.ObjectName name,
com.streamscape.ds.types.Type type,
boolean isNullable,
boolean isPrimaryKey,
com.streamscape.ds.parser.expression.Expression defaultExpression)
Creates a column defined in DDL statement.
|
Modifier and Type | Method and Description |
---|---|
void |
addReferenceLink(com.streamscape.ds.schema.constraint.ReferenceLink referenceLink) |
void |
compile(com.streamscape.ds.session.Session session,
SchemaObject table) |
ColumnSchema |
duplicate() |
com.streamscape.ds.parser.expression.Expression |
getAccessor() |
NameManager.ObjectName |
getCatalogName() |
java.lang.String |
getCatalogNameString() |
long |
getChangeTimestamp() |
com.streamscape.ds.lib.OrderedHashSet |
getComponents() |
com.streamscape.ds.parser.expression.Expression |
getDefaultExpression()
Returns default expression for the column.
|
java.lang.String |
getDefaultSQL()
Returns SQL for default value.
|
java.lang.Object |
getDefaultValue(com.streamscape.ds.session.Session session)
Returns default value in the session context.
|
com.streamscape.ds.lib.OrderedHashSet |
getGeneratedColumnReferences() |
java.lang.Object |
getGeneratedValue(com.streamscape.ds.session.Session session)
Returns generated value in the session context.
|
com.streamscape.ds.parser.expression.Expression |
getGeneratingExpression()
Returns generated expression for the column.
|
NumberSequence |
getIdentitySequence() |
java.lang.String |
getNameString() |
byte |
getNullability() |
NameManager.ObjectName |
getObjectName() |
int |
getObjectType() |
com.streamscape.ds.rights.Grantee |
getOwner() |
com.streamscape.ds.lib.OrderedHashSet |
getReferences() |
NameManager.ObjectName |
getSchemaName() |
java.lang.String |
getSchemaNameString() |
java.lang.String |
getSQL() |
java.lang.String |
getSQL(java.lang.String name) |
java.lang.String |
getTableNameString() |
boolean |
hasDefault() |
boolean |
isGenerated() |
boolean |
isNullable()
Is column nullable.
|
boolean |
isPrimaryKey()
Is this single column primary key of the table.
|
boolean |
isSearchable() |
boolean |
isWriteable()
Is column writeable or always generated
|
void |
setDefaultExpression(com.streamscape.ds.parser.expression.Expression expr) |
void |
setGeneratingExpression(com.streamscape.ds.parser.expression.Expression expr) |
void |
setIdentity(NumberSequence sequence) |
void |
setName(NameManager.ObjectName name) |
void |
setPrimaryKey(boolean value)
Set primary key.
|
void |
setReferences() |
void |
setType(ColumnSchema other) |
void |
setType(com.streamscape.ds.types.Type type) |
void |
setWriteable(boolean value) |
getDataType, getParameterMode, isIdentity, setIdentity, setNullability, setNullable, setParameterMode
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregateObjectStateHolder, getSQLInSchema, recompileObject
public static final ColumnSchema[] emptyArray
public ColumnSchema(NameManager.ObjectName name, com.streamscape.ds.types.Type type, boolean isNullable, boolean isPrimaryKey, com.streamscape.ds.parser.expression.Expression defaultExpression)
public int getObjectType()
getObjectType
in interface SchemaObject
public NameManager.ObjectName getObjectName()
getObjectName
in interface SchemaObject
public java.lang.String getNameString()
getNameString
in class ColumnBase
public java.lang.String getTableNameString()
getTableNameString
in class ColumnBase
public NameManager.ObjectName getSchemaName()
getSchemaName
in interface SchemaObject
public java.lang.String getSchemaNameString()
getSchemaNameString
in class ColumnBase
public NameManager.ObjectName getCatalogName()
getCatalogName
in interface SchemaObject
public java.lang.String getCatalogNameString()
getCatalogNameString
in class ColumnBase
public com.streamscape.ds.rights.Grantee getOwner()
getOwner
in interface SchemaObject
public com.streamscape.ds.lib.OrderedHashSet getReferences()
getReferences
in interface SchemaObject
public com.streamscape.ds.lib.OrderedHashSet getComponents()
getComponents
in interface SchemaObject
public void compile(com.streamscape.ds.session.Session session, SchemaObject table)
compile
in interface SchemaObject
public java.lang.String getSQL()
getSQL
in interface SchemaObject
public java.lang.String getSQL(java.lang.String name)
getSQL
in interface SchemaObject
public long getChangeTimestamp()
getChangeTimestamp
in interface SchemaObject
public void setType(com.streamscape.ds.types.Type type)
setType
in class ColumnBase
public void setName(NameManager.ObjectName name)
public void setIdentity(NumberSequence sequence)
public void setType(ColumnSchema other)
public NumberSequence getIdentitySequence()
public boolean isNullable()
isNullable
in class ColumnBase
public byte getNullability()
getNullability
in class ColumnBase
public boolean isGenerated()
public boolean hasDefault()
public boolean isWriteable()
isWriteable
in class ColumnBase
public void setWriteable(boolean value)
setWriteable
in class ColumnBase
public boolean isSearchable()
isSearchable
in class ColumnBase
public boolean isPrimaryKey()
public void setPrimaryKey(boolean value)
public java.lang.Object getDefaultValue(com.streamscape.ds.session.Session session)
public java.lang.Object getGeneratedValue(com.streamscape.ds.session.Session session)
public java.lang.String getDefaultSQL()
public com.streamscape.ds.parser.expression.Expression getDefaultExpression()
public void setDefaultExpression(com.streamscape.ds.parser.expression.Expression expr)
public com.streamscape.ds.parser.expression.Expression getGeneratingExpression()
public void setGeneratingExpression(com.streamscape.ds.parser.expression.Expression expr)
public ColumnSchema duplicate()
public com.streamscape.ds.parser.expression.Expression getAccessor()
public com.streamscape.ds.lib.OrderedHashSet getGeneratedColumnReferences()
public void setReferences()
public void addReferenceLink(com.streamscape.ds.schema.constraint.ReferenceLink referenceLink)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.