Lines Matching +defs:env +defs:close
43 private Environment env;
67 env = new Environment(new File(homeDirectory), envConfig);
79 Database catalogDb = env.openDatabase(null, CLASS_CATALOG, null,
91 partDb = env.openDatabase(null, PART_STORE, null, dbConfig);
93 supplierDb = env.openDatabase(null, SUPPLIER_STORE, null, dbConfig);
95 shipmentDb = env.openDatabase(null, SHIPMENT_STORE, null, dbConfig);
115 supplierByCityDb = env.openSecondaryDatabase(null, SUPPLIER_CITY_INDEX,
123 shipmentByPartDb = env.openSecondaryDatabase(null, SHIPMENT_PART_INDEX,
131 shipmentBySupplierDb = env.openSecondaryDatabase(null,
150 return env;
212 public void close()
216 supplierByCityDb.close();
217 shipmentByPartDb.close();
218 shipmentBySupplierDb.close();
219 partDb.close();
220 supplierDb.close();
221 shipmentDb.close();
222 // And don't forget to close the catalog and the environment.
223 javaCatalog.close();
224 env.close();