KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > txn > TxnCommit


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: TxnCommit.java,v 1.21 2006/10/30 21:14:27 bostic Exp $
7  */

8
9 package com.sleepycat.je.txn;
10
11 import com.sleepycat.je.log.LogEntryType;
12
13 /**
14  * This class writes out a transaction commit or transaction end record.
15  */

16 public class TxnCommit extends TxnEnd {
17     public TxnCommit(long id, long lastLsn) {
18         super(id, lastLsn);
19     }
20     
21     /**
22      * For constructing from the log.
23      */

24     public TxnCommit() {
25     }
26
27     /*
28      * Log support
29      */

30
31     /**
32      * @see TxnEnd#getLogType
33      */

34     public LogEntryType getLogType() {
35         return LogEntryType.LOG_TXN_COMMIT;
36     }
37
38     protected String JavaDoc getTagName() {
39         return "TxnCommit";
40     }
41 }
42
Popular Tags