org.apache.derby.catalog.types
Class MethodAliasInfo

java.lang.Object
  extended by org.apache.derby.catalog.types.MethodAliasInfo
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, AliasInfo, Formatable, TypedFormat
Direct Known Subclasses:
RoutineAliasInfo

public class MethodAliasInfo
extends java.lang.Object
implements AliasInfo, Formatable

Describe a method alias.

See Also:
AliasInfo, Serialized Form

Field Summary
private  java.lang.String methodName
          This class implements Formatable.
 
Fields inherited from interface org.apache.derby.catalog.AliasInfo
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_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
MethodAliasInfo()
          Public niladic constructor.
MethodAliasInfo(java.lang.String methodName)
          Create a MethodAliasInfo
 
Method Summary
 java.lang.String getMethodName()
          Get the name of the static method that the alias represents at the source database.
 int getTypeFormatId()
          Get the formatID which corresponds to this class.
 boolean isTableFunction()
          Return true if this alias is a Table Function.
 void readExternal(java.io.ObjectInput in)
          Read this object from a stream of stored objects.
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
          Write this object to a stream of stored objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

methodName

private java.lang.String 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 Detail

MethodAliasInfo

public MethodAliasInfo()
Public niladic constructor. Needed for Formatable interface to work.


MethodAliasInfo

public MethodAliasInfo(java.lang.String methodName)
Create a MethodAliasInfo

Parameters:
methodName - The name of the method for the alias.
Method Detail

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read this object from a stream of stored objects.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - read this.
Throws:
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write this object to a stream of stored objects.

Specified by:
writeExternal in interface java.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:
getTypeFormatId in interface TypedFormat
Returns:
the formatID of this class

getMethodName

public java.lang.String getMethodName()
Description copied from interface: AliasInfo
Get the name of the static method that the alias represents at the source database. (Only meaningful for method aliases )

Specified by:
getMethodName in interface AliasInfo
Returns:
The name of the static method that the alias represents at the source database.
See Also:
AliasInfo.getMethodName()

isTableFunction

public boolean isTableFunction()
Description copied from interface: AliasInfo
Return true if this alias is a Table Function.

Specified by:
isTableFunction in interface AliasInfo

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.