|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeHelper
Provides access to the various Type
instances associated with the SessionFactory
.
Method Summary | |
---|---|
Type |
any(Type metaType,
Type identifierType)
|
BasicType |
basic(Class javaType)
Convenience form of 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 properties)
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. |
Method Detail |
---|
BasicType basic(String name)
name
- The name of the basic type to retrieve
BasicType basic(Class javaType)
basic(String)
. The intended use of this is something like
basic(Integer.class)
or basic(int.class)
javaType
- The java type for which to retrieve the type instance.
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.
name
- The name of the type or Java class
TypeResolver.heuristicType(java.lang.String)
Type entity(Class entityClass)
entityClass
- The entity Java type.
Type entity(String entityName)
entityName
- The entity name.
Type custom(Class userTypeClass)
UserType
or
CompositeUserType
).
userTypeClass
- The user type class
Type custom(Class userTypeClass, Properties properties)
UserType
or
CompositeUserType
).
userTypeClass
- The user type classproperties
- Configuration properties.
Type any(Type metaType, Type identifierType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |