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/ClassCatalog.html | 568 ++++++++++----------- 1 file changed, 278 insertions(+), 290 deletions(-) (limited to 'docs/java/com/sleepycat/bind/serial/ClassCatalog.html') diff --git a/docs/java/com/sleepycat/bind/serial/ClassCatalog.html b/docs/java/com/sleepycat/bind/serial/ClassCatalog.html index 218e58f4..35be866f 100644 --- a/docs/java/com/sleepycat/bind/serial/ClassCatalog.html +++ b/docs/java/com/sleepycat/bind/serial/ClassCatalog.html @@ -1,325 +1,313 @@ - - - - - -ClassCatalog (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.bind.serial -
-Interface ClassCatalog

-
-
All Known Implementing Classes:
StoredClassCatalog
-
-
-
-
public interface ClassCatalog
- - -

-A catalog of class description information for use during object +

+
com.sleepycat.bind.serial
+

Interface ClassCatalog

+
+
+
+
    +
  • +
    +
    All Known Implementing Classes:
    +
    StoredClassCatalog
    +
    +
    +
    +
    public interface ClassCatalog
    +
    A catalog of class description information for use during object serialization.

    A catalog is used to store class descriptions separately from serialized objects, to avoid redundantly stored information with each object. - When serialized objects are stored in a database, a StoredClassCatalog should be used.

    + When serialized objects are stored in a database, a StoredClassCatalog should be used.

    This information is used for serialization of class descriptors or java.io.ObjectStreamClass objects, each of which represents a unique class format. For each unique format, a unique class ID is assigned by the catalog. The class ID can then be used in the serialization stream in place - of the full class information. When used with SerialInput and - SerialOutput or any of the serial bindings, the use of the catalog - is transparent to the application.

    -

    - -

    -

    -
    See Also:
    Class Evolution
    -
    - -

    - + of the full class information. When used with SerialInput and + SerialOutput or any of the serial bindings, the use of the catalog + is transparent to the application.

    +
    See Also:
    Class Evolution
    +
  • +
+
+
+
    +
  • - - - - - - - - - - - - - - - - - - - - - - -
    -Method Summary
    - voidclose() - -
    -          Close a catalog database and release any cached resources.
    - ObjectStreamClassgetClassFormat(byte[] classID) - -
    -          Return the ObjectStreamClass for the given class ID.
    - byte[]getClassID(ObjectStreamClass classDesc) - -
    -          Return the class ID for the current version of the given class - description.
    - ClassLoadergetClassLoader() - -
    -          Returns the ClassLoader to be used by bindings that use this catalog.
    -  -

    - +

      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      voidclose() +
      Close a catalog database and release any cached resources.
      +
      java.io.ObjectStreamClassgetClassFormat(byte[] classID) +
      Return the ObjectStreamClass for the given class ID.
      +
      byte[]getClassID(java.io.ObjectStreamClass classDesc) +
      Return the class ID for the current version of the given class + description.
      +
      java.lang.ClassLoadergetClassLoader() +
      Returns the ClassLoader to be used by bindings that use this catalog.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • - - - - - - -
    -Method Detail
    - -

    -close

    -
    -void close()
    -           throws DatabaseException
    -
    -
    Close a catalog database and release any cached resources. -

    -

    - -
    Throws: -
    DatabaseException
    -
    -
    -
    - -

    -getClassID

    -
    -byte[] getClassID(ObjectStreamClass classDesc)
    -                  throws DatabaseException,
    -                         ClassNotFoundException
    -
    -
    Return the class ID for the current version of the given class +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        getClassID

        +
        byte[] getClassID(java.io.ObjectStreamClass classDesc)
        +                  throws DatabaseException,
        +                         java.lang.ClassNotFoundException
        +
        Return the class ID for the current version of the given class description. This is used for storing in serialization streams in place of a full class descriptor, since it is much more compact. To get back the - ObjectStreamClass for a class ID, call getClassFormat(byte[]). + ObjectStreamClass for a class ID, call getClassFormat(byte[]). This function causes a new class ID to be assigned if the class - description has changed. -

        -

        -
        Parameters:
        classDesc - The class description for which to return the - class ID. -
        Returns:
        The class ID for the current version of the class. -
        Throws: -
        DatabaseException -
        ClassNotFoundException
        -
        -
    -
    - -

    -getClassFormat

    -
    -ObjectStreamClass getClassFormat(byte[] classID)
    -                                 throws DatabaseException,
    -                                        ClassNotFoundException
    -
    -
    Return the ObjectStreamClass for the given class ID. This may or may + description has changed.
+
Parameters:
classDesc - The class description for which to return the + class ID.
+
Returns:
The class ID for the current version of the class.
+
Throws:
+
DatabaseException
+
java.lang.ClassNotFoundException
+ + + + + + + + + + + + + + +
+ -
- - - - - - - - - - - - - - - - - - -
-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