Package org.hibernate.type
Class TypeFactory
- java.lang.Object
-
- org.hibernate.type.TypeFactory
-
- All Implemented Interfaces:
java.io.Serializable,TypeBootstrapContext
@Deprecated public final class TypeFactory extends java.lang.Object implements java.io.Serializable, TypeBootstrapContext
Deprecated.UseTypeConfigurationinsteadUsed internally to build instances ofType, specifically it builds instances of Used internally to obtain instances of Type. Applications should use static methods and constants on org.hibernate.Hibernate.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTypeFactory.TypeScopeDeprecated.
-
Constructor Summary
Constructors Constructor Description TypeFactory(TypeConfiguration typeConfiguration)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Typeany(Type metaType, Type identifierType)Deprecated.useany(Type, Type, boolean)insteadTypeany(Type metaType, Type identifierType, boolean lazy)Deprecated.Get the AnyType with the specified parameters.CollectionTypearray(java.lang.String role, java.lang.String propertyRef, java.lang.Class elementClass)Deprecated.CollectionTypebag(java.lang.String role, java.lang.String propertyRef)Deprecated.TypebyClass(java.lang.Class clazz, java.util.Properties parameters)Deprecated.ComponentTypecomponent(ComponentMetamodel metamodel)Deprecated.CustomTypecustom(java.lang.Class<UserType> typeClass, java.util.Properties parameters)Deprecated.static CustomTypecustom(java.lang.Class<UserType> typeClass, java.util.Properties parameters, TypeFactory.TypeScope scope)Deprecated.Only for use temporary use byHibernateCollectionTypecustomCollection(java.lang.String typeName, java.util.Properties typeParameters, java.lang.String role, java.lang.String propertyRef)Deprecated.CompositeCustomTypecustomComponent(java.lang.Class<CompositeUserType> typeClass, java.util.Properties parameters)Deprecated.static CompositeCustomTypecustomComponent(java.lang.Class<CompositeUserType> typeClass, java.util.Properties parameters, TypeFactory.TypeScope scope)Deprecated.Only for use temporary use byHibernateEmbeddedComponentTypeembeddedComponent(ComponentMetamodel metamodel)Deprecated.java.util.Map<java.lang.String,java.lang.Object>getConfigurationSettings()Deprecated.CollectionTypeidbag(java.lang.String role, java.lang.String propertyRef)Deprecated.static voidinjectParameters(java.lang.Object type, java.util.Properties parameters)Deprecated.CollectionTypelist(java.lang.String role, java.lang.String propertyRef)Deprecated.EntityTypemanyToOne(java.lang.String persistentClass)Deprecated.EntityTypemanyToOne(java.lang.String persistentClass, boolean lazy)Deprecated.EntityTypemanyToOne(java.lang.String persistentClass, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, NotFoundAction notFoundAction, boolean isLogicalOneToOne)Deprecated.EntityTypemanyToOne(java.lang.String persistentClass, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, java.lang.String propertyName, boolean lazy, boolean unwrapProxy, NotFoundAction notFoundAction, boolean isLogicalOneToOne)Deprecated.EntityTypemanyToOne(java.lang.String persistentClass, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, NotFoundAction notFoundAction, boolean isLogicalOneToOne)Deprecated.CollectionTypemap(java.lang.String role, java.lang.String propertyRef)Deprecated.EntityTypeoneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName)Deprecated.EntityTypeoneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName, boolean constrained)Deprecated.CollectionTypeorderedMap(java.lang.String role, java.lang.String propertyRef)Deprecated.CollectionTypeorderedSet(java.lang.String role, java.lang.String propertyRef)Deprecated.SessionFactoryImplementorresolveSessionFactory()Deprecated.static <T extends java.io.Serializable>
SerializableType<T>serializable(java.lang.Class<T> serializableClass)Deprecated.Build aSerializableTypefrom the givenSerializableclass.CollectionTypeset(java.lang.String role, java.lang.String propertyRef)Deprecated.CollectionTypesortedMap(java.lang.String role, java.lang.String propertyRef, java.util.Comparator comparator)Deprecated.CollectionTypesortedSet(java.lang.String role, java.lang.String propertyRef, java.util.Comparator comparator)Deprecated.EntityTypespecialOneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName)EntityTypespecialOneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName, boolean constrained)Deprecated.Typetype(java.lang.Class<Type> typeClass, java.util.Properties parameters)Deprecated.
-
-
-
Constructor Detail
-
TypeFactory
public TypeFactory(TypeConfiguration typeConfiguration)
Deprecated.
-
-
Method Detail
-
getConfigurationSettings
public java.util.Map<java.lang.String,java.lang.Object> getConfigurationSettings()
Deprecated.- Specified by:
getConfigurationSettingsin interfaceTypeBootstrapContext
-
resolveSessionFactory
public SessionFactoryImplementor resolveSessionFactory()
Deprecated.
-
byClass
public Type byClass(java.lang.Class clazz, java.util.Properties parameters)
Deprecated.
-
type
public Type type(java.lang.Class<Type> typeClass, java.util.Properties parameters)
Deprecated.
-
injectParameters
public static void injectParameters(java.lang.Object type, java.util.Properties parameters)Deprecated.
-
customComponent
public CompositeCustomType customComponent(java.lang.Class<CompositeUserType> typeClass, java.util.Properties parameters)
Deprecated.
-
customComponent
@Deprecated public static CompositeCustomType customComponent(java.lang.Class<CompositeUserType> typeClass, java.util.Properties parameters, TypeFactory.TypeScope scope)
Deprecated.Only for use temporary use byHibernate
-
customCollection
public CollectionType customCollection(java.lang.String typeName, java.util.Properties typeParameters, java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
custom
public CustomType custom(java.lang.Class<UserType> typeClass, java.util.Properties parameters)
Deprecated.
-
custom
@Deprecated public static CustomType custom(java.lang.Class<UserType> typeClass, java.util.Properties parameters, TypeFactory.TypeScope scope)
Deprecated.Only for use temporary use byHibernate
-
serializable
public static <T extends java.io.Serializable> SerializableType<T> serializable(java.lang.Class<T> serializableClass)
Deprecated.Build aSerializableTypefrom the givenSerializableclass.- Type Parameters:
T- The actual class type (extends Serializable)- Parameters:
serializableClass- TheSerializableclass.- Returns:
- The built
SerializableType
-
oneToOne
@Deprecated public EntityType oneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName)
Deprecated.
-
specialOneToOne
@Deprecated public EntityType specialOneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName)
-
oneToOne
public EntityType oneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName, boolean constrained)
Deprecated.
-
specialOneToOne
public EntityType specialOneToOne(java.lang.String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, java.lang.String entityName, java.lang.String propertyName, boolean constrained)
Deprecated.
-
manyToOne
public EntityType manyToOne(java.lang.String persistentClass)
Deprecated.
-
manyToOne
public EntityType manyToOne(java.lang.String persistentClass, boolean lazy)
Deprecated.
-
manyToOne
@Deprecated public EntityType manyToOne(java.lang.String persistentClass, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, NotFoundAction notFoundAction, boolean isLogicalOneToOne)
Deprecated.
-
manyToOne
@Deprecated public EntityType manyToOne(java.lang.String persistentClass, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, NotFoundAction notFoundAction, boolean isLogicalOneToOne)
Deprecated.
-
manyToOne
public EntityType manyToOne(java.lang.String persistentClass, boolean referenceToPrimaryKey, java.lang.String uniqueKeyPropertyName, java.lang.String propertyName, boolean lazy, boolean unwrapProxy, NotFoundAction notFoundAction, boolean isLogicalOneToOne)
Deprecated.
-
array
public CollectionType array(java.lang.String role, java.lang.String propertyRef, java.lang.Class elementClass)
Deprecated.
-
list
public CollectionType list(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
bag
public CollectionType bag(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
idbag
public CollectionType idbag(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
map
public CollectionType map(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
orderedMap
public CollectionType orderedMap(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
sortedMap
public CollectionType sortedMap(java.lang.String role, java.lang.String propertyRef, java.util.Comparator comparator)
Deprecated.
-
set
public CollectionType set(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
orderedSet
public CollectionType orderedSet(java.lang.String role, java.lang.String propertyRef)
Deprecated.
-
sortedSet
public CollectionType sortedSet(java.lang.String role, java.lang.String propertyRef, java.util.Comparator comparator)
Deprecated.
-
component
public ComponentType component(ComponentMetamodel metamodel)
Deprecated.
-
embeddedComponent
public EmbeddedComponentType embeddedComponent(ComponentMetamodel metamodel)
Deprecated.
-
any
@Deprecated public Type any(Type metaType, Type identifierType)
Deprecated.useany(Type, Type, boolean)insteadGet the AnyType with the specified parameters.- Parameters:
metaType- meta typeidentifierType- identifier type- Returns:
- AnyType
-
-