程序包 org.hibernate.id
接口 UUIDGenerationStrategy
-
- 所有超级接口:
Serializable
public interface UUIDGenerationStrategy extends Serializable
A strategy for generating a variant 2UUIDvalue.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 UUIDgenerateUUID(SharedSessionContractImplementor session)Generate the UUID.intgetGeneratedVersion()Which variant, according to IETF RFC 4122, of UUID does this strategy generate?
-
-
-
方法详细资料
-
getGeneratedVersion
int getGeneratedVersion()
Which variant, according to IETF RFC 4122, of UUID does this strategy generate? RFC 4122 defines 5 variants (though it only describes algorithms to generate 4):- 1 = time based
- 2 = DCE based using POSIX UIDs
- 3 = name based (md5 hash)
- 4 = random numbers based
- 5 = name based (sha-1 hash)
- 返回:
- The supported generation version
-
generateUUID
UUID generateUUID(SharedSessionContractImplementor session)
Generate the UUID.- 参数:
session- The session asking for the generation- 返回:
- The generated UUID.
-
-