|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.SequenceDescriptor
public class SequenceDescriptor
This class is used by rows in the SYS.SYSSEQUENCES system table. See the header comment of SYSSEQUENCESRowFactory for the contract of that table. In particular, if the CURRENTVALUE column is null, then the sequence has been exhausted and no more values can be generated from it.
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface org.apache.derby.catalog.Dependable |
|---|
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 Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor |
|---|
getColumnDependableFinder, getDataDictionary, getDependableFinder, setDataDictionary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
public UUID getUUID()
UniqueTupleDescriptor
getUUID in interface UniqueTupleDescriptorUniqueTupleDescriptor.getUUID()public java.lang.String getObjectTypeName()
PrivilegedSQLObject
getObjectTypeName in interface PrivilegedSQLObjectPrivilegedSQLObject.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()
isValid in interface Dependent
public void prepareToInvalidate(Provider p,
int action,
LanguageConnectionContext lcc)
throws StandardException
prepareToInvalidate in interface Dependentaction - The action causing the invalidationp - the providerlcc - the language connection context
StandardException - thrown if unable to make it invalid
public void makeInvalid(int action,
LanguageConnectionContext lcc)
throws StandardException
makeInvalid in interface Dependentlcc - the language connection contextaction - The action causing the invalidation
StandardException - thrown if called in sanity modepublic java.lang.String getName()
UniqueSQLObjectDescriptor
getName in interface UniqueSQLObjectDescriptor
public SchemaDescriptor getSchemaDescriptor()
throws StandardException
UniqueSQLObjectDescriptor
getSchemaDescriptor in interface UniqueSQLObjectDescriptorStandardException - on errorpublic java.lang.String getDescriptorType()
TupleDescriptor
getDescriptorType in class TupleDescriptorTupleDescriptor.getDescriptorType()public java.lang.String getDescriptorName()
getDescriptorName in class TupleDescriptorTupleDescriptor.getDescriptorName()public UUID getObjectID()
getObjectID in interface Dependablepublic boolean isPersistent()
isPersistent in interface DependableisPersistent in class TupleDescriptorpublic java.lang.String getObjectName()
getObjectName in interface Dependablepublic java.lang.String getClassType()
getClassType in interface Dependablepublic DependableFinder getDependableFinder()
Dependable
getDependableFinder in interface DependableDependable.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()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||