Package com.sleepycat.bdb

Examples of com.sleepycat.bdb.DataView


    public Collection values() {

        if (valueSet == null) {
            synchronized (this) {
                if (valueSet == null) {
                    DataView newView = view.valueSetView();
                    if (isOrdered() && newView.canDeriveKeyFromValue()) {
                        valueSet = new StoredSortedValueSet(newView);
                    } else {
                        valueSet = new StoredValueSet(newView);
                    }
                }
View Full Code Here


     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public Collection duplicates(Object key) {

        try {
            DataView newView = view.valueSetView(key);
            return new StoredValueSet(newView, true);
        } catch (KeyRangeException e) {
            return Collections.EMPTY_SET;
        } catch (Exception e) {
            throw StoredContainer.convertException(e);
View Full Code Here

     */
    public StoredValueSet(DataStore store,
                          DataBinding valueBinding,
                          boolean writeAllowed) {

        super(new DataView(store, null, null, valueBinding,
                          null, writeAllowed));
    }
View Full Code Here

     */
    public StoredValueSet(DataStore store,
                          EntityBinding valueEntityBinding,
                          boolean writeAllowed) {

        super(new DataView(store, null, null, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

     */
    public StoredValueSet(DataIndex index,
                          DataBinding valueBinding,
                          boolean writeAllowed) {

        super(new DataView(null, index, null, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

     */
    public StoredValueSet(DataIndex index,
                          EntityBinding valueEntityBinding,
                          boolean writeAllowed) {

        super(new DataView(null, index, null, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredSortedKeySet(DataStore store, DataBinding keyBinding,
                              boolean writeAllowed) {

        super(new DataView(store, null, keyBinding, null,
                              null, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredSortedKeySet(DataIndex index, DataBinding keyBinding,
                              boolean writeAllowed) {

        super(new DataView(null, index, keyBinding, null,
                              null, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredList(DataStore store, DataBinding valueBinding,
                      boolean writeAllowed) {

        super(new DataView(store, null, DEFAULT_KEY_BINDING, valueBinding,
                           null, writeAllowed));
    }
View Full Code Here

     * @throws RuntimeExceptionWrapper if a {@link DbException} is thrown.
     */
    public StoredList(DataStore store, EntityBinding valueEntityBinding,
                      boolean writeAllowed) {

        super(new DataView(store, null, DEFAULT_KEY_BINDING, null,
                           valueEntityBinding, writeAllowed));
    }
View Full Code Here

TOP

Related Classes of com.sleepycat.bdb.DataView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.