01: /*
02: * ====================================================================
03: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
04: *
05: * This software is licensed as described in the file COPYING, which
06: * you should have received as part of this distribution. The terms
07: * are also available at http://svnkit.com/license.html
08: * If newer versions of this license are posted there, you may use a
09: * newer version instead, at your option.
10: * ====================================================================
11: */
12: package org.tmatesoft.svn.core.internal.io.fs;
13:
14: /**
15: * @version 1.1.1
16: * @author TMate Software Ltd.
17: */
18: public class FSTransactionInfo {
19:
20: private long myBaseRevision;
21: private String myTxnId;
22: private FSID myRootID;
23: private FSID myBaseID;
24:
25: public FSTransactionInfo(long revision, String id) {
26: myBaseRevision = revision;
27: myTxnId = id;
28: }
29:
30: public FSTransactionInfo(FSID rootID, FSID baseID) {
31: myRootID = rootID;
32: myBaseID = baseID;
33: myTxnId = myRootID.getTxnID();
34: myBaseRevision = myBaseID.getRevision();
35: }
36:
37: public long getBaseRevision() {
38: return myBaseRevision;
39: }
40:
41: public void setBaseRevision(long baseRevision) {
42: myBaseRevision = baseRevision;
43: }
44:
45: public String getTxnId() {
46: return myTxnId;
47: }
48:
49: public void setTxnId(String txnId) {
50: myTxnId = txnId;
51: }
52:
53: public FSID getBaseID() {
54: return myBaseID;
55: }
56:
57: public FSID getRootID() {
58: return myRootID;
59: }
60: }
|