Class CreateLinkedTable


  • public class CreateLinkedTable
    extends SchemaCommand
    This class represents the statement CREATE LINKED TABLE
    • Field Detail

      • tableName

        private java.lang.String tableName
      • driver

        private java.lang.String driver
      • url

        private java.lang.String url
      • user

        private java.lang.String user
      • password

        private java.lang.String password
      • originalSchema

        private java.lang.String originalSchema
      • originalTable

        private java.lang.String originalTable
      • ifNotExists

        private boolean ifNotExists
      • comment

        private java.lang.String comment
      • emitUpdates

        private boolean emitUpdates
      • force

        private boolean force
      • temporary

        private boolean temporary
      • globalTemporary

        private boolean globalTemporary
      • readOnly

        private boolean readOnly
      • fetchSize

        private int fetchSize
      • autocommit

        private boolean autocommit
    • Constructor Detail

    • Method Detail

      • setTableName

        public void setTableName​(java.lang.String tableName)
      • setDriver

        public void setDriver​(java.lang.String driver)
      • setOriginalTable

        public void setOriginalTable​(java.lang.String originalTable)
      • setPassword

        public void setPassword​(java.lang.String password)
      • setUrl

        public void setUrl​(java.lang.String url)
      • setUser

        public void setUser​(java.lang.String user)
      • setIfNotExists

        public void setIfNotExists​(boolean ifNotExists)
      • setFetchSize

        public void setFetchSize​(int fetchSize)
        Specify the number of rows fetched by the linked table command
        Parameters:
        fetchSize - to set
      • setAutoCommit

        public void setAutoCommit​(boolean mode)
        Specify if the autocommit mode is activated or not
        Parameters:
        mode - to set
      • update

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

        public void setEmitUpdates​(boolean emitUpdates)
      • setComment

        public void setComment​(java.lang.String comment)
      • setForce

        public void setForce​(boolean force)
      • setTemporary

        public void setTemporary​(boolean temp)
      • setGlobalTemporary

        public void setGlobalTemporary​(boolean globalTemp)
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
      • setOriginalSchema

        public void setOriginalSchema​(java.lang.String originalSchema)
      • 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