Class TransactionalBandanaPersister
java.lang.Object
com.atlassian.confluence.impl.bandana.TransactionalBandanaPersister
- All Implemented Interfaces:
BandanaPersister
@Transactional
public class TransactionalBandanaPersister
extends Object
implements BandanaPersister
A
BandanaPersister implementation that adds Transactional annotations.- Since:
- 7.16
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFlush all caches of this persister.voidremove(BandanaContext context) Remove the storage of data associated with this contextvoidremove(BandanaContext context, String key) Remove the storage of data associated with this context, under the keyretrieve(BandanaContext context) Retrieve all the values belonging to the context.retrieve(BandanaContext context, String key) Retrieve a value by its context/key tuple.retrieveKeys(BandanaContext context) Retrieve all the keys belonging to the context.voidstore(BandanaContext context, String key, Object value) Store a context/key/value triplet.
-
Constructor Details
-
TransactionalBandanaPersister
-
-
Method Details
-
retrieve
Description copied from interface:BandanaPersisterRetrieve a value by its context/key tuple.- Specified by:
retrievein interfaceBandanaPersister
-
retrieve
Description copied from interface:BandanaPersisterRetrieve all the values belonging to the context. Don't look at parent contexts.- Specified by:
retrievein interfaceBandanaPersister- Returns:
- a Map containing the keys and values.
-
retrieveKeys
Description copied from interface:BandanaPersisterRetrieve all the keys belonging to the context. Don't look at parent contexts.- Specified by:
retrieveKeysin interfaceBandanaPersister- Returns:
- an Iterable containing the keys.
-
store
Description copied from interface:BandanaPersisterStore a context/key/value triplet.- Specified by:
storein interfaceBandanaPersister
-
flushCaches
@Transactional(readOnly=true) public void flushCaches()Description copied from interface:BandanaPersisterFlush all caches of this persister.- Specified by:
flushCachesin interfaceBandanaPersister
-
remove
Description copied from interface:BandanaPersisterRemove the storage of data associated with this context- Specified by:
removein interfaceBandanaPersister
-
remove
Description copied from interface:BandanaPersisterRemove the storage of data associated with this context, under the key- Specified by:
removein interfaceBandanaPersister
-