Package org.geotools.geopkg
Class GeoPkgMetadataExtension
- Object
-
- GeoPkgExtension
-
- GeoPkgMetadataExtension
-
public class GeoPkgMetadataExtension extends GeoPkgExtension
Supports the GeoPackage metadata extension, defined as a "registered extension" in the GeoPackage standard at http://www.geopackage.org/spec121/#extension_metadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoPkgMetadataExtension.Factory-
Nested classes/interfaces inherited from class GeoPkgExtension
GeoPkgExtension.Association, GeoPkgExtension.Scope
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from class GeoPkgExtension
definition, geoPackage, name, scope
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGeoPkgMetadataExtension(GeoPackage geoPackage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetadata(GeoPkgMetadata metadata)Adds a metadata entry in the GeoPacakgevoidaddReference(GeoPkgMetadataReference reference)Adds a metadata reference in the packageGeoPkgMetadatagetMetadata(Long id)Returns aGeoPkgMetadatawith the given identifierList<GeoPkgMetadata>getMetadatas()Lists all metadata entries present in the GeoPackageList<GeoPkgMetadataReference>getReferences(GeoPkgMetadata metadata)voidremoveMetadata(GeoPkgMetadata metadata)Deletes a metadata entry from the GeoPackagevoidremoveReference(GeoPkgMetadataReference reference)Removes the given metadata reference from the packagevoidupdateMetadata(GeoPkgMetadata metadata)Updates metadata entry in the GeoPackagevoidupdateReference(GeoPkgMetadataReference reference)Updates a metadata reference in the pacakge-
Methods inherited from class GeoPkgExtension
getAssociations, getConnection, getDefinition, getGeneratedKey, getName, getScope, isRegistered, isRegistered
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GeoPkgMetadataExtension
protected GeoPkgMetadataExtension(GeoPackage geoPackage)
-
-
Method Detail
-
getMetadatas
public List<GeoPkgMetadata> getMetadatas() throws SQLException
Lists all metadata entries present in the GeoPackage- Throws:
SQLException
-
getMetadata
public GeoPkgMetadata getMetadata(Long id) throws SQLException
Returns aGeoPkgMetadatawith the given identifier- Throws:
SQLException
-
addMetadata
public void addMetadata(GeoPkgMetadata metadata) throws SQLException
Adds a metadata entry in the GeoPacakge- Throws:
SQLException
-
updateMetadata
public void updateMetadata(GeoPkgMetadata metadata) throws SQLException
Updates metadata entry in the GeoPackage- Throws:
SQLException
-
removeMetadata
public void removeMetadata(GeoPkgMetadata metadata) throws SQLException
Deletes a metadata entry from the GeoPackage- Throws:
SQLException
-
getReferences
public List<GeoPkgMetadataReference> getReferences(GeoPkgMetadata metadata) throws SQLException
- Throws:
SQLException
-
addReference
public void addReference(GeoPkgMetadataReference reference) throws SQLException
Adds a metadata reference in the package- Parameters:
reference-- Throws:
SQLException
-
updateReference
public void updateReference(GeoPkgMetadataReference reference) throws SQLException
Updates a metadata reference in the pacakge- Parameters:
reference-- Throws:
SQLException
-
removeReference
public void removeReference(GeoPkgMetadataReference reference) throws SQLException
Removes the given metadata reference from the package- Throws:
SQLException
-
-