Package mil.nga.geopackage.io
Class SQLExecAlterTable
- java.lang.Object
-
- mil.nga.geopackage.io.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 Summary
Fields Modifier and Type Field Description static Pattern
ALTER_TABLE_PATTERN
Alter table patternstatic int
COLUMN_NAME_GROUP
Column name pattern groupstatic Pattern
COPY_TABLE_PATTERN
Copy table patternstatic Pattern
DROP_COLUMN_PATTERN
Drop column patternstatic Pattern
DROP_TABLE_PATTERN
Drop table patternstatic int
NEW_TABLE_NAME_GROUP
New table name pattern groupstatic Pattern
RENAME_TABLE_PATTERN
Rename table patternstatic int
TABLE_NAME_GROUP
Table name pattern group
-
Constructor Summary
Constructors Constructor Description SQLExecAlterTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SQLExecResult
alterTable(GeoPackage database, String sql)
Handle alter table statements that are unsupported, non spec compliant, or require additional modifications
-
-
-
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
-
-
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 databasesql
- SQL statement- Returns:
- results if handled, null if not a special case
-
-