Class DefaultDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.UniqueTupleDescriptor
org.apache.derby.iapi.sql.dictionary.DefaultDescriptor
- All Implemented Interfaces:
Dependable, Dependent, Provider
This interface is used to get information from a DefaultDescriptor.
-
Field Summary
FieldsFields inherited from interface 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
ConstructorsConstructorDescriptionDefaultDescriptor(DataDictionary dataDictionary, UUID defaultUUID, UUID tableUUID, int columnNumber) Constructor for a DefaultDescriptor -
Method Summary
Modifier and TypeMethodDescriptionGet the provider's type.intGet the column number of the column.Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.Get the provider's UUIDReturn the name of this Provider.Get the UUID of the table.getUUID()Get the UUID of the default.booleanisValid()Check that all of the dependent's dependencies are valid.voidmakeInvalid(int action, LanguageConnectionContext lcc) Mark the dependent as invalid (due to at least one of its dependencies being invalid).voidprepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).toString()Convert the DefaultDescriptor to a String.Methods inherited from class TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, isPersistent, setDataDictionaryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Dependable
isPersistent
-
Field Details
-
columnNumber
private final int columnNumber -
defaultUUID
-
tableUUID
-
-
Constructor Details
-
DefaultDescriptor
public DefaultDescriptor(DataDictionary dataDictionary, UUID defaultUUID, UUID tableUUID, int columnNumber) Constructor for a DefaultDescriptor- Parameters:
dataDictionary- the DDdefaultUUID- The UUID of the defaulttableUUID- The UUID of the tablecolumnNumber- The column number of the column that the default is for
-
-
Method Details
-
getUUID
Get the UUID of the default.- Specified by:
getUUIDin classUniqueTupleDescriptor- Returns:
- The UUID of the default.
-
getTableUUID
-
getColumnNumber
public int getColumnNumber()Get the column number of the column.- Returns:
- The column number of the column.
-
toString
-
getDependableFinder
Description copied from interface:DependableGet an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.- Specified by:
getDependableFinderin interfaceDependable- Returns:
- the stored form of this provider
- See Also:
-
getObjectName
Return the name of this Provider. (Useful for errors.)- Specified by:
getObjectNamein interfaceDependable- Returns:
- String The name of this provider.
-
getObjectID
Get the provider's UUID- Specified by:
getObjectIDin interfaceDependable- Returns:
- The provider's UUID
-
getClassType
Get the provider's type.- Specified by:
getClassTypein interfaceDependable- Returns:
- char The provider's type.
-
isValid
-
prepareToInvalidate
public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).- Specified by:
prepareToInvalidatein interfaceDependent- Parameters:
p- the provideraction- The action causing the invalidationlcc- The LanguageConnectionContext- Throws:
StandardException- thrown if unable to make it invalid
-
makeInvalid
Mark the dependent as invalid (due to at least one of its dependencies being invalid). Always an error for a constraint -- should never have gotten here.- Specified by:
makeInvalidin interfaceDependent- Parameters:
action- The action causing the invalidationlcc- The LanguageConnectionContext- Throws:
StandardException- thrown if called in sanity mode
-