public abstract class AbstractRDBMSGenerator<T>
extends org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator<T>
Modifier and Type | Field and Description |
---|---|
protected org.datanucleus.store.connection.ManagedConnection |
connection
Connection to the datastore.
|
Constructor and Description |
---|
AbstractRDBMSGenerator(String name,
Properties props)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.datanucleus.store.valuegenerator.ValueGenerationBlock<T> |
obtainGenerationBlock(int number)
Get a new PoidBlock with the specified number of ids.
|
boolean |
requiresConnection()
Method to reply if the generator requires a connection.
|
getConnectionPreference, setConnectionProvider, setStoreManager
protected org.datanucleus.store.connection.ManagedConnection connection
public AbstractRDBMSGenerator(String name, Properties props)
name
- Symbolic name for the generatorprops
- Properties controlling the behaviour of the generatorpublic boolean requiresConnection()
protected org.datanucleus.store.valuegenerator.ValueGenerationBlock<T> obtainGenerationBlock(int number)
obtainGenerationBlock
in class org.datanucleus.store.valuegenerator.AbstractGenerator<T>
number
- The number of additional ids requiredCopyright © 2015. All rights reserved.