类 StandardRandomStrategy
- java.lang.Object
-
- org.hibernate.id.uuid.StandardRandomStrategy
-
- 所有已实现的接口:
Serializable,UUIDGenerationStrategy
public class StandardRandomStrategy extends Object implements UUIDGenerationStrategy
Implements a "random" UUID generation strategy as defined by theUUID.randomUUID()method.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static StandardRandomStrategyINSTANCE
-
构造器概要
构造器 构造器 说明 StandardRandomStrategy()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 UUIDgenerateUUID(SharedSessionContractImplementor session)Delegates toUUID.randomUUID()intgetGeneratedVersion()A variant 4 (random) strategy
-
-
-
字段详细资料
-
INSTANCE
public static final StandardRandomStrategy INSTANCE
-
-
方法详细资料
-
getGeneratedVersion
public int getGeneratedVersion()
A variant 4 (random) strategy- 指定者:
getGeneratedVersion在接口中UUIDGenerationStrategy- 返回:
- The supported generation version
-
generateUUID
public UUID generateUUID(SharedSessionContractImplementor session)
Delegates toUUID.randomUUID()- 指定者:
generateUUID在接口中UUIDGenerationStrategy- 参数:
session- The session asking for the generation- 返回:
- The generated UUID.
-
-