|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGranuleCatalogSource
GranuleCatalogStore
public class GranuleCatalogStore
A GranuleStore
implementation wrapping a GranuleCatalog
.
Field Summary |
---|
Fields inherited from class GranuleCatalogSource |
---|
catalog, hints, typeName |
Constructor Summary | |
---|---|
GranuleCatalogStore(GranuleCatalog catalog,
String typeName,
Hints hints)
|
Method Summary | |
---|---|
void |
addGranules(SimpleFeatureCollection granules)
Add all the granules from the specified collection to this GranuleStore . |
Transaction |
getTransaction()
Gets the Transaction that this GranuleStore is currently operating against. |
int |
removeGranules(Filter filter)
Removes granules selected by the given filter. |
void |
setTransaction(Transaction transaction)
Provide a transaction for commit/rollback control of a modifying operation on this GranuleStore . |
void |
updateGranules(String[] attributeNames,
Object[] attributeValues,
Filter filter)
Modifies the attributes with the supplied values in all granules selected by the given filter. |
Methods inherited from class GranuleCatalogSource |
---|
dispose, getBounds, getCount, getGranules, getSchema |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface GranuleSource |
---|
dispose, getBounds, getCount, getGranules, getSchema |
Constructor Detail |
---|
public GranuleCatalogStore(GranuleCatalog catalog, String typeName, Hints hints)
Method Detail |
---|
public void addGranules(SimpleFeatureCollection granules)
GranuleStore
GranuleStore
.
addGranules
in interface GranuleStore
granules
- the granules to addpublic int removeGranules(Filter filter)
GranuleStore
removeGranules
in interface GranuleStore
filter
- an OpenGIS filterpublic void updateGranules(String[] attributeNames, Object[] attributeValues, Filter filter)
GranuleStore
updateGranules
in interface GranuleStore
attributeNames
- the attributes to modifyattributeValues
- the new values for the attributesfilter
- an OpenGIS filterpublic Transaction getTransaction()
GranuleStore
Transaction
that this GranuleStore
is currently operating against.
Transaction t = GranuleStore.getTransaction();
try {
GranuleStore.addGranules (granules);
t.commit();
} catch( IOException erp ){
// something went wrong;
t.rollback();
}
getTransaction
in interface GranuleStore
public void setTransaction(Transaction transaction)
GranuleStore
GranuleStore
.
Transation t = new DefaultTransaction();
GranuleStore.setTransaction(t);
try {
GranuleStore.addGranules (granules);
t.commit();
} catch ( IOException ex ) {
// something went wrong;
t.rollback();
} finally {
t.close();
}
setTransaction
in interface GranuleStore
transaction
- the transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |