Inheritance diagram for com::sleepycat::collections::StoredContainer:
Public Member Functions | |
final boolean | isWriteAllowed () |
final CursorConfig | getCursorConfig () |
final boolean | isDirtyReadAllowed () |
final boolean | isDirtyRead () |
final boolean | isTransactional () |
final boolean | areDuplicatesAllowed () |
final boolean | areDuplicatesOrdered () |
final boolean | areKeysRenumbered () |
final boolean | isOrdered () |
final boolean | isSecondary () |
int | size () |
boolean | isEmpty () |
void | clear () |
Package Functions | |
final StoredContainer | configuredClone (CursorConfig config) |
void | initAfterClone () |
Note that this class does not conform to the standard Java collections interface in the following ways:
UnsupportedOperationException
because, for performance reasons, databases do not maintain their total record count. In addition, this class provides the following methods for stored collections only. Note that the use of these methods is not compatible with the standard Java collections interface.
Definition at line 51 of file StoredContainer.java.
|
Returns whether duplicate keys are allowed in this container. Duplicates are optionally allowed for HASH and BTREE databases. This method does not exist in the standard java.util.Map or java.util.Collection interfaces. Note that the JE product only supports BTREE databases.
Definition at line 165 of file StoredContainer.java. References com::sleepycat::collections::DataView::dupsAllowed. |
|
Returns whether duplicate keys are allowed and sorted by element value. Duplicates are optionally sorted for HASH and BTREE databases. This method does not exist in the standard java.util.Map or java.util.Collection interfaces. Note that the JE product only supports BTREE databases, and duplicates are always sorted.
Definition at line 181 of file StoredContainer.java. References com::sleepycat::collections::DataView::dupsOrdered. |
|
Returns whether keys are renumbered when insertions and deletions occur. Keys are optionally renumbered for RECNO databases. This method does not exist in the standard java.util.Map or java.util.Collection interfaces. Note that the JE product does not support RECNO databases, and therefore keys are never renumbered.
Definition at line 197 of file StoredContainer.java. References com::sleepycat::collections::DataView::keysRenumbered. |
|
Removes all mappings or elements from this map or collection (optional operation). This method conforms to the java.util.Collection#clear and java.util.Map#clear interfaces.
Definition at line 275 of file StoredContainer.java. References com::sleepycat::collections::DataView::clear(). |
|
Clones a container with a specified cursor configuration. Definition at line 139 of file StoredContainer.java. References com::sleepycat::collections::DataView::configuredView(), initAfterClone(), and view. |
|
Returns the cursor configuration that is used for all operations performed via this container. For example, if
Definition at line 84 of file StoredContainer.java. References com::sleepycat::collections::DataView::cursorConfig. |
|
Override this method to initialize view-dependent fields. Reimplemented in com::sleepycat::collections::StoredMap. Definition at line 152 of file StoredContainer.java. Referenced by configuredClone(). |
|
Definition at line 115 of file StoredContainer.java. References com::sleepycat::collections::DataView::cursorConfig. |
|
Returns whether read-uncommitted is allowed for this container. For the JE product, read-uncommitted is always allowed; for the DB product, read-uncommitted is allowed if it was configured for the underlying database for this container. Even when read-uncommitted is allowed it must specifically be enabled by calling one of the StoredCollections methods. This method does not exist in the standard java.util.Map or java.util.Collection interfaces.
Definition at line 105 of file StoredContainer.java. References com::sleepycat::collections::DataView::readUncommittedAllowed. |
|
Returns true if this map or collection contains no mappings or elements. This method conforms to the java.util.Collection#isEmpty and java.util.Map#isEmpty interfaces.
Definition at line 256 of file StoredContainer.java. References com::sleepycat::collections::DataView::isEmpty(). |
|
Returns whether keys are ordered in this container. Keys are ordered for BTREE, RECNO and QUEUE database. This method does not exist in the standard java.util.Map or java.util.Collection interfaces. Note that the JE product only support BTREE databases, and therefore keys are always ordered.
Definition at line 213 of file StoredContainer.java. References com::sleepycat::collections::DataView::ordered. |
|
Returns whether this container is a view on a secondary database rather than directly on a primary database. This method does not exist in the standard java.util.Map or java.util.Collection interfaces.
Definition at line 226 of file StoredContainer.java. References com::sleepycat::collections::DataView::isSecondary(). |
|
Returns whether the databases underlying this container are transactional. Even in a transactional environment, a database will be transactional only if it was opened within a transaction or if the auto-commit option was specified when it was opened. This method does not exist in the standard java.util.Map or java.util.Collection interfaces.
Definition at line 131 of file StoredContainer.java. References com::sleepycat::collections::DataView::transactional. |
|
Returns true if this is a read-write container or false if this is a read-only container. This method does not exist in the standard java.util.Map or java.util.Collection interfaces.
Definition at line 68 of file StoredContainer.java. References com::sleepycat::collections::DataView::writeAllowed. Referenced by com::sleepycat::collections::StoredCollection::iterator(), and com::sleepycat::collections::StoredList::listIterator(). |
|
Always throws UnsupportedOperationException. The size of a database cannot be obtained reliably or inexpensively. This method therefore violates the java.util.Collection#size and java.util.Map#size interfaces.
Reimplemented in com::sleepycat::collections::StoredValueSet. Definition at line 241 of file StoredContainer.java. |