类 TypeResolver
- java.lang.Object
-
- org.hibernate.type.TypeResolver
-
- 所有已实现的接口:
Serializable
@Deprecated public class TypeResolver extends Object implements Serializable
已过时。(since 5.3) No replacement, access to and handling of Types will be much different in 6.0Acts as the contract for getting types and as the mediator betweenBasicTypeRegistryandTypeFactory.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 TypeResolver(TypeConfiguration typeConfiguration, TypeFactory typeFactory)已过时。
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 BasicTypebasic(String name)已过时。Locate a Hibernate basic type given (one of) its registration names.TypeFactorygetTypeFactory()已过时。TypeheuristicType(String typeName)已过时。TypeheuristicType(String typeName, Properties parameters)已过时。Uses heuristics to deduce the properTypegiven a string naming the type or Java class.voidregisterTypeOverride(BasicType type)已过时。voidregisterTypeOverride(CompositeUserType type, String[] keys)已过时。voidregisterTypeOverride(UserType type, String[] keys)已过时。
-
-
-
构造器详细资料
-
TypeResolver
public TypeResolver(TypeConfiguration typeConfiguration, TypeFactory typeFactory)
已过时。
-
-
方法详细资料
-
registerTypeOverride
public void registerTypeOverride(BasicType type)
已过时。
-
registerTypeOverride
public void registerTypeOverride(CompositeUserType type, String[] keys)
已过时。
-
getTypeFactory
public TypeFactory getTypeFactory()
已过时。
-
basic
public BasicType basic(String name)
已过时。Locate a Hibernate basic type given (one of) its registration names.- 参数:
name- The registration name- 返回:
- The registered type
-
heuristicType
public Type heuristicType(String typeName) throws MappingException
已过时。- 参数:
typeName- The name (see heuristic algorithm discussion onheuristicType(String, Properties)).- 返回:
- The deduced type; may be null.
- 抛出:
MappingException- Can be thrown fromheuristicType(String, Properties)
-
heuristicType
public Type heuristicType(String typeName, Properties parameters) throws MappingException
已过时。Uses heuristics to deduce the properTypegiven a string naming the type or Java class. The search goes as follows:- search for a basic type with 'typeName' as a registration key
-
look for 'typeName' as a class name and
- if it names a
Typeimplementor, return an instance - if it names a
CompositeUserTypeor aUserType, return an instance of class wrapped into the appropriateTypeadapter - if it implements
Lifecycle, return the corresponding entity type - if it implements
Serializable, return the corresponding serializable type
- if it names a
- 参数:
typeName- The name (see heuristic algorithm above).parameters- Any parameters for the type. Only applied if built!- 返回:
- The deduced type; may be null.
- 抛出:
MappingException- Indicates a problem attempting to resolve 'typeName' as aClass
-
-