|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.type.TypeFactory
Used internally to obtain instances of Type. Applications should use static methods and constants on net.sf.hibernate.Hibernate.
Hibernate
Method Summary | |
static PersistentCollectionType |
array(String role,
Class elementClass)
|
static Object[] |
assemble(Serializable[] row,
Type[] types,
SessionImplementor session,
Object owner)
|
static PersistentCollectionType |
bag(String role)
|
static Type |
basic(String name)
Given the name of a Hibernate basic type, return an instance of net.sf.hibernate.type.Type. |
static Object[] |
copy(Object[] original,
Object[] target,
Type[] types,
SessionImplementor session,
Object owner,
Map copiedAlready)
|
static void |
deepCopy(Object[] values,
Type[] types,
boolean[] copy,
Object[] target)
Deep copy values in the first array into the second |
static Serializable[] |
disassemble(Object[] row,
Type[] types,
SessionImplementor session)
|
static int[] |
findDirty(Type[] types,
Object[] x,
Object[] y,
boolean[] check,
SessionImplementor session)
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. |
static int[] |
findModified(Type[] types,
Object[] old,
Object[] current,
boolean[] check,
SessionImplementor session)
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. |
static Type |
heuristicType(String typeName)
Uses heuristics to deduce a Hibernate type given a string naming the type or Java class. |
static PersistentCollectionType |
idbag(String role)
|
static PersistentCollectionType |
list(String role)
|
static Type |
manyToOne(Class persistentClass)
A many-to-one association type for the given class |
static Type |
manyToOne(Class persistentClass,
String uniqueKeyPropertyName)
A many-to-one association type for the given class |
static PersistentCollectionType |
map(String role)
|
static Type |
oneToOne(Class persistentClass,
ForeignKeyDirection foreignKeyType)
A one-to-one association type for the given class |
static Type |
oneToOne(Class persistentClass,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName)
A one-to-one association type for the given class |
static PersistentCollectionType |
set(String role)
|
static PersistentCollectionType |
sortedMap(String role,
Comparator comparator)
|
static PersistentCollectionType |
sortedSet(String role,
Comparator comparator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Type oneToOne(Class persistentClass, ForeignKeyDirection foreignKeyType)
public static Type oneToOne(Class persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName)
public static Type manyToOne(Class persistentClass)
public static Type manyToOne(Class persistentClass, String uniqueKeyPropertyName)
public static Type basic(String name)
public static Type heuristicType(String typeName) throws MappingException
MappingException
public static PersistentCollectionType array(String role, Class elementClass)
public static PersistentCollectionType list(String role)
public static PersistentCollectionType bag(String role)
public static PersistentCollectionType idbag(String role)
public static PersistentCollectionType map(String role)
public static PersistentCollectionType set(String role)
public static PersistentCollectionType sortedMap(String role, Comparator comparator)
public static PersistentCollectionType sortedSet(String role, Comparator comparator)
public static void deepCopy(Object[] values, Type[] types, boolean[] copy, Object[] target) throws HibernateException
HibernateException
public static int[] findDirty(Type[] types, Object[] x, Object[] y, boolean[] check, SessionImplementor session) throws HibernateException
HibernateException
public static int[] findModified(Type[] types, Object[] old, Object[] current, boolean[] check, SessionImplementor session) throws HibernateException
HibernateException
public static Object[] assemble(Serializable[] row, Type[] types, SessionImplementor session, Object owner) throws HibernateException
HibernateException
public static Serializable[] disassemble(Object[] row, Type[] types, SessionImplementor session) throws HibernateException
HibernateException
public static Object[] copy(Object[] original, Object[] target, Type[] types, SessionImplementor session, Object owner, Map copiedAlready) throws HibernateException
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |