01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.tx;
06:
07: import com.tc.util.AbstractIdentifier;
08:
09: /**
10: * @author steve
11: */
12: public class TransactionID extends AbstractIdentifier {
13: public final static TransactionID NULL_ID = new TransactionID();
14:
15: public TransactionID(long id) {
16: super (id);
17: }
18:
19: private TransactionID() {
20: super ();
21: }
22:
23: public String getIdentifierType() {
24: return "TransactionID";
25: }
26:
27: public TransactionID next() {
28: return new TransactionID(toLong() + 1);
29: }
30: }
|