public abstract class TransactionalResourceHelper
extends java.lang.Object
| Constructor and Description |
|---|
TransactionalResourceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decrementCount(java.lang.Object resourceKey,
boolean allowNegative)
Decrement a count value for a named key
|
static int |
getCount(java.lang.Object resourceKey)
Get the current count value for a named key
|
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 int |
incrementCount(java.lang.Object resourceKey)
Increment a count value for named key
|
static boolean |
isResourcePresent(java.lang.Object resourceKey)
Support method to determine if there is already a resource associated with the
given key.
|
static void |
resetCount(java.lang.Object resourceKey)
Reset the current count value for a named key.
|
public static final int getCount(java.lang.Object resourceKey)
resourceKey - the key to count againstpublic static final void resetCount(java.lang.Object resourceKey)
resourceKey - the key to count againstpublic static final int incrementCount(java.lang.Object resourceKey)
resourceKey - the key to count againstpublic static final int decrementCount(java.lang.Object resourceKey,
boolean allowNegative)
resourceKey - the key to count againstallowNegative - true to allow negative values otherwise zero will be the floorpublic static final boolean isResourcePresent(java.lang.Object resourceKey)
resourceKey - the key of the resource to checkpublic static final java.util.Map getMap(java.lang.Object resourceKey)
resourceKey - the key under which the resource will be storedpublic static final java.util.Set getSet(java.lang.Object resourceKey)
resourceKey - the key under which the resource will be storedpublic static final java.util.TreeSet getTreeSet(java.lang.Object resourceKey)
resourceKey - the key under which the resource will be storedpublic static final java.util.List getList(java.lang.Object resourceKey)
resourceKey - the key under which the resource will be storedCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.