|
||||||||||
| 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(java.lang.Class javaType)
Convenience form of basic(String). |
BasicType |
basic(java.lang.String name)
Retrieve the basic type registered against the given name. |
Type |
custom(java.lang.Class userTypeClass)
Retrieve the type for the given user-type class ( UserType or
CompositeUserType). |
Type |
custom(java.lang.Class userTypeClass,
java.util.Properties properties)
Retrieve the type for the given user-type class ( UserType or
CompositeUserType). |
Type |
entity(java.lang.Class entityClass)
Retrieve a type representing the given entity. |
Type |
entity(java.lang.String entityName)
Retrieve a type representing the given entity. |
Type |
heuristicType(java.lang.String name)
Uses heuristics to deduce the proper Type given a string naming the type or Java class. |
| Method Detail |
|---|
BasicType basic(java.lang.String name)
name - The name of the basic type to retrieve
BasicType basic(java.lang.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(java.lang.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(java.lang.Class entityClass)
entityClass - The entity Java type.
Type entity(java.lang.String entityName)
entityName - The entity name.
Type custom(java.lang.Class userTypeClass)
UserType or
CompositeUserType).
userTypeClass - The user type class
Type custom(java.lang.Class userTypeClass,
java.util.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 | |||||||||