Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.catalog.types
Class MethodAliasInfo  view MethodAliasInfo download MethodAliasInfo.java

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

public class MethodAliasInfo
extends java.lang.Object
implements org.apache.derby.catalog.AliasInfo, org.apache.derby.iapi.services.io.Formatable

Describe a method alias.


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_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
 
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.
 java.lang.String getTargetClassName()
           
 java.lang.String getTargetMethodName()
           
 int getTypeFormatId()
          Get the formatID which corresponds to this class.
 void readExternal(java.io.ObjectInput in)
          Read this object from a stream of stored objects.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 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

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

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

getTypeFormatId

public int getTypeFormatId()
Get the formatID which corresponds to this class.

Specified by:
getTypeFormatId in interface org.apache.derby.iapi.services.io.TypedFormat

getMethodName

public java.lang.String getMethodName()
Description copied from interface: org.apache.derby.catalog.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 org.apache.derby.catalog.AliasInfo

getTargetClassName

public java.lang.String getTargetClassName()

getTargetMethodName

public java.lang.String getTargetMethodName()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).