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 class
GeoPkgMetadataExtension.Factory
-
Nested classes/interfaces inherited from class GeoPkgExtension
GeoPkgExtension.Association, GeoPkgExtension.Scope
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class GeoPkgExtension
definition, geoPackage, name, scope
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GeoPkgMetadataExtension(GeoPackage geoPackage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMetadata(GeoPkgMetadata metadata)
Adds a metadata entry in the GeoPacakgevoid
addReference(GeoPkgMetadataReference reference)
Adds a metadata reference in the packageGeoPkgMetadata
getMetadata(Long id)
Returns aGeoPkgMetadata
with the given identifierList<GeoPkgMetadata>
getMetadatas()
Lists all metadata entries present in the GeoPackageList<GeoPkgMetadataReference>
getReferences(GeoPkgMetadata metadata)
void
removeMetadata(GeoPkgMetadata metadata)
Deletes a metadata entry from the GeoPackagevoid
removeReference(GeoPkgMetadataReference reference)
Removes the given metadata reference from the packagevoid
updateMetadata(GeoPkgMetadata metadata)
Updates metadata entry in the GeoPackagevoid
updateReference(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 aGeoPkgMetadata
with 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
-
-