KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: TxnAbort.java,v 1.19 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 TxnAbort extends TxnEnd {
17     public TxnAbort(long id, long lastLsn) {
18         super(id, lastLsn);
19     }
20     
21     /**
22      * For constructing from the log.
23      */

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

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

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