throw new StoreNotFoundException("Store " + storeName + " not found");
EntityResult<V> returnResult(OpResult opResult) { V value = returnValue(opResult); return (value != null) ? new EntityResult<>(value, opResult.jeResult) : null; } /* <!-- end JE only --> */
public EntityCursor<E> entities(Transaction txn, PK fromKey, boolean fromInclusive, PK toKey, boolean toInclusive, CursorConfig config) throws DatabaseException { return cursor(txn, fromKey, fromInclusive, toKey, toInclusive, entityAdapter, config); }
public EntityCursor<K> keys(Transaction txn, K fromKey, boolean fromInclusive, K toKey, boolean toInclusive, CursorConfig config) throws DatabaseException { return cursor(txn, fromKey, fromInclusive, toKey, toInclusive, keyAdapter, config); }
@Override public V prevDup(LockMode lockMode) { checkInitialized(); return null; }
public boolean delete(Transaction txn, K key) throws DatabaseException { /* <!-- begin JE only --> */ if (DbCompat.IS_JE) { return delete(txn, key, null) != null; } /* <!-- end JE only --> */ DatabaseEntry keyEntry = new DatabaseEntry(); keyBinding.objectToEntry(key, keyEntry); OperationStatus status = db.delete(txn, keyEntry); return (status == OperationStatus.SUCCESS); }
/** * For internal use only. * @hidden */ @Override public OperationFailureException wrapSelf(String msg) { return new StoreExistsException(msg, this); }
@Override public V nextNoDup(LockMode lockMode) throws DatabaseException { return next(lockMode); }
/** * For internal use only. * @hidden */ @Override public OperationFailureException wrapSelf(String msg) { return new IndexNotAvailableException(msg, this); }
public V nextDup() throws DatabaseException { return nextDup(null); }
public V nextNoDup() throws DatabaseException { return nextNoDup(null); }
public long count(long memoryLimit) throws DatabaseException { return count(); }
KeysIndex(Database db, Class<SK> keyClass, EntryBinding keyBinding, Class<PK> pkeyClass, EntryBinding pkeyBinding) throws DatabaseException { super(db, keyClass, keyBinding, new DataValueAdapter<PK>(pkeyClass, pkeyBinding)); this.pkeyBinding = pkeyBinding; }
throw new StoreNotFoundException("Store " + storeName + " not found");
public EntityCursor<E> entities(Transaction txn, K fromKey, boolean fromInclusive, K toKey, boolean toInclusive, CursorConfig config) throws DatabaseException { return cursor(txn, fromKey, fromInclusive, toKey, toInclusive, entityAdapter, config); }
public EntityCursor<E> entities(Transaction txn, CursorConfig config) throws DatabaseException { return cursor(txn, null, entityAdapter, config); }
@Override public V nextDup(LockMode lockMode) { checkInitialized(); return null; }
/** * For internal use only. * <!-- begin JE only --> * @hidden * <!-- end JE only --> */ @Override public OperationFailureException wrapSelf(String msg) { return new StoreNotFoundException(msg, this); }
public EntityCursor<E> entities(Transaction txn, CursorConfig config) throws DatabaseException { return cursor(txn, emptyRange, entityAdapter, config); }