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);
112 supplierByCityDb = env.openSecondaryDatabase(null, SUPPLIER_CITY_INDEX,
120 shipmentByPartDb = env.openSecondaryDatabase(null, SHIPMENT_PART_INDEX,
128 shipmentBySupplierDb = env.openSecondaryDatabase(null,
139 return env;
201 public void close()
205 supplierByCityDb.close();
206 shipmentByPartDb.close();
207 shipmentBySupplierDb.close();
208 partDb.close();
209 supplierDb.close();
210 shipmentDb.close();
211 // And don't forget to close the catalog and the environment.
212 javaCatalog.close();
213 env.close();