Class CreateSynonym


public class CreateSynonym extends SchemaOwnerCommand
This class represents the statement CREATE SYNONYM
  • Field Details

    • data

      private final CreateSynonymData data
    • ifNotExists

      private boolean ifNotExists
    • orReplace

      private boolean orReplace
    • comment

      private String comment
  • Constructor Details

  • Method Details

    • setName

      public void setName(String name)
    • setSynonymFor

      public void setSynonymFor(String tableName)
    • setSynonymForSchema

      public void setSynonymForSchema(Schema synonymForSchema)
    • setIfNotExists

      public void setIfNotExists(boolean ifNotExists)
    • setOrReplace

      public void setOrReplace(boolean orReplace)
    • update

      long update(Schema schema)
      Specified by:
      update in class SchemaOwnerCommand
    • createTableSynonym

      private int createTableSynonym(Database db)
    • setComment

      public void setComment(String comment)
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type