Class CreateSynonym


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

      • ifNotExists

        private boolean ifNotExists
      • orReplace

        private boolean orReplace
      • comment

        private java.lang.String comment
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
      • setSynonymFor

        public void setSynonymFor​(java.lang.String tableName)
      • setSynonymForSchema

        public void setSynonymForSchema​(Schema synonymForSchema)
      • setIfNotExists

        public void setIfNotExists​(boolean ifNotExists)
      • setOrReplace

        public void setOrReplace​(boolean orReplace)
      • createTableSynonym

        private int createTableSynonym​(Database db)
      • setComment

        public void setComment​(java.lang.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