Save This Page
Home » hibernate-annotations-3.4.0.CR1 » 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,   deepCopy,   disassemble,   findDirty,   findModified,   heuristicType,   heuristicType,   idbag,   injectParameters,   list,   manyToOne,   manyToOne,   manyToOne,   map,   oneToOne,   orderedMap,   orderedSet,   replace,   replace,   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) throws HibernateException 
 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) throws HibernateException 
    Determine if any of the given field values are modified, returning an array containing indexes of the dirty fields or null if no fields are dirty.
 public static CollectionType customCollection(String typeName,
    String role,
    String propertyRef,
    boolean embedded) 
 public static  void deepCopy(Object[] values,
    Type[] types,
    boolean[] copy,
    Object[] target,
    SessionImplementor session) throws HibernateException 
    Deep copy values in the first array into the second
 public static Serializable[] disassemble(Object[] row,
    Type[] types,
    boolean[] nonCacheable,
    SessionImplementor session,
    Object owner) throws HibernateException 
 public static int[] findDirty(StandardProperty[] properties,
    Object[] x,
    Object[] y,
    boolean[][] includeColumns,
    boolean anyUninitializedProperties,
    SessionImplementor session) throws HibernateException 
    Determine if any of the given field values are dirty, returning an array containing indexes of the dirty fields or null if no fields are dirty.
 public static int[] findModified(StandardProperty[] properties,
    Object[] x,
    Object[] y,
    boolean[][] includeColumns,
    boolean anyUninitializedProperties,
    SessionImplementor session) throws HibernateException 
    Determine if any of the given field values are modified, returning an array containing indexes of the dirty fields or null if no fields are dirty.
 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) throws HibernateException 
 public static Object[] replace(Object[] original,
    Object[] target,
    Type[] types,
    SessionImplementor session,
    Object owner,
    Map copyCache,
    ForeignKeyDirection foreignKeyDirection) throws HibernateException 
 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)