Class AliasDescriptor
- All Implemented Interfaces:
Dependable, Dependent, Provider
This class represents an Alias Descriptor.
The public methods for this class are:
- getUUID
- getJavaClassName
- getAliasType
- getNameSpace
- getSystemAlias
- getAliasId
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UUIDprivate final AliasInfoprivate final Stringprivate final charprivate final Stringprivate final charprivate final SchemaDescriptorprivate final UUIDprivate final Stringprivate final booleanFields 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
ConstructorsConstructorDescriptionAliasDescriptor(DataDictionary dataDictionary, UUID aliasID, String aliasName, UUID schemaID, String javaClassName, char aliasType, char nameSpace, boolean systemAlias, AliasInfo aliasInfo, String specificName) Constructor for a AliasDescriptor -
Method Summary
Modifier and TypeMethodDescriptionvoidDrop the routine or synonym.booleanDetermine if two AliasDescriptors are the same.Gests the AliasInfo for the alias.charGets the type of the alias.static final StringgetAliasType(char nameSpace) Get the provider's type.Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.Each descriptor must identify itself with its type; i.e index, check constraint whatever.Gets the java class name of the alias.final StringgetName()Gets the name of the alias.charGets the name space of the alias.Get the provider's UUIDReturn the name of this Provider.Get the type of the object for storage in SYS.SYSPERMSGets the full, qualified name of the alias.final SchemaDescriptorGets the SchemaDescriptor for this alias.Gets the name of the schema that the alias lives in.Gets the UUID of the schema for this method alias.Return the specific name for this object.booleanGets whether or not the alias is a system alias.getUUID()Gets the UUID of the method alias.inthashCode()Get a hashcode for this AliasDescriptorbooleanFunctions are persistent unless they are in the SYSFUN schema.booleanReport whether this descriptor describes a Table Function.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 AliasDescriptor to a String.Methods inherited from class TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, setDataDictionary
-
Field Details
-
aliasID
-
aliasName
-
schemaID
-
javaClassName
-
aliasType
private final char aliasType -
nameSpace
private final char nameSpace -
systemAlias
private final boolean systemAlias -
aliasInfo
-
specificName
-
schemaDescriptor
-
-
Constructor Details
-
AliasDescriptor
public AliasDescriptor(DataDictionary dataDictionary, UUID aliasID, String aliasName, UUID schemaID, String javaClassName, char aliasType, char nameSpace, boolean systemAlias, AliasInfo aliasInfo, String specificName) throws StandardException Constructor for a AliasDescriptor- Parameters:
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- Throws:
StandardException
-
-
Method Details
-
getUUID
Gets the UUID of the method alias.- Specified by:
getUUIDin classUniqueTupleDescriptor- Returns:
- The UUID String of the method alias.
-
getObjectTypeName
Description copied from class:PrivilegedSQLObjectGet the type of the object for storage in SYS.SYSPERMS- Specified by:
getObjectTypeNamein classPrivilegedSQLObject- See Also:
-
getSchemaUUID
Gets the UUID of the schema for this method alias.- Returns:
- The UUID String of the schema id.
-
getSchemaDescriptor
Gets the SchemaDescriptor for this alias.- Specified by:
getSchemaDescriptorin classUniqueSQLObjectDescriptor- Returns:
- SchemaDescriptor The SchemaDescriptor.
-
getName
Gets the name of the alias.- Specified by:
getNamein classUniqueSQLObjectDescriptor- Returns:
- A String containing the name of the statement.
-
getSchemaName
Gets the name of the schema that the alias lives in.- Returns:
- A String containing the name of the schema that the alias lives in.
-
getQualifiedName
Gets the full, qualified name of the alias.- Returns:
- A String containing the name of the table.
-
getJavaClassName
Gets the java class name of the alias.- Returns:
- The java class name of the alias.
-
getAliasType
public char getAliasType()Gets the type of the alias.- Returns:
- The type of the alias.
-
getNameSpace
public char getNameSpace()Gets the name space of the alias.- Returns:
- The name space of the alias.
-
getSystemAlias
public boolean getSystemAlias()Gets whether or not the alias is a system alias.- Returns:
- Whether or not the alias is a system alias.
-
getAliasInfo
Gests the AliasInfo for the alias.- Returns:
- The AliasInfo for the alias.
-
toString
-
equals
-
hashCode
-
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 representation
- 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:
- String The provider's UUID
-
getClassType
Get the provider's type.- Specified by:
getClassTypein interfaceDependable- Returns:
- String The provider's type.
-
getDescriptorType
Description copied from class:TupleDescriptorEach descriptor must identify itself with its type; i.e index, check constraint whatever.- Overrides:
getDescriptorTypein classTupleDescriptor- See Also:
-
getAliasType
-
getDescriptorName
- Overrides:
getDescriptorNamein classTupleDescriptor- See Also:
-
getSpecificName
Return the specific name for this object. -
isPersistent
public boolean isPersistent()Functions are persistent unless they are in the SYSFUN schema.- Specified by:
isPersistentin interfaceDependable- Overrides:
isPersistentin classTupleDescriptor- Returns:
- boolean Whether or not this provider is persistent.
-
isTableFunction
public boolean isTableFunction()Report whether this descriptor describes a Table Function. -
drop
Drop the routine or synonym. For a routine its permission descriptors will be dropped as well. For a synonym its TableDescriptor will be dropped as well.- Parameters:
lcc-- Throws:
StandardException
-
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 an alias -- 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
-