Class MetadataExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.metadata.MetadataExtension
-
public class MetadataExtension extends BaseExtension
Metadata 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 MetadataExtension(GeoPackageCore geoPackage)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createMetadataReferenceTable()
Create the Metadata Reference table if it does not already existboolean
createMetadataTable()
Create the Metadata table if it does not already existMetadataDao
getMetadataDao()
Get a Metadata DAOstatic MetadataDao
getMetadataDao(GeoPackageCoreConnection db)
Get a Metadata DAOstatic MetadataDao
getMetadataDao(GeoPackageCore geoPackage)
Get a Metadata DAOMetadataReferenceDao
getMetadataReferenceDao()
Get a Metadata Reference DAOstatic MetadataReferenceDao
getMetadataReferenceDao(GeoPackageCoreConnection db)
Get a Metadata Reference DAOstatic MetadataReferenceDao
getMetadataReferenceDao(GeoPackageCore geoPackage)
Get a Metadata Reference 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
-
MetadataExtension
public MetadataExtension(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
-
getMetadataDao
public MetadataDao getMetadataDao()
Get a Metadata DAO- Returns:
- Metadata DAO
- Since:
- 4.0.0
-
getMetadataDao
public static MetadataDao getMetadataDao(GeoPackageCore geoPackage)
Get a Metadata DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- Metadata DAO
- Since:
- 4.0.0
-
getMetadataDao
public static MetadataDao getMetadataDao(GeoPackageCoreConnection db)
Get a Metadata DAO- Parameters:
db
- database connection- Returns:
- Metadata DAO
- Since:
- 4.0.0
-
createMetadataTable
public boolean createMetadataTable()
Create the Metadata table if it does not already exist- Returns:
- true if created
- Since:
- 4.0.0
-
getMetadataReferenceDao
public MetadataReferenceDao getMetadataReferenceDao()
Get a Metadata Reference DAO- Returns:
- Metadata Reference DAO
- Since:
- 4.0.0
-
getMetadataReferenceDao
public static MetadataReferenceDao getMetadataReferenceDao(GeoPackageCore geoPackage)
Get a Metadata Reference DAO- Parameters:
geoPackage
- GeoPackage- Returns:
- Metadata Reference DAO
- Since:
- 4.0.0
-
getMetadataReferenceDao
public static MetadataReferenceDao getMetadataReferenceDao(GeoPackageCoreConnection db)
Get a Metadata Reference DAO- Parameters:
db
- database connection- Returns:
- Metadata Reference DAO
- Since:
- 4.0.0
-
createMetadataReferenceTable
public boolean createMetadataReferenceTable()
Create the Metadata Reference table if it does not already exist- Returns:
- true if created
- Since:
- 4.0.0
-
-