1 package org.odmg; 2 3 4 5 40 41 42 43 public interface Database 44 45 { 46 47 52 53 public static final int NOT_OPEN = 0; 54 55 56 57 62 63 public static final int OPEN_READ_ONLY = 1; 64 65 66 67 72 73 public static final int OPEN_READ_WRITE = 2; 74 75 76 77 82 83 public static final int OPEN_EXCLUSIVE = 3; 84 85 86 87 112 113 public void open(String name, int accessMode) throws ODMGException; 114 115 116 117 132 133 public void close() throws ODMGException; 134 135 136 137 156 157 public void bind(Object object, String name) throws ObjectNameNotUniqueException; 158 159 160 161 174 175 public Object lookup(String name) throws ObjectNameNotFoundException; 176 177 178 179 188 189 public void unbind(String name) throws ObjectNameNotFoundException; 190 191 192 193 216 217 public void makePersistent(Object object); 218 219 220 221 242 243 public void deletePersistent(Object object); 244 245 } 246 247 | Popular Tags |