Lines Matching +defs:env +defs:close
44 private Environment env;
67 env = new Environment(new File(homeDirectory), envConfig);
79 Database catalogDb = env.openDatabase(null, CLASS_CATALOG, null,
86 partDb = env.openDatabase(null, PART_STORE, null, dbConfig);
88 supplierDb = env.openDatabase(null, SUPPLIER_STORE, null, dbConfig);
90 shipmentDb = env.openDatabase(null, SHIPMENT_STORE, null, dbConfig);
113 supplierByCityDb = env.openSecondaryDatabase(null, SUPPLIER_CITY_INDEX,
124 shipmentByPartDb = env.openSecondaryDatabase(null, SHIPMENT_PART_INDEX,
135 shipmentBySupplierDb = env.openSecondaryDatabase(null,
146 return env;
208 public void close()
212 supplierByCityDb.close();
213 shipmentByPartDb.close();
214 shipmentBySupplierDb.close();
215 partDb.close();
216 supplierDb.close();
217 shipmentDb.close();
218 // And don't forget to close the catalog and the environment.
219 javaCatalog.close();
220 env.close();