|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.TypeFactory
public final class TypeFactory
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.
Nested Class Summary | |
---|---|
static interface |
TypeFactory.TypeScope
|
Constructor Summary | |
---|---|
TypeFactory()
|
Method Summary | ||
---|---|---|
Type |
any(Type metaType,
Type identifierType)
|
|
CollectionType |
array(String role,
String propertyRef,
boolean embedded,
Class elementClass)
Deprecated. Use array(String, String, Class) instead.
See Jira issue: HHH-7771 |
|
CollectionType |
array(String role,
String propertyRef,
Class elementClass)
|
|
CollectionType |
bag(String role,
String propertyRef)
|
|
CollectionType |
bag(String role,
String propertyRef,
boolean embedded)
Deprecated. Use bag(String, String) instead.
See Jira issue: HHH-7771 |
|
Type |
byClass(Class clazz,
Properties parameters)
|
|
ComponentType |
component(ComponentMetamodel metamodel)
|
|
CustomType |
custom(Class<UserType> typeClass,
Properties parameters)
|
|
static CustomType |
custom(Class<UserType> typeClass,
Properties parameters,
TypeFactory.TypeScope scope)
Deprecated. Only for use temporary use by Hibernate |
|
CollectionType |
customCollection(String typeName,
Properties typeParameters,
String role,
String propertyRef)
|
|
CollectionType |
customCollection(String typeName,
Properties typeParameters,
String role,
String propertyRef,
boolean embedded)
Deprecated. Use customCollection(String, java.util.Properties, String, String)
instead.
See Jira issue: HHH-7771 |
|
CompositeCustomType |
customComponent(Class<CompositeUserType> typeClass,
Properties parameters)
|
|
static CompositeCustomType |
customComponent(Class<CompositeUserType> typeClass,
Properties parameters,
TypeFactory.TypeScope scope)
Deprecated. Only for use temporary use by Hibernate |
|
EmbeddedComponentType |
embeddedComponent(ComponentMetamodel metamodel)
|
|
CollectionType |
idbag(String role,
String propertyRef)
|
|
CollectionType |
idbag(String role,
String propertyRef,
boolean embedded)
Deprecated. Use idbag(String, String) instead.
See Jira issue: HHH-7771 |
|
static void |
injectParameters(Object type,
Properties parameters)
|
|
void |
injectSessionFactory(SessionFactoryImplementor factory)
|
|
CollectionType |
list(String role,
String propertyRef)
|
|
CollectionType |
list(String role,
String propertyRef,
boolean embedded)
Deprecated. Use list(String, String) instead.
See Jira issue: HHH-7771 |
|
EntityType |
manyToOne(String persistentClass)
|
|
EntityType |
manyToOne(String persistentClass,
boolean lazy)
|
|
EntityType |
manyToOne(String persistentClass,
boolean referenceToPrimaryKey,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
boolean ignoreNotFound,
boolean isLogicalOneToOne)
|
|
EntityType |
manyToOne(String persistentClass,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
boolean ignoreNotFound,
boolean isLogicalOneToOne)
Deprecated. Use manyToOne(String, boolean, String, boolean, boolean, boolean, boolean) instead. |
|
EntityType |
manyToOne(String persistentClass,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
boolean isEmbeddedInXML,
boolean ignoreNotFound,
boolean isLogicalOneToOne)
Deprecated. Use manyToOne(String, boolean, String, boolean, boolean, boolean, boolean) instead.
See Jira issue: HHH-7771 |
|
CollectionType |
map(String role,
String propertyRef)
|
|
CollectionType |
map(String role,
String propertyRef,
boolean embedded)
Deprecated. Use map(String, String) instead.
See Jira issue: HHH-7771 |
|
EntityType |
oneToOne(String persistentClass,
ForeignKeyDirection foreignKeyType,
boolean referenceToPrimaryKey,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
String entityName,
String propertyName)
|
|
EntityType |
oneToOne(String persistentClass,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
boolean isEmbeddedInXML,
String entityName,
String propertyName)
Deprecated. Use #oneToOne(String, ForeignKeyDirection, String, boolean, boolean, String, String, boolean) instead.
See Jira issue: HHH-7771 |
|
EntityType |
oneToOne(String persistentClass,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
String entityName,
String propertyName)
Deprecated. Use #oneToOne(String, ForeignKeyDirection, String, boolean, boolean, String, String, boolean) instead. |
|
CollectionType |
orderedMap(String role,
String propertyRef)
|
|
CollectionType |
orderedMap(String role,
String propertyRef,
boolean embedded)
Deprecated. Use orderedMap(String, String) instead.
See Jira issue: HHH-7771 |
|
CollectionType |
orderedSet(String role,
String propertyRef)
|
|
CollectionType |
orderedSet(String role,
String propertyRef,
boolean embedded)
Deprecated. Use orderedSet(String, String) instead.
See Jira issue: HHH-7771 |
|
SessionFactoryImplementor |
resolveSessionFactory()
|
|
static
|
serializable(Class<T> serializableClass)
Build a SerializableType from the given Serializable class. |
|
CollectionType |
set(String role,
String propertyRef)
|
|
CollectionType |
set(String role,
String propertyRef,
boolean embedded)
Deprecated. Use set(String, String) instead.
See Jira issue: HHH-7771 |
|
CollectionType |
sortedMap(String role,
String propertyRef,
boolean embedded,
Comparator comparator)
Deprecated. Use sortedMap(String, String, java.util.Comparator) instead.
See Jira issue: HHH-7771 |
|
CollectionType |
sortedMap(String role,
String propertyRef,
Comparator comparator)
|
|
CollectionType |
sortedSet(String role,
String propertyRef,
boolean embedded,
Comparator comparator)
Deprecated. Use sortedSet(String, String, java.util.Comparator) instead.
See Jira issue: HHH-7771 |
|
CollectionType |
sortedSet(String role,
String propertyRef,
Comparator comparator)
|
|
EntityType |
specialOneToOne(String persistentClass,
ForeignKeyDirection foreignKeyType,
boolean referenceToPrimaryKey,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
String entityName,
String propertyName)
|
|
EntityType |
specialOneToOne(String persistentClass,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName,
boolean lazy,
boolean unwrapProxy,
String entityName,
String propertyName)
Deprecated. Use #specialOneToOne(String, ForeignKeyDirection, String, boolean, boolean, String, String, boolean) instead. |
|
Type |
type(Class<Type> typeClass,
Properties parameters)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeFactory()
Method Detail |
---|
public void injectSessionFactory(SessionFactoryImplementor factory)
public SessionFactoryImplementor resolveSessionFactory()
public Type byClass(Class clazz, Properties parameters)
public Type type(Class<Type> typeClass, Properties parameters)
public static void injectParameters(Object type, Properties parameters)
public CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters)
@Deprecated public static CompositeCustomType customComponent(Class<CompositeUserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)
Hibernate
@Deprecated public CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef, boolean embedded)
customCollection(String, java.util.Properties, String, String)
instead.
See Jira issue: HHH-7771
public CollectionType customCollection(String typeName, Properties typeParameters, String role, String propertyRef)
public CustomType custom(Class<UserType> typeClass, Properties parameters)
@Deprecated public static CustomType custom(Class<UserType> typeClass, Properties parameters, TypeFactory.TypeScope scope)
Hibernate
public static <T extends Serializable> SerializableType<T> serializable(Class<T> serializableClass)
SerializableType
from the given Serializable
class.
T
- The actual class type (extends Serializable)serializableClass
- The Serializable
class.
SerializableType
@Deprecated public EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean isEmbeddedInXML, String entityName, String propertyName)
#oneToOne(String, ForeignKeyDirection, String, boolean, boolean, String, String, boolean)
instead.
See Jira issue: HHH-7771
@Deprecated public EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
#oneToOne(String, ForeignKeyDirection, String, boolean, boolean, String, String, boolean)
instead.
public EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
@Deprecated public EntityType specialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
#specialOneToOne(String, ForeignKeyDirection, String, boolean, boolean, String, String, boolean)
instead.
public EntityType specialOneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, String entityName, String propertyName)
public EntityType manyToOne(String persistentClass)
public EntityType manyToOne(String persistentClass, boolean lazy)
@Deprecated public EntityType manyToOne(String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean isEmbeddedInXML, boolean ignoreNotFound, boolean isLogicalOneToOne)
manyToOne(String, boolean, String, boolean, boolean, boolean, boolean)
instead.
See Jira issue: HHH-7771
@Deprecated public EntityType manyToOne(String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)
manyToOne(String, boolean, String, boolean, boolean, boolean, boolean)
instead.
public EntityType manyToOne(String persistentClass, boolean referenceToPrimaryKey, String uniqueKeyPropertyName, boolean lazy, boolean unwrapProxy, boolean ignoreNotFound, boolean isLogicalOneToOne)
@Deprecated public CollectionType array(String role, String propertyRef, boolean embedded, Class elementClass)
array(String, String, Class)
instead.
See Jira issue: HHH-7771
public CollectionType array(String role, String propertyRef, Class elementClass)
@Deprecated public CollectionType list(String role, String propertyRef, boolean embedded)
list(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType list(String role, String propertyRef)
@Deprecated public CollectionType bag(String role, String propertyRef, boolean embedded)
bag(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType bag(String role, String propertyRef)
@Deprecated public CollectionType idbag(String role, String propertyRef, boolean embedded)
idbag(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType idbag(String role, String propertyRef)
@Deprecated public CollectionType map(String role, String propertyRef, boolean embedded)
map(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType map(String role, String propertyRef)
@Deprecated public CollectionType orderedMap(String role, String propertyRef, boolean embedded)
orderedMap(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType orderedMap(String role, String propertyRef)
@Deprecated public CollectionType sortedMap(String role, String propertyRef, boolean embedded, Comparator comparator)
sortedMap(String, String, java.util.Comparator)
instead.
See Jira issue: HHH-7771
public CollectionType sortedMap(String role, String propertyRef, Comparator comparator)
@Deprecated public CollectionType set(String role, String propertyRef, boolean embedded)
set(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType set(String role, String propertyRef)
@Deprecated public CollectionType orderedSet(String role, String propertyRef, boolean embedded)
orderedSet(String, String)
instead.
See Jira issue: HHH-7771
public CollectionType orderedSet(String role, String propertyRef)
@Deprecated public CollectionType sortedSet(String role, String propertyRef, boolean embedded, Comparator comparator)
sortedSet(String, String, java.util.Comparator)
instead.
See Jira issue: HHH-7771
public CollectionType sortedSet(String role, String propertyRef, Comparator comparator)
public ComponentType component(ComponentMetamodel metamodel)
public EmbeddedComponentType embeddedComponent(ComponentMetamodel metamodel)
public Type any(Type metaType, Type identifierType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |