KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > storagemanager > logging > SmTxEvent


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.storagemanager.logging;
13
14 /**
15  * Transaction related event.
16  */

17 public class SmTxEvent extends StorageManagerEvent {
18
19     private final boolean optimistic;
20
21     public SmTxEvent(int storageManagerId, int type,
22             boolean optimistic) {
23         super(storageManagerId, type);
24         this.optimistic = optimistic;
25     }
26
27     public SmTxEvent(int storageManagerId, int type) {
28         this(storageManagerId, type, false);
29     }
30
31     public String JavaDoc getDescription() {
32         return optimistic ? "optimistic" : "";
33     }
34
35 }
36
Popular Tags