Package org.geotools.geopkg
Class GeoPkgExtension
Object
GeoPkgExtension
- Direct Known Subclasses:
- GeoPkgMetadataExtension,- GeoPkgSchemaExtension
Base class for GeoPackage extensions, containing the share-able functionality
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enumExtension scope
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Stringprotected final GeoPackageprotected final Stringprotected final GeoPkgExtension.Scope
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedGeoPkgExtension(String name, String definition, GeoPkgExtension.Scope scope, GeoPackage geoPackage) Creates a new geopackage extension.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the list ofGeoPkgExtension.Associationbetween this extension and table/columns in the databaseprotected ConnectionGrabs a connection from the GeoPackage data sourceThe definition, normally a URL pointing to a specprotected longHelper that returns the key generated by an insert, run with the provided prepared statementgetName()The extension name, as registered with OGCgetScope()The scope of the extensionbooleanReturns true if the extension has at least one registration in the geopkg_extensions table.protected boolean
- 
Field Details- 
name
- 
definition
- 
scope
- 
geoPackage
 
- 
- 
Constructor Details- 
GeoPkgExtensionprotected GeoPkgExtension(String name, String definition, GeoPkgExtension.Scope scope, GeoPackage geoPackage) Creates a new geopackage extension. By itself, it only allows to access the associated tables.- Parameters:
- name- The extension name, as registered with OGC
- definition- The definition, normally a URL pointing to a spec
- scope- The scope, read/write or write/only
- geoPackage- The GeoPackage providing access to the contents of the file
 
 
- 
- 
Method Details- 
getNameThe extension name, as registered with OGC
- 
getDefinitionThe definition, normally a URL pointing to a spec
- 
getScopeThe scope of the extension- Returns:
 
- 
isRegisteredReturns true if the extension has at least one registration in the geopkg_extensions table. If not registered, the GeoPackage does not really have this extension, but the class could be used to create one (this behavior is extension specific and delegated to sub-classes).- Throws:
- IOException
 
- 
isRegistered- Throws:
- SQLException
 
- 
getAssociationsReturns the list ofGeoPkgExtension.Associationbetween this extension and table/columns in the database- Throws:
- IOException
 
- 
getConnectionGrabs a connection from the GeoPackage data source- Throws:
- SQLException
 
- 
getGeneratedKeyHelper that returns the key generated by an insert, run with the provided prepared statement- Throws:
- SQLException
 
 
-