net.sf.beanlib.hibernate3
Class Hibernate3SequenceGenerator
java.lang.Object
net.sf.beanlib.hibernate3.Hibernate3SequenceGenerator
public class Hibernate3SequenceGenerator
- extends Object
Hibernate 3 DB Sequence Generator.
- Author:
- Joe D. Velopar
Method Summary |
private static org.hibernate.id.IdentifierGenerator |
createIdentifierGenerator(String sequenceName,
org.hibernate.Session session)
Returns the identifier generator created for the specified sequence and session. |
static long |
nextval(String sequenceName,
org.hibernate.Session session)
Returns the next sequence id from the specified sequence and session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hibernate3SequenceGenerator
private Hibernate3SequenceGenerator()
nextval
public static long nextval(String sequenceName,
org.hibernate.Session session)
- Returns the next sequence id from the specified sequence and session.
createIdentifierGenerator
private static org.hibernate.id.IdentifierGenerator createIdentifierGenerator(String sequenceName,
org.hibernate.Session session)
- Returns the identifier generator created for the specified sequence and session.