public abstract class WSBackedDataStoreBase<K,T extends Persistent> extends WSDataStoreBase<K,T> implements WebServiceBackedDataStore<K,T>
WebServiceBackedDataStore methods.authentication, keyClass, persistentClass, properties| Constructor and Description |
|---|
WSBackedDataStoreBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the DataStore.
|
void |
createSchema()
Creates the optional schema or table (or similar) in the datastore
to hold the objects.
|
void |
deleteSchema()
Deletes the underlying schema or table (or similar) in the datastore
that holds the objects.
|
Result<K,T> |
execute(Query<K,T> query)
Executes the given query and returns the results.
|
protected abstract Result<K,T> |
executeQuery(Query<K,T> query)
Executes a normal Query reading the whole data.
|
void |
flush()
Forces the write caches to be flushed.
|
void |
initialize(Class<K> keyClass,
Class<T> persistentClass,
Properties properties)
Initializes this DataStore.
|
void |
readFields(Object in)
Reads fields from an object
|
boolean |
schemaExists()
Returns whether the schema that holds the data exists in the datastore.
|
void |
write(Object out)
Writes an object
|
equals, getConf, getKeyClass, getPersistentClass, getSchemaName, getWSProvider, setConf, setKeyClass, setPersistentClass, setWsProvider, truncateSchemaclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProvider, setProviderdelete, deleteByQuery, get, get, getBeanFactory, getKeyClass, getPartitions, getPersistentClass, getSchemaName, newKey, newPersistent, newQuery, put, setBeanFactory, setKeyClass, setPersistentClass, truncateSchemapublic void initialize(Class<K> keyClass, Class<T> persistentClass, Properties properties)
DataStoreinitialize in interface DataStore<K,T extends Persistent>initialize in class WSDataStoreBase<K,T extends Persistent>keyClass - the class of the keyspersistentClass - the class of the persistent objectsproperties - extra metadatapublic Result<K,T> execute(Query<K,T> query)
DataStoreprotected abstract Result<K,T> executeQuery(Query<K,T> query) throws IOException
IOExceptionpublic void flush()
DataStoreflush in interface DataStore<K,T extends Persistent>public void createSchema()
DataStorecreateSchema in interface DataStore<K,T extends Persistent>public void deleteSchema()
DataStoredeleteSchema in interface DataStore<K,T extends Persistent>public boolean schemaExists()
DataStoreschemaExists in interface DataStore<K,T extends Persistent>public void write(Object out) throws Exception
WSDataStoreBasewrite in class WSDataStoreBase<K,T extends Persistent>Exceptionpublic void readFields(Object in) throws Exception
WSDataStoreBasereadFields in class WSDataStoreBase<K,T extends Persistent>Exceptionpublic void close()
DataStoreclose in interface DataStore<K,T extends Persistent>Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.