From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- .../bind/serial/TupleSerialMarshalledBinding.html | 749 +++++++++++---------- 1 file changed, 376 insertions(+), 373 deletions(-) (limited to 'docs/java/com/sleepycat/bind/serial/TupleSerialMarshalledBinding.html') diff --git a/docs/java/com/sleepycat/bind/serial/TupleSerialMarshalledBinding.html b/docs/java/com/sleepycat/bind/serial/TupleSerialMarshalledBinding.html index e892c08b..2652fb62 100644 --- a/docs/java/com/sleepycat/bind/serial/TupleSerialMarshalledBinding.html +++ b/docs/java/com/sleepycat/bind/serial/TupleSerialMarshalledBinding.html @@ -1,403 +1,406 @@ - - - - - -TupleSerialMarshalledBinding (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.bind.serial -
-Class TupleSerialMarshalledBinding<E extends MarshalledTupleKeyEntity>

-
-java.lang.Object
-  extended by com.sleepycat.bind.tuple.TupleBase
-      extended by com.sleepycat.bind.serial.TupleSerialBinding<E,E>
-          extended by com.sleepycat.bind.serial.TupleSerialMarshalledBinding<E>
-
-
-
All Implemented Interfaces:
EntityBinding<E>
-
-
-
-
public class TupleSerialMarshalledBinding<E extends MarshalledTupleKeyEntity>
extends TupleSerialBinding<E,E>
- - -

-A concrete TupleSerialBinding that delegates to the +

+
com.sleepycat.bind.serial
+

Class TupleSerialMarshalledBinding<E extends MarshalledTupleKeyEntity>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    EntityBinding<E>
    +
    +
    +
    +
    public class TupleSerialMarshalledBinding<E extends MarshalledTupleKeyEntity>
    +extends TupleSerialBinding<E,E>
    +
    A concrete TupleSerialBinding that delegates to the MarshalledTupleKeyEntity interface of the entity class. -

    The MarshalledTupleKeyEntity interface must be implemented by the +

    The MarshalledTupleKeyEntity interface must be implemented by the entity class to convert between the key/data entry and entity object.

    The binding is "tricky" in that it uses the entity class for both the stored data entry and the combined entity object. To do this, the entity's key field(s) are transient and are set by the binding after the data object has been deserialized. This avoids the use of a "data" class completely. -

    -

    - -

    -

    -
    See Also:
    MarshalledTupleKeyEntity, -Class Evolution
    -
    - -

    +

    +
    See Also:
    MarshalledTupleKeyEntity, +Class Evolution
    +
  • +
+
+
+ +
+
+
    +
  • - - - - - - -
    -Constructor Detail
    - -

    -TupleSerialMarshalledBinding

    -
    -public TupleSerialMarshalledBinding(ClassCatalog classCatalog,
    -                                    Class<E> baseClass)
    -
    -
    Creates a tuple-serial marshalled binding object. -

    -

    -
    Parameters:
    classCatalog - is the catalog to hold shared class information and - for a database should be a StoredClassCatalog.
    baseClass - is the base class for serialized objects stored using +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TupleSerialMarshalledBinding

        +
        public TupleSerialMarshalledBinding(ClassCatalog classCatalog,
        +                            java.lang.Class<E> baseClass)
        +
        Creates a tuple-serial marshalled binding object.
        +
        Parameters:
        classCatalog - is the catalog to hold shared class information and + for a database should be a StoredClassCatalog.
        baseClass - is the base class for serialized objects stored using this binding -- all objects using this binding must be an instance of - this class.
        -
    -
    - -

    -TupleSerialMarshalledBinding

    -
    -public TupleSerialMarshalledBinding(SerialBinding<E> dataBinding)
    -
    -
    Creates a tuple-serial marshalled binding object. -

    -

    -
    Parameters:
    dataBinding - is the binding used for serializing and deserializing - the entity object.
    -
    - + this class.
    +
  • +
+ + + +
    +
  • +

    TupleSerialMarshalledBinding

    +
    public TupleSerialMarshalledBinding(SerialBinding<E> dataBinding)
    +
    Creates a tuple-serial marshalled binding object.
    +
    Parameters:
    dataBinding - is the binding used for serializing and deserializing + the entity object.
    +
  • +
+ + - - - - - - -
-Method Detail
- -

-entryToObject

-
-public E entryToObject(TupleInput tupleInput,
-                       E javaInput)
-
-
Description copied from class: TupleSerialBinding
-
Constructs an entity object from TupleInput key entry and - deserialized data entry objects. -

-

-
Specified by:
entryToObject in class TupleSerialBinding<E extends MarshalledTupleKeyEntity,E extends MarshalledTupleKeyEntity>
-
-
-
Parameters:
tupleInput - is the TupleInput key entry object.
javaInput - is the deserialized data entry object. -
Returns:
the entity object constructed from the key and data.
-
-
-
- -

-objectToKey

-
-public void objectToKey(E object,
-                        TupleOutput output)
-
-
Description copied from class: TupleSerialBinding
-
Extracts a key tuple from an entity object. -

-

-
Specified by:
objectToKey in class TupleSerialBinding<E extends MarshalledTupleKeyEntity,E extends MarshalledTupleKeyEntity>
-
-
-
Parameters:
object - is the entity object.
output - is the TupleOutput to which the key should be - written.
-
-
-
- -

-objectToData

-
-public E objectToData(E object)
-
-
Description copied from class: TupleSerialBinding
-
Extracts a data object from an entity object. -

-

-
Specified by:
objectToData in class TupleSerialBinding<E extends MarshalledTupleKeyEntity,E extends MarshalledTupleKeyEntity>
-
-
-
Parameters:
object - is the entity object. -
Returns:
the deserialized data object.
-
-
+ + + +
+
-
- - - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. - - +

Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.

+ + -- cgit v1.2.1