Package mil.nga.geopackage.db.metadata
Class GeoPackageMetadataDataSource
java.lang.Object
mil.nga.geopackage.db.metadata.GeoPackageMetadataDataSource
GeoPackage metadata Data Source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(GeoPackageMetadata metadata) Create a new GeoPackage metadataboolean
Delete the databaseboolean
delete
(GeoPackageMetadata metadata) Delete the GeoPackage metadataboolean
Determine if the metadata existsget
(long id) Get GeoPackage metadata by idGet GeoPackage metadata by namegetAll()
Get all GeoPackage metadataGet all external GeoPackage metadatagetExternalAtPath
(String path) Get external GeoPackage metadata by external pathgetMetadataWhereNameLike
(String like, String sortColumn) Get metadata where the name is likegetMetadataWhereNameNotLike
(String notLike, String sortColumn) Get metadata where the name is not likegetOrCreate
(String geoPackage) Get GeoPackage metadata or create it if it does not existboolean
isExternal
(String database) Determine if the GeoPackage is externalboolean
Rename the GeoPackage name to the new nameboolean
rename
(GeoPackageMetadata metadata, String newName) Rename the GeoPackage metadata to the new name
-
Constructor Details
-
GeoPackageMetadataDataSource
Constructor- Parameters:
db
- GeoPackage metadata db
-
-
Method Details
-
create
Create a new GeoPackage metadata- Parameters:
metadata
- GeoPackage metadata
-
delete
Delete the GeoPackage metadata- Parameters:
metadata
- GeoPackage metadata- Returns:
- deleted flag
-
delete
Delete the database- Parameters:
database
- database name- Returns:
- deleted flag
-
rename
Rename the GeoPackage metadata to the new name- Parameters:
metadata
- GeoPackage metadatanewName
- new name- Returns:
- renamed flag
-
rename
Rename the GeoPackage name to the new name- Parameters:
name
- GeoPackage namenewName
- new name- Returns:
- renamed flag
-
getAll
Get all GeoPackage metadata- Returns:
- all GeoPackage metadata
-
getAllExternal
Get all external GeoPackage metadata- Returns:
- external GeoPackage metadata
-
get
Get GeoPackage metadata by name- Parameters:
database
- database name- Returns:
- GeoPackage metadata
-
get
Get GeoPackage metadata by id- Parameters:
id
- id- Returns:
- GeoPackage metadata
-
getOrCreate
Get GeoPackage metadata or create it if it does not exist- Parameters:
geoPackage
- GeoPackage name- Returns:
- GeoPackage metadata
-
exists
Determine if the metadata exists- Parameters:
database
- database name- Returns:
- exists flag
-
isExternal
Determine if the GeoPackage is external- Parameters:
database
- database name- Returns:
- external flag
-
getExternalAtPath
Get external GeoPackage metadata by external path- Parameters:
path
- path- Returns:
- GeoPackage metadata
-
getMetadataWhereNameLike
Get metadata where the name is like- Parameters:
like
- like argumentsortColumn
- sort by column- Returns:
- metadata names
- Since:
- 1.2.7
-
getMetadataWhereNameNotLike
Get metadata where the name is not like- Parameters:
notLike
- not like argumentsortColumn
- sort by column- Returns:
- metadata names
- Since:
- 1.2.7
-