Inheritance diagram for com::sleepycat::collections::StoredValueSet:
Public Member Functions | |
StoredValueSet (Database database, EntryBinding valueBinding, boolean writeAllowed) | |
StoredValueSet (Database database, EntityBinding valueEntityBinding, boolean writeAllowed) | |
boolean | add (Object entity) |
boolean | contains (Object value) |
boolean | remove (Object value) |
int | size () |
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.
Definition at line 39 of file StoredValueSet.java.
|
Creates a value set view of a Database.
Definition at line 64 of file StoredValueSet.java. |
|
Creates a value set entity view of a Database.
Definition at line 89 of file StoredValueSet.java. |
|
Adds the specified entity to this set if it is not already present (optional operation). This method conforms to the Set#add interface.
Definition at line 124 of file StoredValueSet.java. References com::sleepycat::collections::DataView::dupsAllowed, com::sleepycat::collections::DataView::entityBinding, com::sleepycat::collections::DataView::isSecondary(), com::sleepycat::collections::DataCursor::putNoDupData(), and com::sleepycat::collections::DataCursor::useRangeKey(). |
|
Returns true if this set contains the specified element. This method conforms to the java.util.Set#contains interface.
Definition at line 165 of file StoredValueSet.java. |
|
Removes the specified value from this set if it is present (optional operation). If an entity binding is used, the key-value pair represented by the given entity is removed. If an entity binding is used, the first occurrence of a key-value pair with the given value is removed. This method conforms to the Set#remove interface.
Definition at line 183 of file StoredValueSet.java. |
|
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 from com::sleepycat::collections::StoredContainer. Definition at line 189 of file StoredValueSet.java. References com::sleepycat::collections::DataCursor::count(), and com::sleepycat::collections::DataCursor::getFirst(). |