Class SynonymAliasInfo

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

public class SynonymAliasInfo extends Object implements AliasInfo, Formatable
Describe an S (Synonym) alias.
See Also:
  • Field Details

    • schemaName

      private String schemaName
    • tableName

      private String tableName
  • Constructor Details

    • SynonymAliasInfo

      public SynonymAliasInfo()
    • SynonymAliasInfo

      public SynonymAliasInfo(String schemaName, String tableName)
      Create a SynonymAliasInfo for synonym.
  • Method Details

    • getSynonymTable

      public String getSynonymTable()
    • getSynonymSchema

      public String getSynonymSchema()
    • isTableFunction

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

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Read this object from a stream of stored objects.
      Specified by:
      readExternal in interface Externalizable
      Parameters:
      in - read this.
      Throws:
      IOException - thrown on error
      ClassNotFoundException - thrown on error
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Write this object to a stream of stored objects.
      Specified by:
      writeExternal in interface Externalizable
      Parameters:
      out - write bytes here.
      Throws:
      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 String toString()
      Overrides:
      toString in class Object
    • getMethodName

      public 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.