|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.impl.TypeLocatorImpl
public class TypeLocatorImpl
Implementation of TypeHelper
entity(java.lang.Class)
, custom(java.lang.Class)
and any(org.hibernate.type.Type, org.hibernate.type.Type)
?Constructor Summary | |
---|---|
TypeLocatorImpl(TypeResolver typeResolver)
|
Method Summary | |
---|---|
Type |
any(Type metaType,
Type identifierType)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeLocatorImpl(TypeResolver typeResolver)
Method Detail |
---|
public BasicType basic(String name)
basic
in interface TypeHelper
name
- The name of the basic type to retrieve
public BasicType basic(Class javaType)
TypeHelper.basic(String)
. The intended use of this is something like
basic(Integer.class)
or basic(int.class)
basic
in interface TypeHelper
javaType
- The java type for which to retrieve the type instance.
public Type heuristicType(String name)
Type
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 TypeHelper
name
- The name of the type or Java class
TypeResolver.heuristicType(java.lang.String)
public Type entity(Class entityClass)
entity
in interface TypeHelper
entityClass
- The entity Java type.
public Type entity(String entityName)
entity
in interface TypeHelper
entityName
- The entity name.
public Type custom(Class userTypeClass)
UserType
or
CompositeUserType
).
custom
in interface TypeHelper
userTypeClass
- The user type class
public Type custom(Class userTypeClass, Properties parameters)
UserType
or
CompositeUserType
).
custom
in interface TypeHelper
userTypeClass
- The user type classparameters
- Configuration properties.
public Type any(Type metaType, Type identifierType)
any
in interface TypeHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |