类 TypeFactory
- java.lang.Object
-
- org.hibernate.type.TypeFactory
-
- 所有已实现的接口:
Serializable
@Deprecated public final class TypeFactory extends Object implements Serializable
已过时。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.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceTypeFactory.TypeScope已过时。UseTypeConfiguration/TypeConfiguration.Scopeinstead
-
构造器概要
构造器 构造器 说明 TypeFactory(TypeConfiguration typeConfiguration)已过时。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Typeany(Type metaType, Type identifierType)已过时。useany(Type, Type, boolean)insteadTypeany(Type metaType, Type identifierType, boolean lazy)已过时。Get the AnyType with the specified parameters.CollectionTypearray(String role, String propertyRef, Class elementClass)已过时。CollectionTypebag(String role, String propertyRef)已过时。TypebyClass(Class clazz, Properties parameters)已过时。ComponentTypecomponent(ComponentMetamodel metamodel)已过时。CustomTypecustom(Class<UserType> typeClass, Properties parameters)已过时。static CustomTypecustom(Class<UserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)已过时。Only for use temporary use byHibernateCollectionTypecustomCollection(String typeName, Properties typeParameters, String role, String propertyRef)已过时。CompositeCustomTypecustomComponent(Class<CompositeUserType> typeClass, Properties parameters)已过时。static CompositeCustomTypecustomComponent(Class<CompositeUserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)已过时。Only for use temporary use byHibernateEmbeddedComponentTypeembeddedComponent(ComponentMetamodel metamodel)已过时。CollectionTypeidbag(String role, String propertyRef)已过时。static voidinjectParameters(Object type, Properties parameters)已过时。CollectionTypelist(String role, String propertyRef)已过时。EntityTypemanyToOne(String persistentClass)已过时。EntityTypemanyToOne(String persistentClass, boolean lazy)已过时。EntityTypemanyToOne(String persistentClass, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)EntityTypemanyToOne(String persistentClass, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, String propertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)已过时。EntityTypemanyToOne(String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)已过时。CollectionTypemap(String role, String propertyRef)已过时。EntityTypeoneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)EntityTypeoneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName, boolean constrained)已过时。CollectionTypeorderedMap(String role, String propertyRef)已过时。CollectionTypeorderedSet(String role, String propertyRef)已过时。SessionFactoryImplementorresolveSessionFactory()已过时。static <T extends Serializable>
SerializableType<T>serializable(Class<T> serializableClass)已过时。Build aSerializableTypefrom the givenSerializableclass.CollectionTypeset(String role, String propertyRef)已过时。CollectionTypesortedMap(String role, String propertyRef, Comparator comparator)已过时。CollectionTypesortedSet(String role, String propertyRef, Comparator comparator)已过时。EntityTypespecialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)EntityTypespecialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName, boolean constrained)已过时。Typetype(Class<Type> typeClass, Properties parameters)已过时。
-
-
-
构造器详细资料
-
TypeFactory
public TypeFactory(TypeConfiguration typeConfiguration)
已过时。
-
-
方法详细资料
-
resolveSessionFactory
public SessionFactoryImplementor resolveSessionFactory()
已过时。
-
byClass
public Type byClass(Class clazz, Properties parameters)
已过时。
-
type
public Type type(Class<Type> typeClass, Properties parameters)
已过时。
-
injectParameters
public static void injectParameters(Object type, Properties parameters)
已过时。
-
customComponent
public CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters)
已过时。
-
customComponent
@Deprecated public static CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)
已过时。Only for use temporary use byHibernate
-
customCollection
public CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef)
已过时。
-
custom
public CustomType custom(Class<UserType> typeClass, Properties parameters)
已过时。
-
custom
@Deprecated public static CustomType custom(Class<UserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)
已过时。Only for use temporary use byHibernate
-
serializable
public static <T extends Serializable> SerializableType<T> serializable(Class<T> serializableClass)
已过时。Build aSerializableTypefrom the givenSerializableclass.- 类型参数:
T- The actual class type (extends Serializable)- 参数:
serializableClass- TheSerializableclass.- 返回:
- The built
SerializableType
-
oneToOne
@Deprecated public EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
-
specialOneToOne
@Deprecated public EntityType specialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
-
oneToOne
public EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName, boolean constrained)
已过时。
-
specialOneToOne
public EntityType specialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName, boolean constrained)
已过时。
-
manyToOne
public EntityType manyToOne(String persistentClass)
已过时。
-
manyToOne
public EntityType manyToOne(String persistentClass, boolean lazy)
已过时。
-
manyToOne
@Deprecated public EntityType manyToOne(String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)
已过时。
-
manyToOne
@Deprecated public EntityType manyToOne(String persistentClass, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)
-
manyToOne
public EntityType manyToOne(String persistentClass, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, String propertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)
已过时。
-
array
public CollectionType array(String role, String propertyRef, Class elementClass)
已过时。
-
list
public CollectionType list(String role, String propertyRef)
已过时。
-
bag
public CollectionType bag(String role, String propertyRef)
已过时。
-
idbag
public CollectionType idbag(String role, String propertyRef)
已过时。
-
map
public CollectionType map(String role, String propertyRef)
已过时。
-
orderedMap
public CollectionType orderedMap(String role, String propertyRef)
已过时。
-
sortedMap
public CollectionType sortedMap(String role, String propertyRef, Comparator comparator)
已过时。
-
set
public CollectionType set(String role, String propertyRef)
已过时。
-
orderedSet
public CollectionType orderedSet(String role, String propertyRef)
已过时。
-
sortedSet
public CollectionType sortedSet(String role, String propertyRef, Comparator comparator)
已过时。
-
component
public ComponentType component(ComponentMetamodel metamodel)
已过时。
-
embeddedComponent
public EmbeddedComponentType embeddedComponent(ComponentMetamodel metamodel)
已过时。
-
any
@Deprecated public Type any(Type metaType, Type identifierType)
已过时。useany(Type, Type, boolean)insteadGet the AnyType with the specified parameters.- 参数:
metaType- meta typeidentifierType- identifier type- 返回:
- AnyType
-
-