|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.valuegenerator.AbstractGenerator
org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
public abstract class AbstractDatastoreGenerator
Abstract representation of a ValueGenerator for a datastore. Builds on the base AbstractValueGenerator, and providing datastore connection and StoreManager information.
| Field Summary | |
|---|---|
protected ValueGenerationConnectionProvider |
connectionProvider
The means of connecting to the datastore (if required by the generator). |
protected StoreManager |
storeMgr
Manager for the datastore. |
| Fields inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator |
|---|
allocationSize, block, initialValue, LOCALISER, name, properties, repositoryExists |
| Constructor Summary | |
|---|---|
AbstractDatastoreGenerator(java.lang.String name,
java.util.Properties props)
Constructor. |
|
| Method Summary | |
|---|---|
void |
setConnectionProvider(ValueGenerationConnectionProvider provider)
Mutator for setting the connection provider. |
void |
setStoreManager(StoreManager storeMgr)
Method to set the StoreManager to be used. |
| Methods inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator |
|---|
allocate, createRepository, current, currentValue, getName, getStorageClass, next, nextValue, obtainGenerationBlock, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock, reserveBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StoreManager storeMgr
protected ValueGenerationConnectionProvider connectionProvider
| Constructor Detail |
|---|
public AbstractDatastoreGenerator(java.lang.String name,
java.util.Properties props)
name - Symbolic name for the generatorprops - Properties controlling the behaviour of the generator| Method Detail |
|---|
public void setStoreManager(StoreManager storeMgr)
storeMgr - The Store Managerpublic void setConnectionProvider(ValueGenerationConnectionProvider provider)
provider - The connection provider.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||