public class TxnTagSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_PARAM_PREFIX |
static java.lang.String |
TXN_TAG_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TxnTagListener listener)
Register an object that would like to receive notification
when transaction tags are added, removed or modified
|
java.util.Iterator |
getAllTags()
Return an interator over the set of TxnTags
|
static java.lang.String |
getIDStringForTags(TxnTag[] tags)
Get the tagset string that identifies the tags in the given array
|
int |
getNumTags()
Return the number of tags in the set
|
TxnTag[] |
getSortedTags()
Return a list of the tags in sorted order
|
TxnTag[] |
getTagsForIDString(java.lang.String tagStr)
Get the tags that identified in the given tagset string.
|
TxnTag[] |
getTagsForTxn(AbstractTxn txn)
Get the tags that are associated with the given transaction.
|
TxnTag[] |
getTagsForTxn(Txn txn)
Get the tags that are associated with the given transaction.
|
java.lang.String |
getTagStringForTxn(AbstractTxn txn)
Return a string representing all of the tags associated with the given transaction
|
TxnTag |
makeNewTag(java.lang.String tagName)
Construct a new TxnTag with the given name, and add it to the set.
|
void |
removeListener(TxnTagListener listener)
De-register an object that would no longer like to receive notification
when transaction tags are added, removed or modified
|
boolean |
removeTag(TxnTag tag)
Remove the given tag from the tag set if there are no transactions
referencing the tag.
|
static void |
setTagsForTxn(AbstractTxn txn,
TxnTag[] tags)
Associate the given set of tags with the given transaction
|
void |
sortTagArray(TxnTag[] tagArray) |
static boolean |
txnContainsTag(AbstractTxn txn,
TxnTag tag) |
static boolean |
txnContainsTag(Txn txn,
TxnTag tag)
Returns true iff the given tag has been assigned to the given transaction
|
static int |
txnTagCount(Txn txn)
Returns the number of tags in the given transaction
|
public static final java.lang.String TAG_PARAM_PREFIX
public static final java.lang.String TXN_TAG_KEY
public int getNumTags()
public void addListener(TxnTagListener listener)
public void removeListener(TxnTagListener listener)
public java.util.Iterator getAllTags()
public TxnTag[] getSortedTags()
public void sortTagArray(TxnTag[] tagArray)
public boolean removeTag(TxnTag tag)
public TxnTag makeNewTag(java.lang.String tagName)
public static final void setTagsForTxn(AbstractTxn txn, TxnTag[] tags)
public static final java.lang.String getIDStringForTags(TxnTag[] tags)
public static final boolean txnContainsTag(Txn txn, TxnTag tag)
public static int txnTagCount(Txn txn)
public static boolean txnContainsTag(AbstractTxn txn, TxnTag tag)
public final TxnTag[] getTagsForTxn(AbstractTxn txn)
public final TxnTag[] getTagsForTxn(Txn txn)
public final java.lang.String getTagStringForTxn(AbstractTxn txn)
public final TxnTag[] getTagsForIDString(java.lang.String tagStr)