public class

ResettableIncrementGenerator

extends Object
implements Configurable IdentifierGenerator
java.lang.Object
   ↳ com.atlassian.hibernate.ResettableIncrementGenerator

Class Overview

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.

Summary

Public Constructors
ResettableIncrementGenerator()
Public Methods
void configure(Type type, Properties params, Dialect d)
synchronized Serializable generate(SessionImplementor session, Object object)
synchronized void reset()
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.sf.hibernate.id.Configurable
From interface net.sf.hibernate.id.IdentifierGenerator

Public Constructors

public ResettableIncrementGenerator ()

Public Methods

public void configure (Type type, Properties params, Dialect d)

Throws
MappingException

public synchronized Serializable generate (SessionImplementor session, Object object)

Throws
HibernateException
SQLException

public synchronized void reset ()