org.apache.derby.catalog.types
Class SynonymAliasInfo

java.lang.Object
  extended byorg.apache.derby.catalog.types.SynonymAliasInfo
All Implemented Interfaces:
AliasInfo, java.io.Externalizable, Formatable, java.io.Serializable, TypedFormat

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

Describe an S (Synonym) alias.

See Also:
AliasInfo, Serialized Form

Field Summary
private  java.lang.String schemaName
           
private  java.lang.String tableName
           
 
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
SynonymAliasInfo()
           
SynonymAliasInfo(java.lang.String schemaName, java.lang.String tableName)
          Create a SynonymAliasInfo for synonym.
 
Method Summary
 java.lang.String getMethodName()
          Get the name of the static method that the alias represents at the source database.
 java.lang.String getSynonymSchema()
           
 java.lang.String getSynonymTable()
           
 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()
           
 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

schemaName

private java.lang.String schemaName

tableName

private java.lang.String tableName
Constructor Detail

SynonymAliasInfo

public SynonymAliasInfo()

SynonymAliasInfo

public SynonymAliasInfo(java.lang.String schemaName,
                        java.lang.String tableName)
Create a SynonymAliasInfo for synonym.

Method Detail

getSynonymTable

public java.lang.String getSynonymTable()

getSynonymSchema

public java.lang.String getSynonymSchema()

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

toString

public java.lang.String toString()

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.

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.