类 TypeLocatorImpl
- java.lang.Object
-
- org.hibernate.internal.TypeLocatorImpl
-
- 所有已实现的接口:
Serializable,TypeHelper
public class TypeLocatorImpl extends Object implements TypeHelper, Serializable
Implementation ofTypeHelper- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 TypeLocatorImpl(TypeResolver typeResolver)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Typeany(Type metaType, Type identifierType)Retrieve the type representing an ANY mapping.BasicTypebasic(Class javaType)Convenience form ofTypeHelper.basic(String).BasicTypebasic(String name)Retrieve the basic type registered against the given name.Typecustom(Class userTypeClass)Retrieve the type for the given user-type class (UserTypeorCompositeUserType).Typecustom(Class userTypeClass, Properties parameters)Retrieve the type for the given user-type class (UserTypeorCompositeUserType).Typeentity(Class entityClass)Retrieve a type representing the given entity.Typeentity(String entityName)Retrieve a type representing the given entity.TypeheuristicType(String name)Uses heuristics to deduce the properTypegiven a string naming the type or Java class.
-
-
-
构造器详细资料
-
TypeLocatorImpl
public TypeLocatorImpl(TypeResolver typeResolver)
-
-
方法详细资料
-
basic
public BasicType basic(String name)
从接口复制的说明:TypeHelperRetrieve the basic type registered against the given name.- 指定者:
basic在接口中TypeHelper- 参数:
name- The name of the basic type to retrieve- 返回:
- The basic type, or null.
-
basic
public BasicType basic(Class javaType)
从接口复制的说明:TypeHelperConvenience form ofTypeHelper.basic(String). The intended use of this is something likebasic(Integer.class)orbasic(int.class)- 指定者:
basic在接口中TypeHelper- 参数:
javaType- The java type for which to retrieve the type instance.- 返回:
- The basic type, or null.
-
heuristicType
public Type heuristicType(String name)
从接口复制的说明:TypeHelperUses heuristics to deduce the properTypegiven a string naming the type or Java class. SeeTypeResolver.heuristicType(java.lang.String)for a discussion of the heuristic algorithm.- 指定者:
heuristicType在接口中TypeHelper- 参数:
name- The name of the type or Java class- 返回:
- The deduced type, or null.
- 另请参阅:
TypeResolver.heuristicType(java.lang.String)
-
entity
public Type entity(Class entityClass)
从接口复制的说明:TypeHelperRetrieve a type representing the given entity.- 指定者:
entity在接口中TypeHelper- 参数:
entityClass- The entity Java type.- 返回:
- The type, or null
-
entity
public Type entity(String entityName)
从接口复制的说明:TypeHelperRetrieve a type representing the given entity.- 指定者:
entity在接口中TypeHelper- 参数:
entityName- The entity name.- 返回:
- The type, or null
-
custom
public Type custom(Class userTypeClass)
从接口复制的说明:TypeHelperRetrieve the type for the given user-type class (UserTypeorCompositeUserType).- 指定者:
custom在接口中TypeHelper- 参数:
userTypeClass- The user type class- 返回:
- The type, or null
-
custom
public Type custom(Class userTypeClass, Properties parameters)
从接口复制的说明:TypeHelperRetrieve the type for the given user-type class (UserTypeorCompositeUserType).- 指定者:
custom在接口中TypeHelper- 参数:
userTypeClass- The user type classparameters- Configuration properties.- 返回:
- The type, or null
-
any
public Type any(Type metaType, Type identifierType)
从接口复制的说明:TypeHelperRetrieve the type representing an ANY mapping.- 指定者:
any在接口中TypeHelper- 参数:
metaType- The meta type for the ANYidentifierType- The identifier type for the ANY- 返回:
- The type, or null
-
-