| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.metadata.persistence.ebrim.eo.EbrimEOMDStore
public class EbrimEOMDStore
MetadataStore implementation for accessing EbrimEOMDRecords stored in spatial SQL databases
 (currently only PostgreSQL / PostGIS is supported).
| Field Summary | |
|---|---|
| static int | DEFAULT_FETCH_SIZEUsed 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 EbrimEOMDStoreinstance. | |
| Method Summary | |
|---|---|
|  MetadataStoreTransaction | acquireTransaction()Acquires transactional access to this MetadataStore. | 
|  void | destroy()Usually called by the ResourceManagerupon workspace shutdown. | 
|  String | getConnId()Returns the JDBC connection id. | 
|  MetadataResultSet<RegistryObject> | getRecordById(List<String> idList,
              QName[] recordTypeNames)Looks up the given MetadataRecordidentifiers and provides access to matchingMetadataRecords. | 
|  int | getRecordCount(MetadataQuery query)Returns the number of MetadataRecords that match the givenMetadataQuery. | 
|  MetadataResultSet<RegistryObject> | getRecords(MetadataQuery query)Performs the given MetadataQueryand provides access to theMetadataRecords that match it. | 
|  String | getType() | 
|  void | init(DeegreeWorkspace workspace)Usually called by the ResourceManagerupon 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 nullqueriesDir - directory containing individual AdhocQuery files (*.xml), can be nullprofile - RegistryPackage containing the profile informations, can be nullqueryTimeout - number of milliseconds to allow for queries, or 0 (unlimited)
ResourceInitException| Method Detail | 
|---|
public void init(DeegreeWorkspace workspace)
          throws ResourceInitException
ResourceResourceManager upon workspace startup.
init in interface Resourceworkspace - the workspace the resource belongs to, may be null
ResourceInitExceptionpublic void destroy()
ResourceResourceManager upon workspace shutdown.
destroy in interface Resource
public MetadataResultSet<RegistryObject> getRecords(MetadataQuery query)
                                             throws MetadataStoreException
MetadataStoreMetadataQuery and provides access to the MetadataRecords 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
MetadataStoreMetadataRecords 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
MetadataStoreMetadataRecord identifiers and provides access to matching MetadataRecords.
 
 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 nullrecordTypeNames - requested record type names, can be empty or null
MetadataStoreException
public MetadataStoreTransaction acquireTransaction()
                                            throws MetadataStoreException
MetadataStoreMetadataStore.
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>nullpublic String getType()
getType in interface MetadataStore<RegistryObject>| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||