Dependable
, Dependent
, Provider
public final class DefaultDescriptor extends UniqueTupleDescriptor implements Provider, Dependent
Modifier and Type | Field | Description |
---|---|---|
private int |
columnNumber |
|
private UUID |
defaultUUID |
|
private UUID |
tableUUID |
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 | Description |
---|---|
DefaultDescriptor(DataDictionary dataDictionary,
UUID defaultUUID,
UUID tableUUID,
int columnNumber) |
Constructor for a DefaultDescriptor
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getClassType() |
Get the provider's type.
|
int |
getColumnNumber() |
Get the column number of the column.
|
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.
|
UUID |
getObjectID() |
Get the provider's UUID
|
java.lang.String |
getObjectName() |
Return the name of this Provider.
|
UUID |
getTableUUID() |
Get the UUID of the table.
|
UUID |
getUUID() |
Get the UUID of the default.
|
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() |
Convert the DefaultDescriptor to a String.
|
isPersistent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, isPersistent, setDataDictionary
private final int columnNumber
private final UUID defaultUUID
private final UUID tableUUID
public DefaultDescriptor(DataDictionary dataDictionary, UUID defaultUUID, UUID tableUUID, int columnNumber)
dataDictionary
- the DDdefaultUUID
- The UUID of the defaulttableUUID
- The UUID of the tablecolumnNumber
- The column number of the column that the default is forpublic UUID getUUID()
getUUID
in class UniqueTupleDescriptor
public UUID getTableUUID()
public int getColumnNumber()
public java.lang.String toString()
toString
in class java.lang.Object
public DependableFinder getDependableFinder()
Dependable
getDependableFinder
in interface Dependable
Dependable.getDependableFinder()
public java.lang.String getObjectName()
getObjectName
in interface Dependable
public UUID getObjectID()
getObjectID
in interface Dependable
public java.lang.String getClassType()
getClassType
in interface Dependable
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 LanguageConnectionContextStandardException
- thrown if unable to make it invalidpublic void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException
makeInvalid
in interface Dependent
action
- The action causing the invalidationlcc
- The LanguageConnectionContextStandardException
- thrown if called in sanity modeApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.