Skip navigation links

Package org.protempa.datastore

The package org.protempa.datastore contains classes for accessing external temporary and permanent stores.

See: Description

Package org.protempa.datastore Description

The package org.protempa.datastore contains classes for accessing external temporary and permanent stores. This is the only type-safe way of getting handles to the org.arp.javautil.DataStore interface, via the org.arp.javautil.datastore.DataStoreFactory class. If a new type of store is needed, an appropriate class should be created and should implement DataStoreCreator, which defines two methods for building stores.

getPermanentStore returns a named store that will not be removed once execution is finished. If a store with that name already exists, it may be returned. Otherwise, a new store will be created.

newCacheStore returns a temporary store that will be destroyed once execution is complete. Caches are not named, and the method is guaranteed to return a new store each time it is called, so it is the caller's responsibility to keep a reference to the store.

Skip navigation links

Copyright © 2012–2016 Emory University. All rights reserved.