public class

TypeLocatorImpl

extends Object
implements Serializable TypeHelper
java.lang.Object
   ↳ org.hibernate.impl.TypeLocatorImpl

Class Overview

Implementation of TypeHelper

Summary

Public Constructors
TypeLocatorImpl(TypeResolver typeResolver)
Public Methods
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, Properties parameters)
Retrieve the type for the given user-type class (UserType or CompositeUserType).
Type custom(Class userTypeClass)
Retrieve the type for the given user-type class (UserType or CompositeUserType).
Type entity(String entityName)
Retrieve a type representing the given entity.
Type entity(Class entityClass)
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.TypeHelper

Public Constructors

public TypeLocatorImpl (TypeResolver typeResolver)

Public Methods

public Type any (Type metaType, Type identifierType)

public BasicType basic (Class javaType)

Convenience form of basic(String). The intended use of this is something like basic(Integer.class) or basic(int.class)

Parameters
javaType The java type for which to retrieve the type instance.
Returns
  • The basic type, or null.

public BasicType basic (String name)

Retrieve the basic type registered against the given name.

Parameters
name The name of the basic type to retrieve
Returns
  • The basic type, or null.

public Type custom (Class userTypeClass, Properties parameters)

Retrieve the type for the given user-type class (UserType or CompositeUserType).

Parameters
userTypeClass The user type class
parameters Configuration properties.
Returns
  • The type, or null

public Type custom (Class userTypeClass)

Retrieve the type for the given user-type class (UserType or CompositeUserType).

Parameters
userTypeClass The user type class
Returns
  • The type, or null

public Type entity (String entityName)

Retrieve a type representing the given entity.

Parameters
entityName The entity name.
Returns
  • The type, or null

public Type entity (Class entityClass)

Retrieve a type representing the given entity.

Parameters
entityClass The entity Java type.
Returns
  • The type, or null

public Type heuristicType (String name)

Uses heuristics to deduce the proper Type given a string naming the type or Java class.

See heuristicType(java.lang.String) for a discussion of the heuristic algorithm.

Parameters
name The name of the type or Java class
Returns
  • The deduced type, or null.