public abstract class AbstractRDBMSGenerator
extends org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
Modifier and Type | Field and Description |
---|---|
protected org.datanucleus.store.connection.ManagedConnection |
connection
Connection to the datastore.
|
protected static org.datanucleus.util.Localiser |
LOCALISER_RDBMS
Localiser for messages specific to RDBMS generators.
|
Constructor and Description |
---|
AbstractRDBMSGenerator(String name,
Properties props)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.datanucleus.store.valuegenerator.ValueGenerationBlock |
obtainGenerationBlock(int number)
Get a new PoidBlock with the specified number of ids.
|
boolean |
requiresConnection()
Method to reply if the generator requires a connection.
|
setConnectionProvider, setStoreManager
protected static final org.datanucleus.util.Localiser LOCALISER_RDBMS
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 obtainGenerationBlock(int number)
obtainGenerationBlock
in class org.datanucleus.store.valuegenerator.AbstractGenerator
number
- The number of additional ids requiredCopyright © 2023. All rights reserved.