Class SchemaExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.schema.SchemaExtension
-
public class SchemaExtension extends BaseExtension
Schema extension- Since:
- 1.1.8
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFINITION
Extension definition URLstatic String
EXTENSION_NAME
Extension namestatic String
NAME
Name-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Constructor Description SchemaExtension(GeoPackageCore geoPackage)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Extensions
createDataColumnConstraintsRecord()
Create the Data Column Constraints extension record if it does not already existboolean
createDataColumnConstraintsTable()
Create the Data Column Constraints table if it does not already existExtensions
createDataColumnsRecord()
Create the Data Columns extension record if it does not already existboolean
createDataColumnsTable()
Create the Data Columns table if it does not already existDataColumnConstraintsDao
getDataColumnConstraintsDao()
Get a Data Column Constraints DAOstatic DataColumnConstraintsDao
getDataColumnConstraintsDao(GeoPackageCoreConnection db)
Get a Data Column Constraints DAOstatic DataColumnConstraintsDao
getDataColumnConstraintsDao(GeoPackageCore geoPackage)
Get a Data Column Constraints DAODataColumnsDao
getDataColumnsDao()
Get a Data Columns DAOstatic DataColumnsDao
getDataColumnsDao(GeoPackageCoreConnection db)
Get a Data Columns DAOstatic DataColumnsDao
getDataColumnsDao(GeoPackageCore geoPackage)
Get a Data Columns DAOList<Extensions>
getOrCreate()
Get or create the extensionboolean
has()
Determine if the GeoPackage has the extensionvoid
removeExtension()
Remove all trace of the extension-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, has, verifyWritable
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Name- See Also:
- Constant Field Values
-
EXTENSION_NAME
public static final String EXTENSION_NAME
Extension name- See Also:
- Constant Field Values
-
DEFINITION
public static final String DEFINITION
Extension definition URL
-
-
Constructor Detail
-
SchemaExtension
public SchemaExtension(GeoPackageCore geoPackage)
Constructor- Parameters:
geoPackage
- GeoPackage
-
-
Method Detail
-
getOrCreate
public List<Extensions> getOrCreate()
Get or create the extension- Returns:
- extensions
-
has
public boolean has()
Determine if the GeoPackage has the extension- Returns:
- true if has extension
-
removeExtension
public void removeExtension()
Remove all trace of the extension- Since:
- 3.2.0
-
getDataColumnsDao
public DataColumnsDao getDataColumnsDao()
Get a Data Columns DAO- Returns:
- Data Columns DAO
- Since:
- 4.0.0
-
getDataColumnsDao
public static DataColumnsDao getDataColumnsDao(GeoPackageCore geoPackage)
Get a Data Columns DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- Data Columns DAO
- Since:
- 4.0.0
-
getDataColumnsDao
public static DataColumnsDao getDataColumnsDao(GeoPackageCoreConnection db)
Get a Data Columns DAO- Parameters:
db
- database connection- Returns:
- Data Columns DAO
- Since:
- 4.0.0
-
createDataColumnsTable
public boolean createDataColumnsTable()
Create the Data Columns table if it does not already exist- Returns:
- true if created
- Since:
- 4.0.0
-
createDataColumnsRecord
public Extensions createDataColumnsRecord()
Create the Data Columns extension record if it does not already exist- Returns:
- extension
- Since:
- 6.6.7
-
getDataColumnConstraintsDao
public DataColumnConstraintsDao getDataColumnConstraintsDao()
Get a Data Column Constraints DAO- Returns:
- Data Column Constraints DAO
- Since:
- 4.0.0
-
getDataColumnConstraintsDao
public static DataColumnConstraintsDao getDataColumnConstraintsDao(GeoPackageCore geoPackage)
Get a Data Column Constraints DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- Data Column Constraints DAO
- Since:
- 4.0.0
-
getDataColumnConstraintsDao
public static DataColumnConstraintsDao getDataColumnConstraintsDao(GeoPackageCoreConnection db)
Get a Data Column Constraints DAO- Parameters:
db
- database connection- Returns:
- Data Column Constraints DAO
- Since:
- 4.0.0
-
createDataColumnConstraintsTable
public boolean createDataColumnConstraintsTable()
Create the Data Column Constraints table if it does not already exist- Returns:
- true if created
- Since:
- 4.0.0
-
createDataColumnConstraintsRecord
public Extensions createDataColumnConstraintsRecord()
Create the Data Column Constraints extension record if it does not already exist- Returns:
- extension
- Since:
- 6.6.7
-
-