public class IncrementGenerator extends Object implements IdentifierGenerator, Configurable
ENTITY_NAME
Constructor and Description |
---|
IncrementGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Type type,
Properties params,
Dialect dialect)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
Serializable |
generate(SessionImplementor session,
Object object)
Generate a new identifier.
|
public Serializable generate(SessionImplementor session, Object object) throws HibernateException
IdentifierGenerator
generate
in interface IdentifierGenerator
object
- the entity or toplevel collection for which the id is being generatedHibernateException
public void configure(Type type, Properties params, Dialect dialect) throws MappingException
Configurable
configure
in interface Configurable
params
- param values, keyed by parameter nameMappingException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.