|
|||||||||
| 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.AliasDescriptor
public final class AliasDescriptor
This class represents an Alias Descriptor. The public methods for this class are:
| Field Summary | |
|---|---|
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
|
| 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 | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor |
|---|
getColumnDependableFinder, getDataDictionary, getDependableFinder, setDataDictionary |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private 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
| Constructor Detail |
|---|
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 alias
StandardException| Method Detail |
|---|
public UUID getUUID()
getUUID in interface UniqueTupleDescriptorpublic java.lang.String getObjectTypeName()
PrivilegedSQLObject
getObjectTypeName 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 descriptor
public int hashCode()
hashCode in class java.lang.Objectpublic DependableFinder getDependableFinder()
Dependable
getDependableFinder 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()
TupleDescriptor
getDescriptorType 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()
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 LanguageConnectionContext
StandardException - thrown if unable to make it invalid
public void makeInvalid(int action,
LanguageConnectionContext lcc)
throws StandardException
makeInvalid in interface Dependentaction - The action causing the invalidationlcc - The LanguageConnectionContext
StandardException - thrown if called in sanity mode
|
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 | ||||||||