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. --- .../com/sleepycat/bind/serial/SerialBinding.html | 696 ++++++++++----------- 1 file changed, 344 insertions(+), 352 deletions(-) (limited to 'docs/java/com/sleepycat/bind/serial/SerialBinding.html') diff --git a/docs/java/com/sleepycat/bind/serial/SerialBinding.html b/docs/java/com/sleepycat/bind/serial/SerialBinding.html index 4c30d27b..779343aa 100644 --- a/docs/java/com/sleepycat/bind/serial/SerialBinding.html +++ b/docs/java/com/sleepycat/bind/serial/SerialBinding.html @@ -1,111 +1,115 @@ - - - - - -SerialBinding (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.bind.serial -
-Class SerialBinding<E>

-
-java.lang.Object
-  extended by com.sleepycat.bind.serial.SerialBase
-      extended by com.sleepycat.bind.serial.SerialBinding<E>
-
-
-
All Implemented Interfaces:
EntryBinding<E>
-
-
-
-
public class SerialBinding<E>
extends SerialBase
implements EntryBinding<E>
- - -

-A concrete EntryBinding that treats a key or data entry as +

+
com.sleepycat.bind.serial
+

Class SerialBinding<E>

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    EntryBinding<E>
    +
    +
    +
    +
    public class SerialBinding<E>
    +extends SerialBase
    +implements EntryBinding<E>
    +
    A concrete EntryBinding that treats a key or data entry as a serialized object.

    This binding stores objects in serialized object format. The @@ -132,161 +136,150 @@ A concrete EntryBinding that treats a key or data entry as rules for class evolution. Once an instance of a class is stored, the class must maintain its serialVersionUID and follow the rules defined in the Java specification. To use a new incompatible version of a class, a - different ClassCatalog must be used or the class catalog database + different ClassCatalog must be used or the class catalog database must be truncated.

    If more advanced class evolution features are required, consider using - the Direct Persistence Layer.

    -

    - -

    -


    - -

    - + the Direct Persistence Layer.

    +
  • +
+
+
+ +
+
+
    +
  • - - - - - - -
    -Constructor Detail
    - -

    -SerialBinding

    -
    -public SerialBinding(ClassCatalog classCatalog,
    -                     Class<E> baseClass)
    -
    -
    Creates a serial binding. -

    -

    -
    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

      + + + +
        +
      • +

        SerialBinding

        +
        public SerialBinding(ClassCatalog classCatalog,
        +             java.lang.Class<E> baseClass)
        +
        Creates a serial binding.
        +
        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. Note that if this parameter is non-null, then this binding - will not support serialization of null values.
        -
    - + will not support serialization of null values.
    +
  • +
+ + - - - - - - -
-Method Detail
- -

-getBaseClass

-
-public final Class<E> getBaseClass()
-
-
Returns the base class for this binding. -

-

-
-
-
- -
Returns:
the base class for this binding.
-
-
-
- -

-getClassLoader

-
-public ClassLoader getClassLoader()
-
-
Returns the class loader to be used during deserialization, or null if a +
    +
  • + + +

    Method Detail

    + + + +
      +
    • +

      getBaseClass

      +
      public final java.lang.Class<E> getBaseClass()
      +
      Returns the base class for this binding.
      +
      Returns:
      the base class for this binding.
      +
    • +
    + + + + + + + +
      +
    • +

      entryToObject

      +
      public E entryToObject(DatabaseEntry entry)
      +
      Deserialize an object from an entry buffer. May only be called for data + that was serialized using objectToEntry(E, com.sleepycat.db.DatabaseEntry), since the fixed serialization header is assumed to not be included in the input data. - SerialInput is used to deserialize the object. -

      -

      -
      Specified by:
      entryToObject in interface EntryBinding<E>
      -
      -
      -
      Parameters:
      entry - is the input serialized entry. -
      Returns:
      the output deserialized object.
      -
      -
-
- -

-objectToEntry

-
-public void objectToEntry(E object,
-                          DatabaseEntry entry)
-
-
Serialize an object into an entry buffer. The fixed serialization + SerialInput is used to deserialize the object.
+
+
Specified by:
+
entryToObject in interface EntryBinding<E>
+
Parameters:
entry - is the input serialized entry.
+
Returns:
the output deserialized 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