public class SequenceDescriptor extends TupleDescriptor implements Provider, Dependent, PrivilegedSQLObject
dataDictionary
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SCHEMA_PERMISSION, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW
Constructor and Description |
---|
SequenceDescriptor(DataDictionary dataDictionary,
SchemaDescriptor sd,
UUID sequenceUUID,
java.lang.String sequenceName,
DataTypeDescriptor dataType,
java.lang.Long currentValue,
long startValue,
long minimumValue,
long maximumValue,
long increment,
boolean canCycle)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canCycle() |
java.lang.String |
getClassType()
Get the provider's type.
|
java.lang.Long |
getCurrentValue() |
DataTypeDescriptor |
getDataType() |
DependableFinder |
getDependableFinder()
Get an object which can be written to disk and which,
when read from disk, will find or reconstruct this in-memory
Dependable.
|
java.lang.String |
getDescriptorName() |
java.lang.String |
getDescriptorType()
Each descriptor must identify itself with its type; i.e index, check
constraint whatever.
|
long |
getIncrement() |
long |
getMaximumValue() |
long |
getMinimumValue() |
java.lang.String |
getName()
Get the name of this object.
|
UUID |
getObjectID()
Get the provider's UUID
|
java.lang.String |
getObjectName()
Return the name of this Provider.
|
java.lang.String |
getObjectTypeName()
Get the type of the object for storage in SYS.SYSPERMS
|
SchemaDescriptor |
getSchemaDescriptor()
Get the objects schema descriptor
|
UUID |
getSchemaId() |
java.lang.String |
getSequenceName() |
long |
getStartValue() |
UUID |
getUUID()
Return the UUID for this Descriptor
|
boolean |
isPersistent()
Is this provider persistent? A stored dependency will be required
if both the dependent and provider are persistent.
|
boolean |
isValid()
Check that all of the dependent's dependencies are valid.
|
void |
makeInvalid(int action,
LanguageConnectionContext lcc)
Mark the dependent as invalid (due to at least one of
its dependencies being invalid).
|
void |
prepareToInvalidate(Provider p,
int action,
LanguageConnectionContext lcc)
Prepare to mark the dependent as invalid (due to at least one of
its dependencies being invalid).
|
java.lang.String |
toString() |
getColumnDependableFinder, getDataDictionary, getDependableFinder, setDataDictionary
public SequenceDescriptor(DataDictionary dataDictionary, SchemaDescriptor sd, UUID sequenceUUID, java.lang.String sequenceName, DataTypeDescriptor dataType, java.lang.Long currentValue, long startValue, long minimumValue, long maximumValue, long increment, boolean canCycle)
dataDictionary
- data dictionarysequenceUUID
- unique identification in time and space of this sequence
descriptorsequenceName
- public UUID getUUID()
UniqueTupleDescriptor
getUUID
in interface UniqueTupleDescriptor
UniqueTupleDescriptor.getUUID()
public java.lang.String getObjectTypeName()
PrivilegedSQLObject
getObjectTypeName
in interface PrivilegedSQLObject
PrivilegedSQLObject.getObjectTypeName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isValid()
public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException
prepareToInvalidate
in interface Dependent
action
- The action causing the invalidationp
- the providerlcc
- the language connection contextStandardException
- thrown if unable to make it invalidpublic void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException
makeInvalid
in interface Dependent
lcc
- the language connection contextaction
- The action causing the invalidationStandardException
- thrown if called in sanity modepublic java.lang.String getName()
UniqueSQLObjectDescriptor
getName
in interface UniqueSQLObjectDescriptor
public SchemaDescriptor getSchemaDescriptor() throws StandardException
UniqueSQLObjectDescriptor
getSchemaDescriptor
in interface UniqueSQLObjectDescriptor
StandardException
- on errorpublic java.lang.String getDescriptorType()
TupleDescriptor
getDescriptorType
in class TupleDescriptor
TupleDescriptor.getDescriptorType()
public java.lang.String getDescriptorName()
getDescriptorName
in class TupleDescriptor
TupleDescriptor.getDescriptorName()
public UUID getObjectID()
getObjectID
in interface Dependable
public boolean isPersistent()
isPersistent
in interface Dependable
isPersistent
in class TupleDescriptor
public java.lang.String getObjectName()
getObjectName
in interface Dependable
public java.lang.String getClassType()
getClassType
in interface Dependable
public DependableFinder getDependableFinder()
Dependable
getDependableFinder
in interface Dependable
Dependable.getDependableFinder()
public java.lang.String getSequenceName()
public UUID getSchemaId()
public DataTypeDescriptor getDataType()
public java.lang.Long getCurrentValue()
public long getStartValue()
public long getMinimumValue()
public long getMaximumValue()
public long getIncrement()
public boolean canCycle()