Package org.apache.derby.catalog.types
Class SynonymAliasInfo
- java.lang.Object
-
- org.apache.derby.catalog.types.SynonymAliasInfo
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,AliasInfo,Formatable,TypedFormat
public class SynonymAliasInfo extends java.lang.Object implements AliasInfo, Formatable
Describe an S (Synonym) alias.- See Also:
AliasInfo, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringschemaNameprivate java.lang.StringtableName-
Fields inherited from interface org.apache.derby.catalog.AliasInfo
ALIAS_NAME_SPACE_AGGREGATE_AS_CHAR, ALIAS_NAME_SPACE_AGGREGATE_AS_STRING, ALIAS_NAME_SPACE_FUNCTION_AS_CHAR, ALIAS_NAME_SPACE_FUNCTION_AS_STRING, ALIAS_NAME_SPACE_PROCEDURE_AS_CHAR, ALIAS_NAME_SPACE_PROCEDURE_AS_STRING, ALIAS_NAME_SPACE_SYNONYM_AS_CHAR, ALIAS_NAME_SPACE_SYNONYM_AS_STRING, ALIAS_NAME_SPACE_UDT_AS_CHAR, ALIAS_NAME_SPACE_UDT_AS_STRING, ALIAS_TYPE_AGGREGATE_AS_CHAR, ALIAS_TYPE_AGGREGATE_AS_STRING, ALIAS_TYPE_FUNCTION_AS_CHAR, ALIAS_TYPE_FUNCTION_AS_STRING, ALIAS_TYPE_PROCEDURE_AS_CHAR, ALIAS_TYPE_PROCEDURE_AS_STRING, ALIAS_TYPE_SYNONYM_AS_CHAR, ALIAS_TYPE_SYNONYM_AS_STRING, ALIAS_TYPE_UDT_AS_CHAR, ALIAS_TYPE_UDT_AS_STRING
-
-
Constructor Summary
Constructors Constructor Description SynonymAliasInfo()SynonymAliasInfo(java.lang.String schemaName, java.lang.String tableName)Create a SynonymAliasInfo for synonym.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethodName()Get the name of the static method that the alias represents at the source database.java.lang.StringgetSynonymSchema()java.lang.StringgetSynonymTable()intgetTypeFormatId()Get the formatID which corresponds to this class.booleanisTableFunction()Return true if this alias is a Table Function.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)Write this object to a stream of stored objects.
-
-
-
Method Detail
-
getSynonymTable
public java.lang.String getSynonymTable()
-
getSynonymSchema
public java.lang.String getSynonymSchema()
-
isTableFunction
public boolean isTableFunction()
Description copied from interface:AliasInfoReturn true if this alias is a Table Function.- Specified by:
isTableFunctionin interfaceAliasInfo
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead this object from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on errorjava.lang.ClassNotFoundException- thrown on error
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this object to a stream of stored objects.- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here.- Throws:
java.io.IOException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getMethodName
public java.lang.String getMethodName()
Description copied from interface:AliasInfoGet the name of the static method that the alias represents at the source database. (Only meaningful for method aliases )- Specified by:
getMethodNamein interfaceAliasInfo- Returns:
- The name of the static method that the alias represents at the source database.
-
-