当前页面: 
在线文档首页 > 
Hibernate 3.2.4 正式版 API 英文文档
SequenceHiLoGenerator (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.id
Class SequenceHiLoGenerator
java.lang.Object
   org.hibernate.id.SequenceGenerator
org.hibernate.id.SequenceGenerator
       org.hibernate.id.SequenceHiLoGenerator
org.hibernate.id.SequenceHiLoGenerator
- All Implemented Interfaces: 
- Configurable, IdentifierGenerator, PersistentIdentifierGenerator
- public class SequenceHiLoGenerator- extends SequenceGenerator
seqhilo
 
 An IdentifierGenerator that combines a hi/lo algorithm with an underlying
 oracle-style sequence that generates hi values. The user may specify a
 maximum lo value to determine how often new hi values are fetched.
 
 If sequences are not available, TableHiLoGenerator might be an
 alternative.
 
 Mapping parameters supported: sequence, max_lo, parameters.
- Author:
- Gavin King
- See Also:
- TableHiLoGenerator
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MAX_LO
public static final String MAX_LO
- See Also:
- Constant Field Values
SequenceHiLoGenerator
public SequenceHiLoGenerator()
configure
public void configure(Type type,
                      Properties params,
                      Dialect d)
               throws MappingException
- Description copied from interface: Configurable
- Configure this instance, given the value of parameters
 specified by the user as <param> elements.
 This method is called just once, following instantiation.
 
- 
- Specified by:
- configurein interface- Configurable
- Overrides:
- configurein class- SequenceGenerator
 
- 
- Throws:
- MappingException
 
generate
public Serializable generate(SessionImplementor session,
                             Object obj)
                      throws HibernateException
- Description copied from interface: IdentifierGenerator
- Generate a new identifier.
 
- 
- Specified by:
- generatein interface- IdentifierGenerator
- Overrides:
- generatein class- SequenceGenerator
 
- 
- Throws:
- HibernateException