01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: OperationStatus.java,v 1.10.2.2 2008/01/07 15:14:08 cwl Exp $
07: */
08:
09: package com.sleepycat.je;
10:
11: /**
12: * Javadoc for this public class is generated
13: * via the doc templates in the doc_src directory.
14: */
15: public class OperationStatus {
16: /**
17: * Javadoc for this public instance is generated via
18: * the doc templates in the doc_src directory.
19: */
20: public static final OperationStatus SUCCESS = new OperationStatus(
21: "SUCCESS");
22:
23: /**
24: * Javadoc for this public instance is generated via
25: * the doc templates in the doc_src directory.
26: */
27: public static final OperationStatus KEYEXIST = new OperationStatus(
28: "KEYEXIST");
29:
30: /**
31: * Javadoc for this public instance is generated via
32: * the doc templates in the doc_src directory.
33: */
34: public static final OperationStatus KEYEMPTY = new OperationStatus(
35: "KEYEMPTY");
36:
37: /**
38: * Javadoc for this public instance is generated via
39: * the doc templates in the doc_src directory.
40: */
41: public static final OperationStatus NOTFOUND = new OperationStatus(
42: "NOTFOUND");
43:
44: /* For toString */
45: private String statusName;
46:
47: private OperationStatus(String statusName) {
48: this .statusName = statusName;
49: }
50:
51: public String toString() {
52: return "OperationStatus." + statusName;
53: }
54: }
|