Class CreateSynonym


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

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