Package mil.nga.geopackage.db.metadata
Class TableMetadataDataSource
java.lang.Object
mil.nga.geopackage.db.metadata.TableMetadataDataSource
Table metadata Data Source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(TableMetadata metadata) Create a new table metadataint
delete
(long geoPackageId) Delete the databaseboolean
Delete the database table nameint
Delete the databaseboolean
Delete the database table nameboolean
delete
(TableMetadata metadata) Delete the table metadataGet a table metadataGet a table metadatalong
getGeoPackageId
(String geoPackage) Get a GeoPackage id from the namegetOrCreate
(String geoPackage, String tableName) Get a table metadata or create if it does not existboolean
updateLastIndexed
(long geoPackageId, String tableName, long lastIndexed) Update the last indexed timeboolean
updateLastIndexed
(String geoPackage, String tableName, long lastIndexed) Update the last indexed timeboolean
updateLastIndexed
(TableMetadata metadata, long lastIndexed) Update the last indexed time
-
Constructor Details
-
TableMetadataDataSource
Constructor- Parameters:
db
- GeoPackage metadata db
-
-
Method Details
-
create
Create a new table metadata- Parameters:
metadata
- table metadata
-
delete
Delete the table metadata- Parameters:
metadata
- table metadata- Returns:
- deleted flag
-
delete
Delete the database- Parameters:
geoPackage
- GeoPackage name- Returns:
- deleted count
-
delete
public int delete(long geoPackageId) Delete the database- Parameters:
geoPackageId
- GeoPackage id- Returns:
- deleted count
-
delete
Delete the database table name- Parameters:
geoPackage
- GeoPackage nametableName
- table name- Returns:
- deleted flag
-
delete
Delete the database table name- Parameters:
geoPackageId
- GeoPackage idtableName
- table name- Returns:
- deleted flag
-
updateLastIndexed
Update the last indexed time- Parameters:
metadata
- table metadatalastIndexed
- last indexed- Returns:
- updated flag
-
updateLastIndexed
Update the last indexed time- Parameters:
geoPackage
- GeoPackage nametableName
- table namelastIndexed
- last indexed- Returns:
- updated flag
-
updateLastIndexed
Update the last indexed time- Parameters:
geoPackageId
- GeoPackage idtableName
- table namelastIndexed
- last indexed- Returns:
- updated flag
-
get
Get a table metadata- Parameters:
geoPackage
- GeoPackage nametableName
- table name- Returns:
- table metadata
-
get
Get a table metadata- Parameters:
geoPackageId
- GeoPackage idtableName
- table name- Returns:
- table metadata
-
getOrCreate
Get a table metadata or create if it does not exist- Parameters:
geoPackage
- GeoPackage nametableName
- table name- Returns:
- table metadata
-
getGeoPackageId
Get a GeoPackage id from the name- Parameters:
geoPackage
- GeoPackage name- Returns:
- id
-