public class TupleSerialFactory
extends java.lang.Object
| Constructor and Description | 
|---|
TupleSerialFactory(ClassCatalog catalog)
Creates a tuple-serial factory for given environment and class catalog. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ClassCatalog | 
getCatalog()
Returns the class catalog associated with this factory. 
 | 
<V extends MarshalledTupleKeyEntity> | 
getEntityBinding(java.lang.Class<V> baseClass)  | 
<V extends MarshalledTupleKeyEntity> | 
getKeyCreator(java.lang.Class<V> valueBaseClass,
             java.lang.String keyName)
Creates a  
SecondaryKeyCreator object for use in configuring
 a SecondaryDatabase. | 
<K,V extends MarshalledTupleKeyEntity> | 
newMap(Database db,
      java.lang.Class<K> keyClass,
      java.lang.Class<V> valueBaseClass,
      boolean writeAllowed)
Creates a map from a previously opened Database object. 
 | 
<K,V extends MarshalledTupleKeyEntity> | 
newSortedMap(Database db,
            java.lang.Class<K> keyClass,
            java.lang.Class<V> valueBaseClass,
            boolean writeAllowed)
Creates a sorted map from a previously opened Database object. 
 | 
public TupleSerialFactory(ClassCatalog catalog)
catalog - the ClassCatalog.public final ClassCatalog getCatalog()
public <K,V extends MarshalledTupleKeyEntity> StoredMap<K,V> newMap(Database db, java.lang.Class<K> keyClass, java.lang.Class<V> valueBaseClass, boolean writeAllowed)
K - the key class.V - the value base class.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.public <K,V extends MarshalledTupleKeyEntity> StoredSortedMap<K,V> newSortedMap(Database db, java.lang.Class<K> keyClass, java.lang.Class<V> valueBaseClass, boolean writeAllowed)
K - the key class.V - the value base class.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.public <V extends MarshalledTupleKeyEntity> TupleSerialMarshalledKeyCreator<V> getKeyCreator(java.lang.Class<V> valueBaseClass, java.lang.String keyName)
SecondaryKeyCreator object for use in configuring
 a SecondaryDatabase.  The returned object implements
 the SecondaryKeyCreator interface.V - the value base class.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.marshalSecondaryKey(java.lang.String, com.sleepycat.bind.tuple.TupleOutput) method to identify the
 secondary key.public <V extends MarshalledTupleKeyEntity> TupleSerialMarshalledBinding<V> getEntityBinding(java.lang.Class<V> baseClass)
Copyright (c) 1996, 2019 Oracle and/or its affiliates. All rights reserved.