Class MethodAliasInfo
java.lang.Object
org.apache.derby.catalog.types.MethodAliasInfo
- All Implemented Interfaces:
Externalizable, Serializable, AliasInfo, Formatable, TypedFormat
- Direct Known Subclasses:
RoutineAliasInfo
Describe a method alias.
- See Also:
-
Field Summary
FieldsFields inherited from interface 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
ConstructorsConstructorDescriptionPublic niladic constructor.MethodAliasInfo(String methodName) Create a MethodAliasInfo -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the static method that the alias represents at the source database.intGet the formatID which corresponds to this class.booleanReturn true if this alias is a Table Function.voidRead this object from a stream of stored objects.toString()voidWrite this object to a stream of stored objects.
-
Field Details
-
methodName
This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.
-
-
Constructor Details
-
MethodAliasInfo
public MethodAliasInfo()Public niladic constructor. Needed for Formatable interface to work. -
MethodAliasInfo
Create a MethodAliasInfo- Parameters:
methodName- The name of the method for the alias.
-
-
Method Details
-
readExternal
Read this object from a stream of stored objects.- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- read this.- Throws:
IOException- thrown on errorClassNotFoundException- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- write bytes here.- Throws:
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
-
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.
- See Also:
-
isTableFunction
public boolean isTableFunction()Description copied from interface:AliasInfoReturn true if this alias is a Table Function.- Specified by:
isTableFunctionin interfaceAliasInfo
-
toString
-