KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > OperationStatus


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

8
9 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 =
21     new OperationStatus("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 =
28     new OperationStatus("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 =
35     new OperationStatus("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 =
42     new OperationStatus("NOTFOUND");
43
44     /* For toString */
45     private String JavaDoc statusName;
46
47     private OperationStatus(String JavaDoc statusName) {
48     this.statusName = statusName;
49     }
50
51     public String JavaDoc toString() {
52     return "OperationStatus." + statusName;
53     }
54 }
55
Popular Tags