I
- The Row Key TypeT
- The TransportObject object type.public interface CfQueryOperations<I extends Serializable,T extends TransportObject<? super T,I>>
Modifier and Type | Method and Description |
---|---|
void |
prepareDelete(T id,
DataStoreContext context)
prepareDelete(T, com.hp.util.persistence.cassandra.DataStoreContext) implements the Delete
operation for every CF |
void |
prepareMutation(T transportable,
DataStoreContext context)
prepareMutation(T, com.hp.util.persistence.cassandra.DataStoreContext) mandates the implementation
of preparation of Write operation for every Column Family
implementing this interface. |
void |
prepareTransaction(T transportable,
DataStoreContext context) |
void |
prepareUpdate(T oldT,
T newT,
DataStoreContext context)
prepareMutation(T, com.hp.util.persistence.cassandra.DataStoreContext) mandates the implementation
of preparation of Write operation for every Column Family
implementing this interface. |
void prepareMutation(T transportable, DataStoreContext context) throws Exception
prepareMutation(T, com.hp.util.persistence.cassandra.DataStoreContext)
mandates the implementation
of preparation of Write operation for every Column Family
implementing this interface.transportable
- The input transportable object to work on.context
- The DataStoreContext The results of the operation will be
added to the Operation Batch in the EntityManager using
this contextException
- error occurredvoid prepareUpdate(T oldT, T newT, DataStoreContext context) throws Exception
prepareMutation(T, com.hp.util.persistence.cassandra.DataStoreContext)
mandates the implementation
of preparation of Write operation for every Column Family
implementing this interface.oldT
- The object as read from database.newT
- The object with latest values.context
- The DataStoreContext The results of the operation will be
added to the Operation Batch in the EntityManager using
this contextException
- error occurredvoid prepareDelete(T id, DataStoreContext context) throws Exception
prepareDelete(T, com.hp.util.persistence.cassandra.DataStoreContext)
implements the Delete
operation for every CFid
- The input to work on.context
- The DataStoreContext The results of the operation will be
added to the Operation Batch in the EntityManager using
this contextException
- error occurredvoid prepareTransaction(T transportable, DataStoreContext context) throws Exception
Exception
Copyright © 2015. All Rights Reserved.