| java.lang.Object com.sleepycat.collections.TupleSerialFactory
TupleSerialFactory | public class TupleSerialFactory (Code) | | Creates stored collections having tuple keys and serialized entity values.
The entity classes must implement the java.io.Serializable and
MarshalledTupleKeyEntity interfaces. The key classes must either implement
the MarshalledTupleEntry interface or be one of the Java primitive type
classes. Underlying binding objects are created automatically.
author: Mark Hayes |
Method Summary | |
final public ClassCatalog | getCatalog() Returns the class catalog associated with this factory. | public TupleSerialMarshalledKeyCreator | getKeyCreator(Class valueBaseClass, String keyName) Creates a SecondaryKeyCreator object for use in configuring
a SecondaryDatabase . | public StoredMap | newMap(Database db, Class keyClass, Class valueBaseClass, boolean writeAllowed) Creates a map from a previously opened Database object.
Parameters: db - the previously opened Database object. Parameters: keyClass - is the class used for map keys. | public StoredSortedMap | newSortedMap(Database db, Class keyClass, Class valueBaseClass, boolean writeAllowed) Creates a sorted map from a previously opened Database object.
Parameters: db - the previously opened Database object. Parameters: keyClass - is the class used for map keys. |
TupleSerialFactory | public TupleSerialFactory(ClassCatalog catalog)(Code) | | Creates a tuple-serial factory for given environment and class catalog.
|
getCatalog | final public ClassCatalog getCatalog()(Code) | | Returns the class catalog associated with this factory.
|
newMap | public StoredMap newMap(Database db, Class keyClass, Class valueBaseClass, boolean writeAllowed)(Code) | | Creates a map from a previously opened Database object.
Parameters: db - the previously opened Database object. Parameters: keyClass - is the class used for map keys. It must implement thecom.sleepycat.bind.tuple.MarshalledTupleEntry interface or beone of the Java primitive type classes. Parameters: valueBaseClass - the base class of the entity values for thisstore. It must implement the com.sleepycat.bind.tuple.MarshalledTupleKeyEntity interface. Parameters: writeAllowed - is true to create a read-write collection or falseto create a read-only collection. |
newSortedMap | public StoredSortedMap newSortedMap(Database db, Class keyClass, Class valueBaseClass, boolean writeAllowed)(Code) | | Creates a sorted map from a previously opened Database object.
Parameters: db - the previously opened Database object. Parameters: keyClass - is the class used for map keys. It must implement thecom.sleepycat.bind.tuple.MarshalledTupleEntry interface or beone of the Java primitive type classes. Parameters: valueBaseClass - the base class of the entity values for thisstore. It must implement the com.sleepycat.bind.tuple.MarshalledTupleKeyEntity interface. Parameters: writeAllowed - is true to create a read-write collection or falseto create a read-only collection. |
|
|