|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.feature.persistence.postgis.PostGISFeatureStore
public class PostGISFeatureStore
FeatureStore
implementation that uses a PostGIS/PostgreSQL database as backend.
FeatureStore
Method Summary | |
---|---|
FeatureStoreTransaction |
acquireTransaction()
Acquires transactional access to the feature store. |
void |
destroy()
Called by the container to indicate that this FeatureStore instance is being taken out of service. |
java.lang.String |
getConnId()
Returns the JDBC connection id. |
java.lang.String[] |
getDDL()
Returns the SQL statements for creating the database tables. |
Envelope |
getEnvelope(javax.xml.namespace.QName ftName)
Returns the envelope for all stored features of the given type. |
LockManager |
getLockManager()
Returns the associated LockManager . |
GMLObject |
getObjectById(java.lang.String id)
Retrieves the stored object with a certain id. |
MappedApplicationSchema |
getSchema()
Returns the application schema that this FeatureStore serves. |
void |
init()
Called by the container to indicate that this FeatureStore instance is being placed into service. |
boolean |
isAvailable()
Returns whether the store is currently able to perform operations. |
FeatureResultSet |
query(Query query)
Performs the given query and returns the matching features as a FeatureResultSet . |
FeatureResultSet |
query(Query[] queries)
Performs the given queries and returns the matching features as a FeatureResultSet . |
int |
queryHits(Query query)
Returns the number of features that are matched by the given query. |
int |
queryHits(Query[] queries)
Returns the number of features that are matched by the given queries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getConnId()
SQLFeatureStore
getConnId
in interface SQLFeatureStore
null
public FeatureStoreTransaction acquireTransaction() throws FeatureStoreException
FeatureStore
acquireTransaction
in interface FeatureStore
null
FeatureStoreException
- if the transactional access could not be acquired or is not implemented for this FeatureStore
public void destroy()
FeatureStore
FeatureStore
instance is being taken out of service.
destroy
in interface FeatureStore
public Envelope getEnvelope(javax.xml.namespace.QName ftName) throws FeatureStoreException
FeatureStore
getEnvelope
in interface FeatureStore
ftName
- name of the feature type, must not be null
and must be served by this store
null
if the feature type does not have an envelope
(no geometry properties or no instances)
FeatureStoreException
public LockManager getLockManager() throws FeatureStoreException
FeatureStore
LockManager
.
getLockManager
in interface FeatureStore
LockManager
instance, never null
FeatureStoreException
- if the FeatureStore
does not implement lockingpublic GMLObject getObjectById(java.lang.String id) throws FeatureStoreException
FeatureStore
getObjectById
in interface FeatureStore
id
- identifier of the object to be retrieved
Feature
or a Geometry
) or null
if no
object with the given id is known
FeatureStoreException
- if the query could not be performedpublic MappedApplicationSchema getSchema()
FeatureStore
FeatureStore
serves.
getSchema
in interface FeatureStore
null
public void init() throws FeatureStoreException
FeatureStore
FeatureStore
instance is being placed into service.
init
in interface FeatureStore
FeatureStoreException
- if the initialization failspublic boolean isAvailable()
FeatureStore
isAvailable
in interface FeatureStore
public FeatureResultSet query(Query query) throws FeatureStoreException, FilterEvaluationException
FeatureStore
FeatureResultSet
.
query
in interface FeatureStore
query
- query to be performed, must not be null
null
FeatureStoreException
- if the query could not be performed
FilterEvaluationException
- if the filter contained in the query could not be evaluatedpublic FeatureResultSet query(Query[] queries) throws FeatureStoreException, FilterEvaluationException
FeatureStore
FeatureResultSet
.
query
in interface FeatureStore
queries
- queries to be performed, must not be null
and contain at least one entry
null
FeatureStoreException
- if the query could not be performed
FilterEvaluationException
- if the filter contained in the query could not be evaluatedpublic int queryHits(Query query) throws FeatureStoreException, FilterEvaluationException
FeatureStore
queryHits
in interface FeatureStore
query
- query to be performed, must not be null
FeatureStoreException
- if the query could not be performed
FilterEvaluationException
- if the filter contained in the query could not be evaluatedpublic int queryHits(Query[] queries) throws FeatureStoreException, FilterEvaluationException
FeatureStore
queryHits
in interface FeatureStore
queries
- queries to be performed, must not be null
and contain at least one entry
FeatureStoreException
- if the query could not be performed
FilterEvaluationException
- if the filter contained in the query could not be evaluatedpublic java.lang.String[] getDDL()
SQLFeatureStore
getDDL
in interface SQLFeatureStore
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |