程序包 org.hibernate.id
类 AbstractUUIDGenerator
- java.lang.Object
-
- org.hibernate.id.AbstractUUIDGenerator
-
- 所有已实现的接口:
IdentifierGenerator
- 直接已知子类:
UUIDHexGenerator
public abstract class AbstractUUIDGenerator extends Object implements IdentifierGenerator
The base class for identifier generators that use a UUID algorithm. This class implements the algorithm, subclasses define the identifier format.- 作者:
- Gavin King
- 另请参阅:
UUIDHexGenerator
-
-
字段概要
-
从接口继承的字段 org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
构造器概要
构造器 构造器 说明 AbstractUUIDGenerator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected shortgetCount()Unique in a millisecond for this JVM instance (unless there are > Short.MAX_VALUE instances created in a millisecond)protected shortgetHiTime()Unique down to millisecondprotected intgetIP()Unique in a local networkprotected intgetJVM()Unique across JVMs on this machine (unless they load this class in the same quater second - very unlikely)protected intgetLoTime()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.IdentifierGenerator
generate, supportsJdbcBatchInserts
-
-
-
-
方法详细资料
-
getJVM
protected int getJVM()
Unique across JVMs on this machine (unless they load this class in the same quater second - very unlikely)
-
getCount
protected short getCount()
Unique in a millisecond for this JVM instance (unless there are > Short.MAX_VALUE instances created in a millisecond)
-
getIP
protected int getIP()
Unique in a local network
-
getHiTime
protected short getHiTime()
Unique down to millisecond
-
getLoTime
protected int getLoTime()
-
-