public Status status() { final LocalDB.Status dbStatus = localDB.status(); if (dbStatus == null) { return null; } switch (dbStatus) { case OPEN: return Status.OPEN; case CLOSED: return Status.CLOSED; case NEW: return Status.NEW; default: throw new IllegalStateException("unknown localDB state"); } }
public int size() throws PwmDataStoreException { return localDB.size(db); }
public boolean remove(String key) throws PwmDataStoreException { return localDB.remove(db, key); }
public boolean put(String key, String value) throws PwmDataStoreException { return localDB.put(db, key, value); }
public void putAll(Map<String, String> keyValueMap) throws PwmDataStoreException { localDB.putAll(db, keyValueMap); }
public ClosableIterator<String> iterator() throws PwmDataStoreException { return localDB.iterator(db); }
public String get(String key) throws PwmDataStoreException { return localDB.get(db, key); }
public boolean contains(String key) throws PwmDataStoreException { return localDB.contains(db, key); }
public void close() throws PwmDataStoreException { localDB.close(); }