Class TypeFactory

  • All Implemented Interfaces:
    java.io.Serializable, TypeBootstrapContext

    @Deprecated
    public final class TypeFactory
    extends java.lang.Object
    implements java.io.Serializable, TypeBootstrapContext
    Deprecated.
    Use TypeConfiguration instead
    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • TypeFactory

        public TypeFactory​(TypeConfiguration typeConfiguration)
        Deprecated.
    • Method Detail

      • 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.
      • 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.
      • serializable

        public static <T extends java.io.Serializable> SerializableType<T> serializable​(java.lang.Class<T> serializableClass)
        Deprecated.
        Build a SerializableType from the given Serializable class.
        Type Parameters:
        T - The actual class type (extends Serializable)
        Parameters:
        serializableClass - The Serializable class.
        Returns:
        The built SerializableType
      • 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

        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.
      • any

        @Deprecated
        public Type any​(Type metaType,
                        Type identifierType)
        Deprecated.
        Get the AnyType with the specified parameters.
        Parameters:
        metaType - meta type
        identifierType - identifier type
        Returns:
        AnyType
      • any

        public Type any​(Type metaType,
                        Type identifierType,
                        boolean lazy)
        Deprecated.
        Get the AnyType with the specified parameters.
        Parameters:
        metaType - meta type
        identifierType - identifier type
        lazy - is the underlying property lazy
        Returns:
        AnyType