Class AddPrimaryKeyStatement

    • Constructor Detail

      • AddPrimaryKeyStatement

        public AddPrimaryKeyStatement​(String catalogName,
                                      String schemaName,
                                      String tableName,
                                      String columnNames,
                                      String constraintName)
    • Method Detail

      • getCatalogName

        public String getCatalogName()
      • getSchemaName

        public String getSchemaName()
      • getTableName

        public String getTableName()
      • getTablespace

        public String getTablespace()
      • getColumnNames

        public String getColumnNames()
      • getConstraintName

        public String getConstraintName()
      • isClustered

        public Boolean isClustered()
      • getForIndexName

        public String getForIndexName()
      • setForIndexName

        public void setForIndexName​(String forIndexName)
      • getForIndexSchemaName

        public String getForIndexSchemaName()
      • setForIndexSchemaName

        public void setForIndexSchemaName​(String forIndexSchemaName)
      • getForIndexCatalogName

        public String getForIndexCatalogName()
      • setForIndexCatalogName

        public void setForIndexCatalogName​(String forIndexCatalogName)
      • shouldValidate

        public boolean shouldValidate()
        The VALIDATE keyword defines whether a primary key constraint on a column in a table should be checked if it refers to a valid row or not.
        true if ENABLE VALIDATE (this is the default), or false if ENABLE NOVALIDATE.
      • setShouldValidate

        public AddPrimaryKeyStatement setShouldValidate​(boolean shouldValidate)
        shouldValidate - - if shouldValidate is set to FALSE then the constraint will be created with the 'ENABLE NOVALIDATE' mode. This means the constraint would be created, but that no check will be done to ensure old data has valid primary keys - only new data would be checked to see if it complies with the constraint logic. The default state for primary keys is to have 'ENABLE VALIDATE' set.