|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.id.CounterGenerator
vm
An IdentifierGenerator that returns a long,
constructed from the system time and a counter value. Not safe
for use in a cluster!
IncrementGenerator
Constructor Summary | |
CounterGenerator()
Deprecated. |
Method Summary | |
Serializable |
generate(SessionImplementor cache,
Object obj)
Deprecated. Generate a new identifier. |
protected static short |
getCount()
Deprecated. |
static void |
main(String[] args)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CounterGenerator()
Method Detail |
protected static short getCount()
public Serializable generate(SessionImplementor cache, Object obj)
IdentifierGenerator
generate
in interface IdentifierGenerator
cache
- obj
- the entity or toplevel collection for which the id is being generated
public static void main(String[] args) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |