public interface TypeHelper
Type instances associated with the SessionFactory.
This is intended for use by application developers.| 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
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. |
BasicType basic(String name)
name - The name of the basic type to retrieveBasicType 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 classTypeResolver.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 classType custom(Class userTypeClass, Properties properties)
UserType or
CompositeUserType).userTypeClass - The user type classproperties - Configuration properties.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.