net.sf.beanlib.hibernate3
Class Hibernate3SequenceGenerator

java.lang.Object
  extended by net.sf.beanlib.hibernate3.Hibernate3SequenceGenerator

public class Hibernate3SequenceGenerator
extends Object

Hibernate 3 DB Sequence Generator.

Author:
Joe D. Velopar

Constructor Summary
private Hibernate3SequenceGenerator()
           
 
Method Summary
private static IdentifierGenerator createIdentifierGenerator(String sequenceName, Session session)
          Returns the identifier generator created for the specified sequence and session.
static long nextval(String sequenceName, 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
 

Constructor Detail

Hibernate3SequenceGenerator

private Hibernate3SequenceGenerator()
Method Detail

nextval

public static long nextval(String sequenceName,
                           Session session)
Returns the next sequence id from the specified sequence and session.


createIdentifierGenerator

private static IdentifierGenerator createIdentifierGenerator(String sequenceName,
                                                             Session session)
Returns the identifier generator created for the specified sequence and session.