public class SpatialReferenceSystemDao extends BaseDaoImpl<SpatialReferenceSystem,Long>
Dao.CreateOrUpdateStatus, Dao.DaoObserverconnectionSource, databaseType, dataClass, lastIterator, objectFactory, statementExecutor, tableConfig, tableInfo| Constructor and Description |
|---|
SpatialReferenceSystemDao(ConnectionSource connectionSource,
Class<SpatialReferenceSystem> dataClass)
Constructor, required by ORMLite
|
| Modifier and Type | Method and Description |
|---|---|
int |
create(SpatialReferenceSystem srs) |
SpatialReferenceSystem |
createIfNotExists(SpatialReferenceSystem data) |
Dao.CreateOrUpdateStatus |
createOrUpdate(SpatialReferenceSystem data) |
SpatialReferenceSystem |
createUndefinedCartesian()
Creates the required Undefined Cartesian Spatial Reference System (spec
Requirement 11)
|
SpatialReferenceSystem |
createUndefinedGeographic()
Creates the required Undefined Geographic Spatial Reference System (spec
Requirement 11)
|
SpatialReferenceSystem |
createWebMercator()
Creates the Web Mercator Spatial Reference System if it does not already
exist
|
SpatialReferenceSystem |
createWgs84()
Creates the required EPSG WGS84 Spatial Reference System (spec
Requirement 11)
|
SpatialReferenceSystem |
createWgs84Geographical3D()
Creates the required EPSG WGS84 Geographical 3D Spatial Reference System
|
int |
deleteByIdCascade(Long id)
Delete a Spatial Reference System by id, cascading
|
int |
deleteCascade(Collection<SpatialReferenceSystem> srsCollection)
Delete the collection of Spatial Reference Systems, cascading
|
int |
deleteCascade(PreparedQuery<SpatialReferenceSystem> preparedDelete)
Delete the Spatial Reference Systems matching the prepared query,
cascading
|
int |
deleteCascade(SpatialReferenceSystem srs)
Delete the Spatial Reference System, cascading
|
int |
deleteIdsCascade(Collection<Long> idCollection)
Delete the Spatial Reference Systems with the provided ids, cascading
|
String |
getDefinition_12_063(long srsId)
Query to get the definition 12 063 value if the extension exists
|
SpatialReferenceSystem |
getOrCreateCode(String organization,
long coordsysId)
Get or Create the Spatial Reference System for the provided organization
and id
|
SpatialReferenceSystem |
getOrCreateFromEpsg(long epsg)
Get or Create the Spatial Reference System for the provided epsg
|
boolean |
hasDefinition_12_063()
Determine if the SRS table contains the extension definition 12 063
column for CRS WKT
|
List<SpatialReferenceSystem> |
query(PreparedQuery<SpatialReferenceSystem> preparedQuery) |
List<SpatialReferenceSystem> |
queryForAll() |
List<SpatialReferenceSystem> |
queryForEq(String fieldName,
Object value) |
List<SpatialReferenceSystem> |
queryForFieldValues(Map<String,Object> fieldValues) |
List<SpatialReferenceSystem> |
queryForFieldValuesArgs(Map<String,Object> fieldValues) |
SpatialReferenceSystem |
queryForFirst(PreparedQuery<SpatialReferenceSystem> preparedQuery) |
SpatialReferenceSystem |
queryForId(Long id) |
List<SpatialReferenceSystem> |
queryForMatching(SpatialReferenceSystem matchObj) |
List<SpatialReferenceSystem> |
queryForMatchingArgs(SpatialReferenceSystem matchObj) |
SpatialReferenceSystem |
queryForOrganizationCoordsysId(String organization,
long organizationCoordsysId)
Query for the organization coordsys id
|
SpatialReferenceSystem |
queryForSameId(SpatialReferenceSystem data) |
void |
setCrsWktExtension(CrsWktExtension crsWktExtension)
Set the CRS WKT Extension
|
void |
setDefinition_12_063(Collection<SpatialReferenceSystem> srsList)
Query and set the definition 12 063 in the srs objects if the extension
exists
|
void |
setDefinition_12_063(SpatialReferenceSystem srs)
Query and set the definition 12 063 in the srs object if the extension
exists
|
int |
update(SpatialReferenceSystem data) |
void |
updateDefinition_12_063(long srsId,
String definition)
Update the definition 12 063 in the database if the extension exists
|
void |
updateDefinition_12_063(SpatialReferenceSystem srs)
Update the definition 12 063 in the database if the extension exists
|
assignEmptyForeignCollection, callBatchTasks, checkForInitialized, clearAllInternalObjectCaches, clearObjectCache, closeableIterator, closeLastIterator, commit, countOf, countOf, create, delete, delete, delete, deleteBuilder, deleteById, deleteIds, endThreadConnection, executeRaw, executeRawNoArgs, extractId, findForeignFieldType, getConnectionSource, getDataClass, getEmptyForeignCollection, getObjectCache, getObjectFactory, getRawRowMapper, getSelectStarRowMapper, getTableConfig, getTableInfo, getTableName, getWrappedIterable, getWrappedIterable, idExists, initialize, isAutoCommit, isTableExists, isUpdatable, iterator, iterator, iterator, iterator, mapSelectStarRow, notifyChanges, objectsEqual, objectToString, queryBuilder, queryRaw, queryRaw, queryRaw, queryRaw, queryRaw, queryRawValue, refresh, registerObserver, rollBack, setAutoCommit, setConnectionSource, setObjectCache, setObjectCache, setObjectFactory, setTableConfig, startThreadConnection, unregisterObserver, update, updateBuilder, updateId, updateRawclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SpatialReferenceSystemDao(ConnectionSource connectionSource, Class<SpatialReferenceSystem> dataClass) throws SQLException
connectionSource - dataClass - SQLExceptionpublic void setCrsWktExtension(CrsWktExtension crsWktExtension)
crsWktExtension - public boolean hasDefinition_12_063()
public SpatialReferenceSystem createWgs84() throws SQLException
SQLExceptionpublic SpatialReferenceSystem createUndefinedCartesian() throws SQLException
SQLExceptionpublic SpatialReferenceSystem createUndefinedGeographic() throws SQLException
SQLExceptionpublic SpatialReferenceSystem createWebMercator() throws SQLException
SQLExceptionpublic SpatialReferenceSystem createWgs84Geographical3D() throws SQLException
SQLExceptionpublic String getDefinition_12_063(long srsId)
srsId - srs idpublic void setDefinition_12_063(SpatialReferenceSystem srs)
srs - spatial reference systempublic void setDefinition_12_063(Collection<SpatialReferenceSystem> srsList)
srsList - srs listpublic void updateDefinition_12_063(long srsId,
String definition)
srsId - srs iddefinition - definitionpublic void updateDefinition_12_063(SpatialReferenceSystem srs)
srs - srspublic SpatialReferenceSystem queryForId(Long id) throws SQLException
queryForId in interface Dao<SpatialReferenceSystem,Long>queryForId in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic SpatialReferenceSystem queryForFirst(PreparedQuery<SpatialReferenceSystem> preparedQuery) throws SQLException
queryForFirst in interface Dao<SpatialReferenceSystem,Long>queryForFirst in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> queryForAll() throws SQLException
queryForAll in interface Dao<SpatialReferenceSystem,Long>queryForAll in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> queryForEq(String fieldName, Object value) throws SQLException
queryForEq in interface Dao<SpatialReferenceSystem,Long>queryForEq in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> query(PreparedQuery<SpatialReferenceSystem> preparedQuery) throws SQLException
query in interface Dao<SpatialReferenceSystem,Long>query in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> queryForMatching(SpatialReferenceSystem matchObj) throws SQLException
queryForMatching in interface Dao<SpatialReferenceSystem,Long>queryForMatching in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> queryForMatchingArgs(SpatialReferenceSystem matchObj) throws SQLException
queryForMatchingArgs in interface Dao<SpatialReferenceSystem,Long>queryForMatchingArgs in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> queryForFieldValues(Map<String,Object> fieldValues) throws SQLException
queryForFieldValues in interface Dao<SpatialReferenceSystem,Long>queryForFieldValues in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic List<SpatialReferenceSystem> queryForFieldValuesArgs(Map<String,Object> fieldValues) throws SQLException
queryForFieldValuesArgs in interface Dao<SpatialReferenceSystem,Long>queryForFieldValuesArgs in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic SpatialReferenceSystem queryForSameId(SpatialReferenceSystem data) throws SQLException
queryForSameId in interface Dao<SpatialReferenceSystem,Long>queryForSameId in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic int create(SpatialReferenceSystem srs) throws SQLException
create in interface Dao<SpatialReferenceSystem,Long>create in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic SpatialReferenceSystem createIfNotExists(SpatialReferenceSystem data) throws SQLException
createIfNotExists in interface Dao<SpatialReferenceSystem,Long>createIfNotExists in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic Dao.CreateOrUpdateStatus createOrUpdate(SpatialReferenceSystem data) throws SQLException
createOrUpdate in interface Dao<SpatialReferenceSystem,Long>createOrUpdate in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic int update(SpatialReferenceSystem data) throws SQLException
update in interface Dao<SpatialReferenceSystem,Long>update in class BaseDaoImpl<SpatialReferenceSystem,Long>SQLExceptionpublic SpatialReferenceSystem getOrCreateFromEpsg(long epsg) throws SQLException
epsg - epsgSQLExceptionpublic SpatialReferenceSystem getOrCreateCode(String organization, long coordsysId) throws SQLException
organization - organizationcoordsysId - coordsys idSQLExceptionpublic SpatialReferenceSystem queryForOrganizationCoordsysId(String organization, long organizationCoordsysId) throws SQLException
organization - organizationorganizationCoordsysId - organization coordsys idSQLExceptionpublic int deleteCascade(SpatialReferenceSystem srs) throws SQLException
srs - spatial reference systemSQLExceptionpublic int deleteCascade(Collection<SpatialReferenceSystem> srsCollection) throws SQLException
srsCollection - spatial reference system collectionSQLExceptionpublic int deleteCascade(PreparedQuery<SpatialReferenceSystem> preparedDelete) throws SQLException
preparedDelete - prepared delete querySQLExceptionpublic int deleteByIdCascade(Long id) throws SQLException
id - idSQLExceptionpublic int deleteIdsCascade(Collection<Long> idCollection) throws SQLException
idCollection - id collectionSQLExceptionCopyright © 2017 National Geospatial-Intelligence Agency. All rights reserved.