Class SQLExecAlterTable


  • public class SQLExecAlterTable
    extends Object
    Execute special Alter Table statement cases including unsupported, non compliant, and those requiring additional modifications
    Since:
    3.3.0
    Author:
    osbornb
    • Field Detail

      • ALTER_TABLE_PATTERN

        public static final Pattern ALTER_TABLE_PATTERN
        Alter table pattern
      • DROP_COLUMN_PATTERN

        public static final Pattern DROP_COLUMN_PATTERN
        Drop column pattern
      • RENAME_TABLE_PATTERN

        public static final Pattern RENAME_TABLE_PATTERN
        Rename table pattern
      • COPY_TABLE_PATTERN

        public static final Pattern COPY_TABLE_PATTERN
        Copy table pattern
      • TABLE_NAME_GROUP

        public static final int TABLE_NAME_GROUP
        Table name pattern group
        See Also:
        Constant Field Values
      • COLUMN_NAME_GROUP

        public static final int COLUMN_NAME_GROUP
        Column name pattern group
        See Also:
        Constant Field Values
      • NEW_TABLE_NAME_GROUP

        public static final int NEW_TABLE_NAME_GROUP
        New table name pattern group
        See Also:
        Constant Field Values
      • DROP_TABLE_PATTERN

        public static final Pattern DROP_TABLE_PATTERN
        Drop table pattern
    • Constructor Detail

      • SQLExecAlterTable

        public SQLExecAlterTable()
    • Method Detail

      • alterTable

        public static SQLExecResult alterTable​(GeoPackage database,
                                               String sql)
        Handle alter table statements that are unsupported, non spec compliant, or require additional modifications
        Parameters:
        database - open database
        sql - SQL statement
        Returns:
        results if handled, null if not a special case