@groovy.transform.CompileStatic class TransactionCache extends java.lang.Object implements javax.transaction.Synchronization
This is a per-transaction cache that basically pretends to be the database for the scope of the transaction. Test your code well when using this as it doesn't support everything. See notes on limitations in the JavaDoc for ServiceCallSync.useTransactionCache()
Modifiers | Name | Description |
---|---|---|
protected ExecutionContextFactoryImpl |
ecfi |
|
protected static org.slf4j.Logger |
logger |
Constructor and description |
---|
TransactionCache
(ExecutionContextFactoryImpl ecfi, boolean readOnly) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addWriteInfo(java.util.Map<java.lang.String, java.lang.Object> key, EntityWriteInfo newEwi) |
|
void |
afterCompletion(int i) |
|
void |
beforeCompletion() |
|
WriteMode |
checkUpdateValue(EntityValueBase evb, FindAugmentInfo fai) |
|
boolean |
create(EntityValueBase evb) Returns true if create handled, false if not; if false caller should handle the operation |
|
boolean |
delete(EntityValueBase evb) |
|
void |
flushCache(boolean clearRead) |
|
java.util.LinkedHashMap<java.util.Map, EntityValueBase> |
getCreateByEntityMap(java.lang.String entityName) |
|
java.util.Map<EntityCondition, EntityListImpl> |
getEntityListCache(java.lang.String entityName) |
|
FindAugmentInfo |
getFindAugmentInfo(java.lang.String entityName, EntityCondition econd) |
|
boolean |
isKnownLocked(EntityValueBase evb) |
|
boolean |
isReadOnly() |
|
boolean |
isTxCreate(EntityValueBase evb) |
|
protected boolean |
isTxCreate(java.util.Map key) |
|
EntityListImpl |
listGet(EntityDefinition ed, EntityCondition whereCondition, java.util.List<java.lang.String> orderByExpanded) |
|
void |
listPut(EntityDefinition ed, EntityCondition whereCondition, EntityListImpl eli) |
|
static java.util.Map<java.lang.String, java.lang.Object> |
makeKey(EntityValueBase evb) |
|
static java.util.Map |
makeKeyFind(EntityFindBase efb) |
|
void |
makeReadOnly() |
|
void |
makeWriteThrough() |
|
EntityValueBase |
oneGet(EntityFindBase efb) |
|
void |
onePut(EntityValueBase evb, boolean forUpdate) |
|
boolean |
refresh(EntityValueBase evb) |
|
boolean |
update(EntityValueBase evb) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns true if create handled, false if not; if false caller should handle the operation