public class TypeLocatorImpl extends Object implements TypeHelper, Serializable
TypeHelper| Constructor and Description | 
|---|
TypeLocatorImpl(TypeResolver typeResolver)  | 
| Modifier and Type | Method and Description | 
|---|---|
Type | 
any(Type metaType,
   Type identifierType)
Retrieve the type representing an ANY mapping. 
 | 
BasicType | 
basic(Class javaType)
Convenience form of  
TypeHelper.basic(String). | 
BasicType | 
basic(String name)
Retrieve the basic type registered against the given name. 
 | 
Type | 
custom(Class userTypeClass)
Retrieve the type for the given user-type class ( 
UserType or
 CompositeUserType). | 
Type | 
custom(Class userTypeClass,
      Properties parameters)
Retrieve the type for the given user-type class ( 
UserType or
 CompositeUserType). | 
Type | 
entity(Class entityClass)
Retrieve a type representing the given entity. 
 | 
Type | 
entity(String entityName)
Retrieve a type representing the given entity. 
 | 
Type | 
heuristicType(String name)
Uses heuristics to deduce the proper  
Type given a string naming the type or Java class. | 
public TypeLocatorImpl(TypeResolver typeResolver)
public BasicType basic(String name)
TypeHelperbasic in interface TypeHelpername - The name of the basic type to retrievepublic BasicType basic(Class javaType)
TypeHelperTypeHelper.basic(String).  The intended use of this is something like
 basic(Integer.class) or basic(int.class)basic in interface TypeHelperjavaType - The java type for which to retrieve the type instance.public Type heuristicType(String name)
TypeHelperType given a string naming the type or Java class.
 
 See TypeResolver.heuristicType(java.lang.String) for a discussion of the
 heuristic algorithm.heuristicType in interface TypeHelpername - The name of the type or Java classTypeResolver.heuristicType(java.lang.String)public Type entity(Class entityClass)
TypeHelperentity in interface TypeHelperentityClass - The entity Java type.public Type entity(String entityName)
TypeHelperentity in interface TypeHelperentityName - The entity name.public Type custom(Class userTypeClass)
TypeHelperUserType or
 CompositeUserType).custom in interface TypeHelperuserTypeClass - The user type classpublic Type custom(Class userTypeClass, Properties parameters)
TypeHelperUserType or
 CompositeUserType).custom in interface TypeHelperuserTypeClass - The user type classparameters - Configuration properties.public Type any(Type metaType, Type identifierType)
TypeHelperany in interface TypeHelpermetaType - The meta type for the ANYidentifierType - The identifier type for the ANYCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.