|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.metadata.persistence.ebrim.eo.EbrimEOMDStore
public class EbrimEOMDStore
MetadataStore
implementation for accessing EbrimEOMDRecord
s stored in spatial SQL databases
(currently only PostgreSQL / PostGIS is supported).
Field Summary | |
---|---|
static int |
DEFAULT_FETCH_SIZE
Used to limit the fetch size for SELECT statements that potentially return a lot of rows. |
Constructor Summary | |
---|---|
EbrimEOMDStore(String connId,
File queriesDir,
RegistryPackage profile,
Date lastModified,
long queryTimeout)
Creates a new EbrimEOMDStore instance. |
Method Summary | |
---|---|
MetadataStoreTransaction |
acquireTransaction()
Acquires transactional access to this MetadataStore . |
void |
destroy()
Usually called by the ResourceManager upon workspace shutdown. |
String |
getConnId()
Returns the JDBC connection id. |
MetadataResultSet<RegistryObject> |
getRecordById(List<String> idList,
QName[] recordTypeNames)
Looks up the given MetadataRecord identifiers and provides access to matching MetadataRecord s. |
int |
getRecordCount(MetadataQuery query)
Returns the number of MetadataRecord s that match the given MetadataQuery . |
MetadataResultSet<RegistryObject> |
getRecords(MetadataQuery query)
Performs the given MetadataQuery and provides access to the MetadataRecord s that match it. |
String |
getType()
|
void |
init(DeegreeWorkspace workspace)
Usually called by the ResourceManager upon workspace startup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_FETCH_SIZE
Constructor Detail |
---|
public EbrimEOMDStore(String connId, File queriesDir, RegistryPackage profile, Date lastModified, long queryTimeout) throws ResourceInitException
EbrimEOMDStore
instance.
connId
- id of the JDBC connection to use, must not be null
queriesDir
- directory containing individual AdhocQuery files (*.xml), can be null
profile
- RegistryPackage containing the profile informations, can be null
queryTimeout
- number of milliseconds to allow for queries, or 0
(unlimited)
ResourceInitException
Method Detail |
---|
public void init(DeegreeWorkspace workspace) throws ResourceInitException
Resource
ResourceManager
upon workspace startup.
init
in interface Resource
workspace
- the workspace the resource belongs to, may be null
ResourceInitException
public void destroy()
Resource
ResourceManager
upon workspace shutdown.
destroy
in interface Resource
public MetadataResultSet<RegistryObject> getRecords(MetadataQuery query) throws MetadataStoreException
MetadataStore
MetadataQuery
and provides access to the MetadataRecord
s that match it.
NOTE: A caller must ensure to call MetadataResultSet.close()
after working with the result set.
Otherwise, DB resources may be left open.
getRecords
in interface MetadataStore<RegistryObject>
query
- query that selects the records, must not be null
null
MetadataStoreException
public int getRecordCount(MetadataQuery query) throws MetadataStoreException
MetadataStore
MetadataRecord
s that match the given MetadataQuery
.
getRecordCount
in interface MetadataStore<RegistryObject>
query
- query that selects the records, must not be null
MetadataStoreException
public MetadataResultSet<RegistryObject> getRecordById(List<String> idList, QName[] recordTypeNames) throws MetadataStoreException
MetadataStore
MetadataRecord
identifiers and provides access to matching MetadataRecord
s.
NOTE: A caller must ensure to call MetadataResultSet.close()
after working with the result set.
Otherwise, DB resources may be left open.
getRecordById
in interface MetadataStore<RegistryObject>
idList
- list of the requested record identifiers, can be empty, but must not be null
recordTypeNames
- requested record type names, can be empty or null
MetadataStoreException
public MetadataStoreTransaction acquireTransaction() throws MetadataStoreException
MetadataStore
MetadataStore
.
acquireTransaction
in interface MetadataStore<RegistryObject>
null
MetadataStoreException
- if the transactional access could not be acquired or is not available for this implementationpublic String getConnId()
MetadataStore
getConnId
in interface MetadataStore<RegistryObject>
null
public String getType()
getType
in interface MetadataStore<RegistryObject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |