1 8 9 package com.sleepycat.je; 10 11 15 public class OperationStatus { 16 20 public static final OperationStatus SUCCESS = 21 new OperationStatus("SUCCESS"); 22 23 27 public static final OperationStatus KEYEXIST = 28 new OperationStatus("KEYEXIST"); 29 30 34 public static final OperationStatus KEYEMPTY = 35 new OperationStatus("KEYEMPTY"); 36 37 41 public static final OperationStatus NOTFOUND = 42 new OperationStatus("NOTFOUND"); 43 44 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 } 55 | Popular Tags |