public class SequenceDescriptor extends PrivilegedSQLObject implements Provider, Dependent
Modifier and Type | Field and Description |
---|---|
private boolean |
canCycle |
private java.lang.Long |
currentValue |
private DataTypeDescriptor |
dataType |
private long |
increment |
private long |
maximumValue |
private long |
minimumValue |
private SchemaDescriptor |
schemaDescriptor |
private UUID |
schemaId |
private java.lang.String |
sequenceName |
private UUID |
sequenceUUID |
private long |
startValue |
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, 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() |
void |
drop(LanguageConnectionContext lcc)
Drop this sequence descriptor.
|
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?
|
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
private UUID sequenceUUID
private java.lang.String sequenceName
private final SchemaDescriptor schemaDescriptor
private UUID schemaId
private DataTypeDescriptor dataType
private java.lang.Long currentValue
private long startValue
private long minimumValue
private long maximumValue
private long increment
private boolean canCycle
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 class UniqueTupleDescriptor
UniqueTupleDescriptor.getUUID()
public java.lang.String getObjectTypeName()
PrivilegedSQLObject
getObjectTypeName
in class PrivilegedSQLObject
PrivilegedSQLObject.getObjectTypeName()
public java.lang.String toString()
toString
in class java.lang.Object
public void drop(LanguageConnectionContext lcc) throws StandardException
StandardException
- Could not be dropped.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 class UniqueSQLObjectDescriptor
public SchemaDescriptor getSchemaDescriptor() throws StandardException
UniqueSQLObjectDescriptor
getSchemaDescriptor
in class 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()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.