Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » type » [javadoc | source]
org.hibernate.type
public final class: TypeFactory [javadoc | source]
java.lang.Object
   org.hibernate.type.TypeFactory
Used internally to obtain instances of Type. Applications should use static methods and constants on org.hibernate.Hibernate.
Method from org.hibernate.type.TypeFactory Summary:
array,   assemble,   bag,   basic,   beforeAssemble,   customCollection,   customCollection,   deepCopy,   disassemble,   findDirty,   findModified,   heuristicType,   heuristicType,   idbag,   injectParameters,   list,   manyToOne,   manyToOne,   manyToOne,   map,   oneToOne,   orderedMap,   orderedSet,   replace,   replace,   replaceAssociations,   set,   sortedMap,   sortedSet
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.type.TypeFactory Detail:
 public static CollectionType array(String role,
    String propertyRef,
    boolean embedded,
    Class elementClass) 
 public static Object[] assemble(Serializable[] row,
    Type[] types,
    SessionImplementor session,
    Object owner) 
 public static CollectionType bag(String role,
    String propertyRef,
    boolean embedded) 
 public static Type basic(String name) 
    Given the name of a Hibernate basic type, return an instance of org.hibernate.type.Type.
 public static  void beforeAssemble(Serializable[] row,
    Type[] types,
    SessionImplementor session) 
 public static CollectionType customCollection(String typeName,
    String role,
    String propertyRef,
    boolean embedded) 
Deprecated! Use - #customCollection(String, java.util.Properties, String, String, boolean) instead

    The legacy contract.
 public static CollectionType customCollection(String typeName,
    Properties typeParameters,
    String role,
    String propertyRef,
    boolean embedded) 
 public static  void deepCopy(Object[] values,
    Type[] types,
    boolean[] copy,
    Object[] target,
    SessionImplementor session) 
    Deep copy a series of values from one array to another...
 public static Serializable[] disassemble(Object[] row,
    Type[] types,
    boolean[] nonCacheable,
    SessionImplementor session,
    Object owner) 
 public static int[] findDirty(StandardProperty[] properties,
    Object[] currentState,
    Object[] previousState,
    boolean[][] includeColumns,
    boolean anyUninitializedProperties,
    SessionImplementor session) 
    Determine if any of the given field values are dirty, returning an array containing indices of the dirty fields.

    If it is determined that no fields are dirty, null is returned.

 public static int[] findModified(StandardProperty[] properties,
    Object[] currentState,
    Object[] previousState,
    boolean[][] includeColumns,
    boolean anyUninitializedProperties,
    SessionImplementor session) 
    Determine if any of the given field values are modified, returning an array containing indices of the modified fields.

    If it is determined that no fields are dirty, null is returned.

 public static Type heuristicType(String typeName) throws MappingException 
    Uses heuristics to deduce a Hibernate type given a string naming the type or Java class. Return an instance of org.hibernate.type.Type.
 public static Type heuristicType(String typeName,
    Properties parameters) throws MappingException 
    Uses heuristics to deduce a Hibernate type given a string naming the type or Java class. Return an instance of org.hibernate.type.Type.
 public static CollectionType idbag(String role,
    String propertyRef,
    boolean embedded) 
 public static  void injectParameters(Object type,
    Properties parameters) 
 public static CollectionType list(String role,
    String propertyRef,
    boolean embedded) 
 public static EntityType manyToOne(String persistentClass) 
    A many-to-one association type for the given class
 public static EntityType manyToOne(String persistentClass,
    boolean lazy) 
    A many-to-one association type for the given class
 public static EntityType manyToOne(String persistentClass,
    String uniqueKeyPropertyName,
    boolean lazy,
    boolean unwrapProxy,
    boolean isEmbeddedInXML,
    boolean ignoreNotFound) 
    A many-to-one association type for the given class
 public static CollectionType map(String role,
    String propertyRef,
    boolean embedded) 
 public static EntityType oneToOne(String persistentClass,
    ForeignKeyDirection foreignKeyType,
    String uniqueKeyPropertyName,
    boolean lazy,
    boolean unwrapProxy,
    boolean isEmbeddedInXML,
    String entityName,
    String propertyName) 
    A one-to-one association type for the given class
 public static CollectionType orderedMap(String role,
    String propertyRef,
    boolean embedded) 
 public static CollectionType orderedSet(String role,
    String propertyRef,
    boolean embedded) 
 public static Object[] replace(Object[] original,
    Object[] target,
    Type[] types,
    SessionImplementor session,
    Object owner,
    Map copyCache) 
 public static Object[] replace(Object[] original,
    Object[] target,
    Type[] types,
    SessionImplementor session,
    Object owner,
    Map copyCache,
    ForeignKeyDirection foreignKeyDirection) 
 public static Object[] replaceAssociations(Object[] original,
    Object[] target,
    Type[] types,
    SessionImplementor session,
    Object owner,
    Map copyCache,
    ForeignKeyDirection foreignKeyDirection) 
    Apply the Type#replace operation across a series of values, as long as the corresponding Type is an association.

    If the corresponding type is a component type, then apply #replaceAssociations accross the component subtypes but do not replace the component value itself.

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