|
||||||||||
| 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
org.datanucleus.store.rdbms.valuegenerator.AbstractRDBMSGenerator
org.datanucleus.store.rdbms.valuegenerator.MaxGenerator
public class MaxGenerator
This generator for Relational Databases uses the "select max(column) from table" strategy. The block size is limited to 1. MaxPoidGenerator works with numbers, so clients using this generator must cast the ID to Long *
Required user properties
Optional user properties
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.valuegenerator.AbstractRDBMSGenerator |
|---|
connection, LOCALISER_RDBMS |
| Fields inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator |
|---|
connectionProvider, storeMgr |
| Fields inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator |
|---|
allocationSize, block, initialValue, LOCALISER, name, properties, repositoryExists |
| Constructor Summary | |
|---|---|
MaxGenerator(String name,
Properties props)
Constructor. |
|
| Method Summary | |
|---|---|
org.datanucleus.store.valuegenerator.ValueGenerationBlock |
reserveBlock(long size)
Method to reserve a block of identities. |
| Methods inherited from class org.datanucleus.store.rdbms.valuegenerator.AbstractRDBMSGenerator |
|---|
obtainGenerationBlock, requiresConnection |
| Methods inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator |
|---|
setConnectionProvider, setStoreManager |
| Methods inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator |
|---|
allocate, createRepository, current, currentValue, getName, getStorageClass, next, nextValue, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxGenerator(String name,
Properties props)
name - Symbolic name for this generatorprops - Properties defining the behaviour of this generator| Method Detail |
|---|
public org.datanucleus.store.valuegenerator.ValueGenerationBlock reserveBlock(long size)
reserveBlock in class org.datanucleus.store.valuegenerator.AbstractGeneratorsize - The block size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||