|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.valuegenerator.ValueGenerationManager
public class ValueGenerationManager
Manager for the creation of ValueGenerators. Allows creation of generators and provides lookup by symbolic name.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,ValueGenerator> |
generatorsByName
Map of ValueGenerator keyed by the symbolic name. |
protected static Localiser |
LOCALISER
Localisation of messages |
| Constructor Summary | |
|---|---|
ValueGenerationManager()
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Method to clear out the generators managed by this manager. |
ValueGenerator |
createValueGenerator(java.lang.String name,
java.lang.Class generatorClass,
java.util.Properties props,
StoreManager storeMgr,
ValueGenerationConnectionProvider connectionProvider)
Method to create a ValueGenerator when the generator is datastore based. |
ValueGenerator |
getValueGenerator(java.lang.String name)
Accessor for the ValueGenerator with the given symbolic name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
protected java.util.Map<java.lang.String,ValueGenerator> generatorsByName
| Constructor Detail |
|---|
public ValueGenerationManager()
| Method Detail |
|---|
public void clear()
public ValueGenerator getValueGenerator(java.lang.String name)
name - Name of the ValueGenerator when created
public ValueGenerator createValueGenerator(java.lang.String name,
java.lang.Class generatorClass,
java.util.Properties props,
StoreManager storeMgr,
ValueGenerationConnectionProvider connectionProvider)
name - Symbolic name of the generatorgeneratorClass - Class for the generator typeprops - Properties to control the generatorstoreMgr - Manager for the storeconnectionProvider - Provider for connections
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||