public class GeoPkgExtension extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoPkgExtension.Association |
static class |
GeoPkgExtension.Scope
Extension scope
|
Modifier and Type | Field and Description |
---|---|
protected String |
definition |
protected GeoPackage |
geoPackage |
protected String |
name |
protected GeoPkgExtension.Scope |
scope |
Modifier | Constructor and Description |
---|---|
protected |
GeoPkgExtension(String name,
String definition,
GeoPkgExtension.Scope scope,
GeoPackage geoPackage)
Creates a new geopackage extension.
|
Modifier and Type | Method and Description |
---|---|
List<GeoPkgExtension.Association> |
getAssociations()
Returns the list of
GeoPkgExtension.Association between this extension and table/columns in the
database |
protected Connection |
getConnection()
Grabs a connection from the GeoPackage data source
|
String |
getDefinition()
The definition, normally a URL pointing to a spec
|
protected long |
getGeneratedKey(PreparedStatement ps)
Helper that returns the key generated by an insert, run with the provided prepared statement
|
String |
getName()
The extension name, as registered with OGC
|
GeoPkgExtension.Scope |
getScope()
The scope of the extension
|
boolean |
isRegistered()
Returns true if the extension has at least one registration in the geopkg_extensions table.
|
protected boolean |
isRegistered(Connection cx) |
protected final String name
protected final String definition
protected final GeoPkgExtension.Scope scope
protected final GeoPackage geoPackage
protected GeoPkgExtension(String name, String definition, GeoPkgExtension.Scope scope, GeoPackage geoPackage)
name
- The extension name, as registered with OGCdefinition
- The definition, normally a URL pointing to a specscope
- The scope, read/write or write/onlygeoPackage
- The GeoPackage providing access to the contents of the filepublic String getName()
public String getDefinition()
public GeoPkgExtension.Scope getScope()
public boolean isRegistered() throws IOException
IOException
protected boolean isRegistered(Connection cx) throws SQLException
SQLException
public List<GeoPkgExtension.Association> getAssociations() throws IOException
GeoPkgExtension.Association
between this extension and table/columns in the
databaseIOException
protected Connection getConnection() throws SQLException
SQLException
protected long getGeneratedKey(PreparedStatement ps) throws SQLException
SQLException
Copyright © 1996–2022 Geotools. All rights reserved.