com.sleepycat.collections
public class TupleSerialFactory extends Object
Constructor Summary | |
---|---|
TupleSerialFactory(ClassCatalog catalog)
Creates a tuple-serial factory for given environment and class catalog. |
Method Summary | |
---|---|
ClassCatalog | getCatalog()
Returns the class catalog associated with this factory. |
TupleSerialMarshalledKeyCreator | getKeyCreator(Class valueBaseClass, String keyName)
Creates a SecondaryKeyCreator object for use in configuring
a SecondaryDatabase . |
StoredMap | newMap(Database db, Class keyClass, Class valueBaseClass, boolean writeAllowed)
Creates a map from a previously opened Database object.
|
StoredSortedMap | newSortedMap(Database db, Class keyClass, Class valueBaseClass, boolean writeAllowed)
Creates a sorted map from a previously opened Database object.
|
SecondaryKeyCreator
object for use in configuring
a SecondaryDatabase
. The returned object implements
the SecondaryKeyCreator interface.
Parameters: valueBaseClass the base class of the entity values for this store. It must implement the MarshalledTupleKeyEntity interface. keyName is the key name passed to the MarshalledTupleKeyEntity method to identify the secondary key.
Parameters: db the previously opened Database object. keyClass is the class used for map keys. It must implement the MarshalledTupleEntry interface or be one of the Java primitive type classes. valueBaseClass the base class of the entity values for this store. It must implement the MarshalledTupleKeyEntity interface. writeAllowed is true to create a read-write collection or false to create a read-only collection.
Parameters: db the previously opened Database object. keyClass is the class used for map keys. It must implement the MarshalledTupleEntry interface or be one of the Java primitive type classes. valueBaseClass the base class of the entity values for this store. It must implement the MarshalledTupleKeyEntity interface. writeAllowed is true to create a read-write collection or false to create a read-only collection.