Class CreateSynonym


public class CreateSynonym extends SchemaCommand
This class represents the statement CREATE SYNONYM
  • 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)
    • 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
    • update

      public final long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count