public class ContentsIdExtension extends BaseExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_AUTHOR
Extension author
|
static String |
EXTENSION_DEFINITION
Extension definition URL
|
static String |
EXTENSION_NAME
Extension, with author and name
|
static String |
EXTENSION_NAME_NO_AUTHOR
Extension name without the author
|
extensionsDao, geoPackage| Constructor and Description |
|---|
ContentsIdExtension(GeoPackageCore geoPackage)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Get the count of contents ids
|
ContentsId |
create(Contents contents)
Create a contents id
|
ContentsId |
create(String tableName)
Create a contents id
|
long |
createId(Contents contents)
Create a contents id
|
long |
createId(String tableName)
Create a contents id
|
int |
createIds()
Create contents ids for contents currently without
|
int |
createIds(ContentsDataType type)
Create contents ids for contents of the data type and currently without
|
int |
createIds(String type)
Create contents ids for contents of the data type and currently without
|
boolean |
delete(Contents contents)
Delete the contents id for the contents
|
boolean |
delete(String tableName)
Delete the contents id for the table
|
int |
deleteIds()
Delete all contents ids
|
int |
deleteIds(ContentsDataType type)
Delete contents ids for contents of the data type
|
int |
deleteIds(String type)
Delete contents ids for contents of the data type
|
ContentsId |
get(Contents contents)
Get the contents id object
|
ContentsId |
get(String tableName)
Get the contents id object
|
ContentsIdDao |
getDao()
Get the contents id DAO
|
Extensions |
getExtension()
Get the extension
|
Long |
getId(Contents contents)
Get the contents id
|
Long |
getId(String tableName)
Get the contents id
|
List<ContentsId> |
getIds()
Get all contents ids
|
List<ContentsId> |
getIds(ContentsDataType type)
Get by contents data type
|
List<ContentsId> |
getIds(String type)
Get by contents data type
|
List<String> |
getMissing()
Get contents without contents ids
|
List<String> |
getMissing(ContentsDataType type)
Get contents by data type without contents ids
|
List<String> |
getMissing(String type)
Get contents by data type without contents ids
|
ContentsId |
getOrCreate(Contents contents)
Get or create a contents id
|
ContentsId |
getOrCreate(String tableName)
Get or create a contents id
|
Extensions |
getOrCreateExtension()
Get or create if needed the extension
|
long |
getOrCreateId(Contents contents)
Get or create a contents id
|
long |
getOrCreateId(String tableName)
Get or create a contents id
|
boolean |
has()
Determine if the GeoPackage has the extension
|
void |
removeExtension()
Remove all trace of the extension
|
get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, haspublic static final String EXTENSION_AUTHOR
public static final String EXTENSION_NAME_NO_AUTHOR
public static final String EXTENSION_NAME
public static final String EXTENSION_DEFINITION
public ContentsIdExtension(GeoPackageCore geoPackage)
geoPackage - GeoPackagepublic ContentsIdDao getDao()
public boolean has()
public ContentsId get(Contents contents)
contents - contentspublic ContentsId get(String tableName)
tableName - table namepublic Long getId(Contents contents)
contents - contentspublic Long getId(String tableName)
tableName - table namepublic ContentsId create(Contents contents)
contents - contentspublic ContentsId create(String tableName)
tableName - table namepublic long createId(Contents contents)
contents - contentspublic long createId(String tableName)
tableName - table namepublic ContentsId getOrCreate(Contents contents)
contents - contentspublic ContentsId getOrCreate(String tableName)
tableName - table namepublic long getOrCreateId(Contents contents)
contents - contentspublic long getOrCreateId(String tableName)
tableName - table namepublic boolean delete(Contents contents)
contents - contentspublic boolean delete(String tableName)
tableName - table namepublic int createIds()
public int createIds(ContentsDataType type)
type - contents data typepublic int createIds(String type)
type - contents data typepublic int deleteIds()
public int deleteIds(ContentsDataType type)
type - contents data typepublic int deleteIds(String type)
type - contents data typepublic List<ContentsId> getIds()
public long count()
public List<ContentsId> getIds(ContentsDataType type)
type - contents data typepublic List<ContentsId> getIds(String type)
type - contents data typepublic List<String> getMissing()
public List<String> getMissing(ContentsDataType type)
type - contents data typepublic List<String> getMissing(String type)
type - contents data typepublic Extensions getOrCreateExtension()
public Extensions getExtension()
public void removeExtension()
Copyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.