public final class AliasDescriptor extends TupleDescriptor implements PrivilegedSQLObject, Provider, Dependent
| Modifier and Type | Field and Description |
|---|---|
private UUID |
aliasID |
private AliasInfo |
aliasInfo |
private java.lang.String |
aliasName |
private char |
aliasType |
private java.lang.String |
javaClassName |
private char |
nameSpace |
private SchemaDescriptor |
schemaDescriptor |
private UUID |
schemaID |
private java.lang.String |
specificName |
private boolean |
systemAlias |
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 |
|---|
AliasDescriptor(DataDictionary dataDictionary,
UUID aliasID,
java.lang.String aliasName,
UUID schemaID,
java.lang.String javaClassName,
char aliasType,
char nameSpace,
boolean systemAlias,
AliasInfo aliasInfo,
java.lang.String specificName)
Constructor for a AliasDescriptor
|
| Modifier and Type | Method and Description |
|---|---|
void |
drop(LanguageConnectionContext lcc)
Drop the routine or synonym.
|
boolean |
equals(java.lang.Object otherObject)
Determine if two AliasDescriptors are the same.
|
AliasInfo |
getAliasInfo()
Gests the AliasInfo for the alias.
|
char |
getAliasType()
Gets the type of the alias.
|
static java.lang.String |
getAliasType(char nameSpace) |
java.lang.String |
getClassType()
Get the provider's type.
|
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.
|
java.lang.String |
getJavaClassName()
Gets the java class name of the alias.
|
java.lang.String |
getName()
Gets the name of the alias.
|
char |
getNameSpace()
Gets the name space of the alias.
|
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
|
java.lang.String |
getQualifiedName()
Gets the full, qualified name of the alias.
|
SchemaDescriptor |
getSchemaDescriptor()
Gets the SchemaDescriptor for this alias.
|
java.lang.String |
getSchemaName()
Gets the name of the schema that the alias lives in.
|
UUID |
getSchemaUUID()
Gets the UUID of the schema for this method alias.
|
java.lang.String |
getSpecificName()
Return the specific name for this object.
|
boolean |
getSystemAlias()
Gets whether or not the alias is a system alias.
|
UUID |
getUUID()
Gets the UUID of the method alias.
|
int |
hashCode()
Get a hashcode for this AliasDescriptor
|
boolean |
isPersistent()
Functions are persistent unless they are in the SYSFUN schema.
|
boolean |
isTableFunction()
Report whether this descriptor describes a Table Function.
|
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 AliasDescriptor to a String.
|
getColumnDependableFinder, getDataDictionary, getDependableFinder, setDataDictionaryprivate final UUID aliasID
private final java.lang.String aliasName
private final UUID schemaID
private final java.lang.String javaClassName
private final char aliasType
private final char nameSpace
private final boolean systemAlias
private final AliasInfo aliasInfo
private final java.lang.String specificName
private final SchemaDescriptor schemaDescriptor
public AliasDescriptor(DataDictionary dataDictionary, UUID aliasID, java.lang.String aliasName, UUID schemaID, java.lang.String javaClassName, char aliasType, char nameSpace, boolean systemAlias, AliasInfo aliasInfo, java.lang.String specificName) throws StandardException
dataDictionary - The data dictionary that this descriptor lives inaliasID - The UUID for this aliasaliasName - The name of the method aliasschemaID - The UUID for this alias's schemajavaClassName - The java class name of the aliasaliasType - The alias typenameSpace - The alias name spacealiasInfo - The AliasInfo for the aliasStandardExceptionpublic UUID getUUID()
getUUID in interface UniqueTupleDescriptorpublic java.lang.String getObjectTypeName()
PrivilegedSQLObjectgetObjectTypeName in interface PrivilegedSQLObjectPrivilegedSQLObject.getObjectTypeName()public UUID getSchemaUUID()
public final SchemaDescriptor getSchemaDescriptor()
getSchemaDescriptor in interface UniqueSQLObjectDescriptorpublic final java.lang.String getName()
getName in interface UniqueSQLObjectDescriptorpublic java.lang.String getSchemaName()
public java.lang.String getQualifiedName()
public java.lang.String getJavaClassName()
public char getAliasType()
public char getNameSpace()
public boolean getSystemAlias()
public AliasInfo getAliasInfo()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object otherObject)
equals in class java.lang.ObjectotherObject - other descriptorpublic int hashCode()
hashCode in class java.lang.Objectpublic DependableFinder getDependableFinder()
DependablegetDependableFinder in interface DependableDependable.getDependableFinder()public java.lang.String getObjectName()
getObjectName in interface Dependablepublic UUID getObjectID()
getObjectID in interface Dependablepublic java.lang.String getClassType()
getClassType in interface Dependablepublic java.lang.String getDescriptorType()
TupleDescriptorgetDescriptorType in class TupleDescriptorTupleDescriptor.getDescriptorType()public static final java.lang.String getAliasType(char nameSpace)
public java.lang.String getDescriptorName()
getDescriptorName in class TupleDescriptorTupleDescriptor.getDescriptorName()public java.lang.String getSpecificName()
public boolean isPersistent()
isPersistent in interface DependableisPersistent in class TupleDescriptorpublic boolean isTableFunction()
public void drop(LanguageConnectionContext lcc) throws StandardException
lcc - StandardExceptionpublic boolean isValid()
public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException
prepareToInvalidate in interface Dependentaction - 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 Dependentaction - The action causing the invalidationlcc - The LanguageConnectionContextStandardException - thrown if called in sanity modeApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.