|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.metadata.iso.persistence.ISOMetadataStore
public class ISOMetadataStore
MetadataStore implementation for accessing ISO 19115 records stored in spatial SQL databases (currently only
supports PostgreSQL / PostGIS).
| 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 | |
|---|---|
ISOMetadataStore(ISOMetadataStoreConfig config)
Creates a new ISOMetadataStore instance from the given JAXB configuration object. |
|
| 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. |
ConnectionManager.Type |
getDBType()
|
MetadataResultSet<ISORecord> |
getRecordById(List<String> idList,
QName[] recordTypeNames)
Looks up the given MetadataRecord identifiers and provides access to matching MetadataRecords. |
int |
getRecordCount(MetadataQuery query)
The mandatory "resultType" attribute in the GetRecords operation is set to "hits". |
MetadataResultSet<ISORecord> |
getRecords(MetadataQuery query)
Performs the given MetadataQuery and provides access to the MetadataRecords 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 ISOMetadataStore(ISOMetadataStoreConfig config)
throws ResourceInitException
ISOMetadataStore instance from the given JAXB configuration object.
config -
ResourceInitException| Method Detail |
|---|
public ConnectionManager.Type getDBType()
public void destroy()
ResourceResourceManager upon workspace shutdown.
destroy in interface Resourcepublic String getConnId()
getConnId in interface MetadataStore<ISORecord>null
public void init(DeegreeWorkspace workspace)
throws ResourceInitException
ResourceResourceManager upon workspace startup.
init in interface Resourceworkspace - the workspace the resource belongs to, may be null
ResourceInitException
public MetadataResultSet<ISORecord> 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<ISORecord>query - query that selects the records, must not be null
null
MetadataStoreException
public int getRecordCount(MetadataQuery query)
throws MetadataStoreException
getRecordCount in interface MetadataStore<ISORecord>query - query that selects the records, must not be null
MetadataStoreException
public MetadataResultSet<ISORecord> 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<ISORecord>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<ISORecord>null
MetadataStoreException - if the transactional access could not be acquired or is not available for this implementationpublic String getType()
getType in interface MetadataStore<ISORecord>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||