public final class

TypeFactory

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.type.TypeFactory

Class Overview

Used internally to build instances of Type, specifically it builds instances of Used internally to obtain instances of Type. Applications should use static methods and constants on org.hibernate.Hibernate.

Summary

Nested Classes
interface TypeFactory.TypeScope  
Public Constructors
TypeFactory()
Public Methods
Type any(Type metaType, Type identifierType)
CollectionType array(String role, String propertyRef, boolean embedded, Class elementClass)
CollectionType bag(String role, String propertyRef, boolean embedded)
Type byClass(Class clazz, Properties parameters)
ComponentType component(ComponentMetamodel metamodel)
static CustomType custom(Class<UserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)
This method is deprecated. Only for use temporary use by Hibernate
CustomType custom(Class<UserType> typeClass, Properties parameters)
CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef, boolean embedded)
static CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)
This method is deprecated. Only for use temporary use by Hibernate
CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters)
EmbeddedComponentType embeddedComponent(ComponentMetamodel metamodel)
CollectionType idbag(String role, String propertyRef, boolean embedded)
static void injectParameters(Object type, Properties parameters)
void injectSessionFactory(SessionFactoryImplementor factory)
CollectionType list(String role, String propertyRef, boolean embedded)
EntityType manyToOne(String persistentClass, boolean lazy)
EntityType manyToOne(String persistentClass)
EntityType manyToOne(String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean isEmbeddedInXML, boolean ignoreNotFound, boolean isLogicalOneToOne)
CollectionType map(String role, String propertyRef, boolean embedded)
EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean isEmbeddedInXML, String entityName, String propertyName)
CollectionType orderedMap(String role, String propertyRef, boolean embedded)
CollectionType orderedSet(String role, String propertyRef, boolean embedded)
static <T extends Serializable> SerializableType<T> serializable(Class<T> serializableClass)
Build a SerializableType from the given Serializable class.
CollectionType set(String role, String propertyRef, boolean embedded)
CollectionType sortedMap(String role, String propertyRef, boolean embedded, Comparator comparator)
CollectionType sortedSet(String role, String propertyRef, boolean embedded, Comparator comparator)
EntityType specialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
Type type(Class<Type> typeClass, Properties parameters)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TypeFactory ()

Public Methods

public Type any (Type metaType, Type identifierType)

public CollectionType array (String role, String propertyRef, boolean embedded, Class elementClass)

public CollectionType bag (String role, String propertyRef, boolean embedded)

public Type byClass (Class clazz, Properties parameters)

public ComponentType component (ComponentMetamodel metamodel)

public static CustomType custom (Class<UserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)

This method is deprecated.
Only for use temporary use by Hibernate

public CustomType custom (Class<UserType> typeClass, Properties parameters)

public CollectionType customCollection (String typeName, Properties typeParameters, String role, String propertyRef, boolean embedded)

public static CompositeCustomType customComponent (Class<CompositeUserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)

This method is deprecated.
Only for use temporary use by Hibernate

public CompositeCustomType customComponent (Class<CompositeUserType> typeClass, Properties parameters)

public EmbeddedComponentType embeddedComponent (ComponentMetamodel metamodel)

public CollectionType idbag (String role, String propertyRef, boolean embedded)

public static void injectParameters (Object type, Properties parameters)

public void injectSessionFactory (SessionFactoryImplementor factory)

public CollectionType list (String role, String propertyRef, boolean embedded)

public EntityType manyToOne (String persistentClass, boolean lazy)

public EntityType manyToOne (String persistentClass)

public EntityType manyToOne (String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean isEmbeddedInXML, boolean ignoreNotFound, boolean isLogicalOneToOne)

public CollectionType map (String role, String propertyRef, boolean embedded)

public EntityType oneToOne (String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean isEmbeddedInXML, String entityName, String propertyName)

public CollectionType orderedMap (String role, String propertyRef, boolean embedded)

public CollectionType orderedSet (String role, String propertyRef, boolean embedded)

public static SerializableType<T> serializable (Class<T> serializableClass)

Build a SerializableType from the given Serializable class.

Parameters
serializableClass The Serializable class.
Returns

public CollectionType set (String role, String propertyRef, boolean embedded)

public CollectionType sortedMap (String role, String propertyRef, boolean embedded, Comparator comparator)

public CollectionType sortedSet (String role, String propertyRef, boolean embedded, Comparator comparator)

public EntityType specialOneToOne (String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)

public Type type (Class<Type> typeClass, Properties parameters)