private void run(String args[]) throws DatabaseException { // Parse the arguments list parseArgs(args); myDbEnv.setup( myDbEnvPath, // path to the environment home true); // is this environment read-only? // Open the data accessor. This is used to retrieve // persistent objects. da = new DataAccessor(myDbEnv.getEntityStore()); // If a item to locate is provided on the command line, // show just the inventory items using the provided name. // Otherwise, show everything in the inventory. if (locateItem != null) { showItem(); } else { showAllInventory(); } }