TGeoPackage - GeoPackage typeTRow - row typeTResult - result typeTDao - DAO typepublic abstract class PropertiesCoreExtension<TGeoPackage extends GeoPackageCore,TRow extends UserCoreRow<?,?>,TResult extends UserCoreResult<?,?,TRow>,TDao extends UserCoreDao<?,?,TRow,TResult>> extends BaseExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_PROPERTY
Property column
|
static String |
COLUMN_VALUE
Value column
|
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
|
static String |
TABLE_NAME
Table name
|
extensionsDao, geoPackage| Modifier | Constructor and Description |
|---|---|
protected |
PropertiesCoreExtension(TGeoPackage geoPackage)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addValue(String property,
String value)
Add a property value, creating the extension if needed
|
int |
deleteAll()
Delete all properties and values
|
int |
deleteProperty(String property)
Delete the property and all the property values
|
int |
deleteValue(String property,
String value)
Delete the property value
|
protected abstract TDao |
getDao()
Get the table Data Access Object
|
TGeoPackage |
getGeoPackage()
Get the GeoPackage
|
Extensions |
getOrCreate()
Get or create the extension
|
List<String> |
getProperties()
Get the properties
|
String |
getValue(String property)
Get the first value for the property
|
List<String> |
getValues(String property)
Get the values for the property
|
boolean |
has()
Determine if the GeoPackage has the extension
|
boolean |
hasProperty(String property)
Check if the property exists, same call as
hasValues(String) |
boolean |
hasSingleValue(String property)
Check if the property has a single value
|
boolean |
hasValue(String property,
String value)
Check if the property has the value
|
boolean |
hasValues(String property)
Check if the property has any values
|
protected abstract TRow |
newRow()
Get a new row
|
int |
numProperties()
Get the number of properties
|
int |
numValues()
Get the number of total values combined for all properties
|
int |
numValues(String property)
Get the number of values for the property
|
void |
removeExtension()
Remove the extension
|
get, getExtensions, getExtensions, getExtensionsDao, 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 static final String TABLE_NAME
public static final String COLUMN_PROPERTY
public static final String COLUMN_VALUE
protected PropertiesCoreExtension(TGeoPackage geoPackage)
geoPackage - GeoPackagepublic TGeoPackage getGeoPackage()
getGeoPackage in class BaseExtensionpublic Extensions getOrCreate()
public boolean has()
protected abstract TDao getDao()
protected abstract TRow newRow()
public int numProperties()
public boolean hasProperty(String property)
hasValues(String)property - property namepublic int numValues()
public int numValues(String property)
property - property namepublic boolean hasSingleValue(String property)
property - property namepublic boolean hasValues(String property)
property - property namepublic String getValue(String property)
property - property namepublic List<String> getValues(String property)
property - property namepublic boolean hasValue(String property, String value)
property - property namevalue - property valuepublic boolean addValue(String property, String value)
property - property namevalue - valuepublic int deleteProperty(String property)
property - property namepublic int deleteValue(String property, String value)
property - property namevalue - property valuepublic int deleteAll()
public void removeExtension()
Copyright © 2020 National Geospatial-Intelligence Agency. All rights reserved.