Examples of MarshalledTupleKeyEntity


Examples of com.sleepycat.bdb.bind.tuple.MarshalledTupleKeyEntity

        throws IOException {

        // Creates the entity by combining the stored key and value.
        // This "tricky" binding returns the stored value as the entity, but
        // first it sets the transient key fields from the stored key.
        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity) javaInput;

        if (tupleInput != null) { // may be null if not used by key extractor
            entity.unmarshalPrimaryKey(tupleInput);
        }
        return entity;
    }
View Full Code Here

Examples of com.sleepycat.bdb.bind.tuple.MarshalledTupleKeyEntity

    // javadoc is inherited
    public void objectToKey(Object object, TupleOutput output)
        throws IOException {

        // Creates the stored key from the entity.
        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity) object;
        entity.marshalPrimaryKey(output);
    }
View Full Code Here

Examples of com.sleepycat.bdb.bind.tuple.MarshalledTupleKeyEntity

    public void extractIndexKey(TupleInput primaryKeyInput,
                                Object valueInput,
                                TupleOutput indexKeyOutput)
        throws IOException {

        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity)
            binding.dataToObject(primaryKeyInput, valueInput);

        // the primary key is unmarshalled before marshalling the index key, to
        // account for cases where the index key includes data taken from the
        // primary key

        entity.marshalIndexKey(keyName, indexKeyOutput);
    }
View Full Code Here

Examples of com.sleepycat.bdb.bind.tuple.MarshalledTupleKeyEntity

    // javadoc is inherited
    public void clearIndexKey(Object valueInput)
        throws IOException {

        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity)
            binding.dataToObject(null, valueInput);

        entity.clearIndexKey(keyName);
    }
View Full Code Here

Examples of com.sleepycat.bind.tuple.MarshalledTupleKeyEntity

        /*
         * The primary key is unmarshalled before marshalling the index key, to
         * account for cases where the index key includes fields taken from the
         * primary key.
         */
        MarshalledTupleKeyEntity entity =
            binding.entryToObject(primaryKeyInput, dataInput);

        return entity.marshalSecondaryKey(keyName, indexKeyOutput);
    }
View Full Code Here

Examples of com.sleepycat.bind.tuple.MarshalledTupleKeyEntity

    }

    // javadoc is inherited
    public D nullifyForeignKey(D dataInput) {

        MarshalledTupleKeyEntity entity =
            binding.entryToObject(null, dataInput);

        return entity.nullifyForeignKey(keyName) ? dataInput : null;
    }
View Full Code Here

Examples of com.sleepycat.bind.tuple.MarshalledTupleKeyEntity

        /* Creates the entity by combining the stored key and data.
         * This "tricky" binding returns the stored data as the entity, but
         * first it sets the transient key fields from the stored key.
         */
        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity) javaInput;

        if (tupleInput != null) { // may be null if not used by key extractor
            entity.unmarshalPrimaryKey(tupleInput);
        }
        return entity;
    }
View Full Code Here

Examples of com.sleepycat.bind.tuple.MarshalledTupleKeyEntity

    // javadoc is inherited
    public void objectToKey(Object object, TupleOutput output) {

        /* Creates the stored key from the entity.
         */
        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity) object;
        entity.marshalPrimaryKey(output);
    }
View Full Code Here

Examples of com.sleepycat.bind.tuple.MarshalledTupleKeyEntity

        /*
         * The primary key is unmarshalled before marshalling the index key, to
         * account for cases where the index key includes fields taken from the
         * primary key.
         */
        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity)
            binding.entryToObject(primaryKeyInput, dataInput);

        return entity.marshalSecondaryKey(keyName, indexKeyOutput);
    }
View Full Code Here

Examples of com.sleepycat.bind.tuple.MarshalledTupleKeyEntity

    }

    // javadoc is inherited
    public Object nullifyForeignKey(Object dataInput) {

        MarshalledTupleKeyEntity entity = (MarshalledTupleKeyEntity)
            binding.entryToObject(null, dataInput);

        return entity.nullifyForeignKey(keyName) ? dataInput : null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.