01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.storagemanager.logging;
12:
13: /**
14: * Transaction related event.
15: */
16: public class SmTxEvent extends StorageManagerEvent {
17:
18: private final boolean optimistic;
19:
20: public SmTxEvent(int storageManagerId, int type, boolean optimistic) {
21: super (storageManagerId, type);
22: this .optimistic = optimistic;
23: }
24:
25: public SmTxEvent(int storageManagerId, int type) {
26: this (storageManagerId, type, false);
27: }
28:
29: public String getDescription() {
30: return optimistic ? "optimistic" : "";
31: }
32:
33: }
|