|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.transaction.TransactionalResourceHelper
public abstract class TransactionalResourceHelper
Helper class that will look up or create transactional resources. This shortcuts some of the "if not existing, then create" code.
Constructor Summary | |
---|---|
TransactionalResourceHelper()
|
Method Summary | |
---|---|
static java.util.List |
getList(java.lang.Object resourceKey)
Support method to retrieve or create and bind a ArrayList to the current transaction. |
static java.util.Map |
getMap(java.lang.Object resourceKey)
Support method to retrieve or create and bind a HashMap to the current transaction. |
static java.util.Set |
getSet(java.lang.Object resourceKey)
Support method to retrieve or create and bind a HashSet to the current transaction. |
static java.util.TreeSet |
getTreeSet(java.lang.Object resourceKey)
Support method to retrieve or create and bind a TreeSet to the current transaction. |
static void |
resetBoolean(java.lang.Object resourceKey)
Support method to reset (make false) a boolean value in the current transaction. |
static boolean |
setBoolean(java.lang.Object resourceKey)
Support method to set a boolean (true) value in the current transaction. |
static boolean |
testBoolean(java.lang.Object resourceKey)
Is there a boolean value in the current transaction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalResourceHelper()
Method Detail |
---|
public static final java.util.Map getMap(java.lang.Object resourceKey)
resourceKey
- the key under which the resource will be stored
public static final java.util.Set getSet(java.lang.Object resourceKey)
resourceKey
- the key under which the resource will be stored
public static final java.util.TreeSet getTreeSet(java.lang.Object resourceKey)
resourceKey
- the key under which the resource will be stored
public static final java.util.List getList(java.lang.Object resourceKey)
resourceKey
- the key under which the resource will be stored
public static final boolean setBoolean(java.lang.Object resourceKey)
resourceKey
- the key under which the resource will be stored
public static final void resetBoolean(java.lang.Object resourceKey)
resourceKey
- the key under which the resource is stored.public static final boolean testBoolean(java.lang.Object resourceKey)
resourceKey
- the key under which the resource will be stored
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |