|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.type.TypeFactory
Used internally to obtain instances of Type. Applications should use static methods and constants on org.hibernate.Hibernate.
Hibernate
Method Summary | |
static CollectionType |
array(String role,
String propertyRef,
boolean embedded,
Class elementClass)
|
static Object[] |
assemble(Serializable[] row,
Type[] types,
SessionImplementor session,
Object owner)
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 CollectionType |
bag(String role,
String propertyRef,
boolean embedded)
|
static Type |
basic(String name)
Given the name of a Hibernate basic type, return an instance of org.hibernate.type.Type. |
static CollectionType |
customCollection(String typeName,
String role,
String propertyRef,
boolean embedded)
|
static void |
deepCopy(Object[] values,
Type[] types,
boolean[] copy,
Object[] target,
SessionImplementor session)
Deep copy values in the first array into the second |
static Serializable[] |
disassemble(Object[] row,
Type[] types,
SessionImplementor session,
Object owner)
|
static int[] |
findDirty(StandardProperty[] properties,
Object[] x,
Object[] y,
boolean anyUninitializedProperties,
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(StandardProperty[] properties,
Object[] x,
Object[] y,
boolean anyUninitializedProperties,
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 Type |
heuristicType(String typeName,
Properties parameters)
Uses heuristics to deduce a Hibernate type given a string naming the type or Java class. |
static CollectionType |
idbag(String role,
String propertyRef,
boolean embedded)
|
static CollectionType |
list(String role,
String propertyRef,
boolean embedded)
|
static EntityType |
manyToOne(String persistentClass)
A many-to-one association type for the given class |
static EntityType |
manyToOne(String persistentClass,
boolean lazy)
A many-to-one association type for the given class |
static EntityType |
manyToOne(String persistentClass,
String uniqueKeyPropertyName,
boolean lazy,
boolean isEmbeddedInXML,
boolean ignoreNotFound)
A many-to-one association type for the given class |
static CollectionType |
map(String role,
String propertyRef,
boolean embedded)
|
static EntityType |
oneToOne(String persistentClass,
ForeignKeyDirection foreignKeyType,
String uniqueKeyPropertyName,
boolean lazy,
boolean isEmbeddedInXML,
String entityName,
String propertyName)
A one-to-one association type for the given class |
static Object[] |
replace(Object[] original,
Object[] target,
Type[] types,
SessionImplementor session,
Object owner,
Map copyCache)
|
static CollectionType |
set(String role,
String propertyRef,
boolean embedded)
|
static CollectionType |
sortedMap(String role,
String propertyRef,
boolean embedded,
Comparator comparator)
|
static CollectionType |
sortedSet(String role,
String propertyRef,
boolean embedded,
Comparator comparator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static EntityType oneToOne(String persistentClass, ForeignKeyDirection foreignKeyType, String uniqueKeyPropertyName, boolean lazy, boolean isEmbeddedInXML, String entityName, String propertyName)
public static EntityType manyToOne(String persistentClass)
public static EntityType manyToOne(String persistentClass, boolean lazy)
public static EntityType manyToOne(String persistentClass, String uniqueKeyPropertyName, boolean lazy, boolean isEmbeddedInXML, boolean ignoreNotFound)
public static Type basic(String name)
public static Type heuristicType(String typeName) throws MappingException
MappingException
public static Type heuristicType(String typeName, Properties parameters) throws MappingException
MappingException
public static CollectionType customCollection(String typeName, String role, String propertyRef, boolean embedded)
public static CollectionType array(String role, String propertyRef, boolean embedded, Class elementClass)
public static CollectionType list(String role, String propertyRef, boolean embedded)
public static CollectionType bag(String role, String propertyRef, boolean embedded)
public static CollectionType idbag(String role, String propertyRef, boolean embedded)
public static CollectionType map(String role, String propertyRef, boolean embedded)
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)
public static void deepCopy(Object[] values, Type[] types, boolean[] copy, Object[] target, 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, Object owner) throws HibernateException
HibernateException
public static Object[] replace(Object[] original, Object[] target, Type[] types, SessionImplementor session, Object owner, Map copyCache) throws HibernateException
HibernateException
public static int[] findDirty(StandardProperty[] properties, Object[] x, Object[] y, boolean anyUninitializedProperties, SessionImplementor session) throws HibernateException
x
- the current state of the entityy
- the snapshot state from the time the object was loaded
HibernateException
public static int[] findModified(StandardProperty[] properties, Object[] x, Object[] y, boolean anyUninitializedProperties, SessionImplementor session) throws HibernateException
x
- the current state of the entityy
- the snapshot state just retrieved from the database
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |