public class SimpleHiloIdentifierGenerator extends Object implements org.hibernate.id.IdentifierGenerator, IdentityGenerator
| Constructor and Description |
|---|
SimpleHiloIdentifierGenerator() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
bulk(int bulkSize)
return a bulk of a given size of ids
|
Serializable |
generate(org.hibernate.engine.spi.SessionImplementor session,
Object object) |
Long |
next()
returns the next id available.
|
static void |
setDataSource(DataSource injectedDataSource) |
public static void setDataSource(DataSource injectedDataSource)
public Long next()
IdentityGeneratornext in interface IdentityGeneratorLong of the next available id.public List<Long> bulk(int bulkSize)
IdentityGeneratorbulk in interface IdentityGeneratorbulkSize - the amount of ids ro returnList of ids.public Serializable generate(org.hibernate.engine.spi.SessionImplementor session, Object object) throws org.hibernate.HibernateException
generate in interface org.hibernate.id.IdentifierGeneratororg.hibernate.HibernateExceptionCopyright © 2016. All Rights Reserved.