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 TypeMethodDescriptionvoid
Flush all caches of this persister.void
remove
(BandanaContext context) Remove the storage of data associated with this contextvoid
remove
(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.void
store
(BandanaContext context, String key, Object value) Store a context/key/value triplet.
-
Constructor Details
-
TransactionalBandanaPersister
-
-
Method Details
-
retrieve
Description copied from interface:BandanaPersister
Retrieve a value by its context/key tuple.- Specified by:
retrieve
in interfaceBandanaPersister
-
retrieve
Description copied from interface:BandanaPersister
Retrieve all the values belonging to the context. Don't look at parent contexts.- Specified by:
retrieve
in interfaceBandanaPersister
- Returns:
- a Map containing the keys and values.
-
retrieveKeys
Description copied from interface:BandanaPersister
Retrieve all the keys belonging to the context. Don't look at parent contexts.- Specified by:
retrieveKeys
in interfaceBandanaPersister
- Returns:
- an Iterable containing the keys.
-
store
Description copied from interface:BandanaPersister
Store a context/key/value triplet.- Specified by:
store
in interfaceBandanaPersister
-
flushCaches
@Transactional(readOnly=true) public void flushCaches()Description copied from interface:BandanaPersister
Flush all caches of this persister.- Specified by:
flushCaches
in interfaceBandanaPersister
-
remove
Description copied from interface:BandanaPersister
Remove the storage of data associated with this context- Specified by:
remove
in interfaceBandanaPersister
-
remove
Description copied from interface:BandanaPersister
Remove the storage of data associated with this context, under the key- Specified by:
remove
in interfaceBandanaPersister
-