com.atlassian.hibernate
Class ResettableIncrementGenerator
java.lang.Object
com.atlassian.hibernate.ResettableIncrementGenerator
- All Implemented Interfaces:
- net.sf.hibernate.id.Configurable, net.sf.hibernate.id.IdentifierGenerator
public class ResettableIncrementGenerator
- extends Object
- implements net.sf.hibernate.id.IdentifierGenerator, net.sf.hibernate.id.Configurable
Incremental id generator for Hibernate that can be reset in order to make it
ask for its starting id from the database again. Important after an import.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResettableIncrementGenerator
public ResettableIncrementGenerator()
generate
public Serializable generate(net.sf.hibernate.engine.SessionImplementor session,
Object object)
throws SQLException,
net.sf.hibernate.HibernateException
- Specified by:
generate
in interface net.sf.hibernate.id.IdentifierGenerator
- Throws:
SQLException
net.sf.hibernate.HibernateException
reset
public void reset()
configure
public void configure(net.sf.hibernate.type.Type type,
Properties params,
net.sf.hibernate.dialect.Dialect d)
throws net.sf.hibernate.MappingException
- Specified by:
configure
in interface net.sf.hibernate.id.Configurable
- Throws:
net.sf.hibernate.MappingException
Copyright © 2003-2012 Atlassian. All Rights Reserved.