Lines Matching +defs:env +defs:close
46 private Environment env;
69 env = new Environment(new File(homeDirectory), envConfig);
81 Database catalogDb = env.openDatabase(null, CLASS_CATALOG, null,
88 partDb = env.openDatabase(null, PART_STORE, null, dbConfig);
90 supplierDb = env.openDatabase(null, SUPPLIER_STORE, null, dbConfig);
92 shipmentDb = env.openDatabase(null, SHIPMENT_STORE, null, dbConfig);
113 supplierByCityDb = env.openSecondaryDatabase(null, SUPPLIER_CITY_INDEX,
122 shipmentByPartDb = env.openSecondaryDatabase(null, SHIPMENT_PART_INDEX,
131 shipmentBySupplierDb = env.openSecondaryDatabase(null,
142 return env;
204 public void close()
208 supplierByCityDb.close();
209 shipmentByPartDb.close();
210 shipmentBySupplierDb.close();
211 partDb.close();
212 supplierDb.close();
213 shipmentDb.close();
214 // And don't forget to close the catalog and the environment.
215 javaCatalog.close();
216 env.close();