| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.type.TypeHelper
public class TypeHelper
Collection of convenience methods relating to operations across arrays of types...
| Method Summary | |
|---|---|
| static Object[] | assemble(Serializable[] row,
         Type[] types,
         SessionImplementor session,
         Object owner)Apply the Type.assemble(java.io.Serializable, org.hibernate.engine.SessionImplementor, java.lang.Object)operation across a series of values. | 
| static void | beforeAssemble(Serializable[] row,
               Type[] types,
               SessionImplementor session)Apply the Type.beforeAssemble(java.io.Serializable, org.hibernate.engine.SessionImplementor)operation across a series of values. | 
| static void | deepCopy(Object[] values,
         Type[] types,
         boolean[] copy,
         Object[] target,
         SessionImplementor session)Deep copy a series of values from one array to another... | 
| static Serializable[] | disassemble(Object[] row,
            Type[] types,
            boolean[] nonCacheable,
            SessionImplementor session,
            Object owner)Apply the Type.disassemble(java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object)operation across a series of values. | 
| 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. | 
| 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. | 
| static Object[] | replace(Object[] original,
        Object[] target,
        Type[] types,
        SessionImplementor session,
        Object owner,
        Map copyCache)Apply the Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map)operation across a series of values. | 
| static Object[] | replace(Object[] original,
        Object[] target,
        Type[] types,
        SessionImplementor session,
        Object owner,
        Map copyCache,
        ForeignKeyDirection foreignKeyDirection)Apply the Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map)operation across a series of values. | 
| static Object[] | replaceAssociations(Object[] original,
                    Object[] target,
                    Type[] types,
                    SessionImplementor session,
                    Object owner,
                    Map copyCache,
                    ForeignKeyDirection foreignKeyDirection)Apply the Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map)operation across a series of values, as long as the correspondingTypeis an association. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void deepCopy(Object[] values,
                            Type[] types,
                            boolean[] copy,
                            Object[] target,
                            SessionImplementor session)
values - The values to copy (the source)types - The value typescopy - an array indicating which values to include in the copytarget - The array into which to copy the valuessession - The originating session
public static void beforeAssemble(Serializable[] row,
                                  Type[] types,
                                  SessionImplementor session)
Type.beforeAssemble(java.io.Serializable, org.hibernate.engine.SessionImplementor) operation across a series of values.
row - The valuestypes - The value typessession - The originating session
public static Object[] assemble(Serializable[] row,
                                Type[] types,
                                SessionImplementor session,
                                Object owner)
Type.assemble(java.io.Serializable, org.hibernate.engine.SessionImplementor, java.lang.Object) operation across a series of values.
row - The valuestypes - The value typessession - The originating sessionowner - The entity "owning" the values
public static Serializable[] disassemble(Object[] row,
                                         Type[] types,
                                         boolean[] nonCacheable,
                                         SessionImplementor session,
                                         Object owner)
Type.disassemble(java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object) operation across a series of values.
row - The valuestypes - The value typesnonCacheable - An array indicating which values to include in the disassembled statesession - The originating sessionowner - The entity "owning" the values
public static Object[] replace(Object[] original,
                               Object[] target,
                               Type[] types,
                               SessionImplementor session,
                               Object owner,
                               Map copyCache)
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) operation across a series of values.
original - The source of the statetarget - The target into which to replace the source values.types - The value typessession - The originating sessionowner - The entity "owning" the valuescopyCache - A map representing a cache of already replaced state
public static Object[] replace(Object[] original,
                               Object[] target,
                               Type[] types,
                               SessionImplementor session,
                               Object owner,
                               Map copyCache,
                               ForeignKeyDirection foreignKeyDirection)
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) operation across a series of values.
original - The source of the statetarget - The target into which to replace the source values.types - The value typessession - The originating sessionowner - The entity "owning" the valuescopyCache - A map representing a cache of already replaced stateforeignKeyDirection - FK directionality to be applied to the replacement
public static Object[] replaceAssociations(Object[] original,
                                           Object[] target,
                                           Type[] types,
                                           SessionImplementor session,
                                           Object owner,
                                           Map copyCache,
                                           ForeignKeyDirection foreignKeyDirection)
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) 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 Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) across the component
 subtypes but do not replace the component value itself.
original - The source of the statetarget - The target into which to replace the source values.types - The value typessession - The originating sessionowner - The entity "owning" the valuescopyCache - A map representing a cache of already replaced stateforeignKeyDirection - FK directionality to be applied to the replacement
public static int[] findDirty(StandardProperty[] properties,
                              Object[] currentState,
                              Object[] previousState,
                              boolean[][] includeColumns,
                              boolean anyUninitializedProperties,
                              SessionImplementor session)
properties - The property definitionscurrentState - The current state of the entitypreviousState - The baseline state of the entityincludeColumns - Columns to be included in the dirty checking, per propertyanyUninitializedProperties - Does the entity currently hold any uninitialized property values?session - The session from which the dirty check request originated.
public static int[] findModified(StandardProperty[] properties,
                                 Object[] currentState,
                                 Object[] previousState,
                                 boolean[][] includeColumns,
                                 boolean anyUninitializedProperties,
                                 SessionImplementor session)
properties - The property definitionscurrentState - The current state of the entitypreviousState - The baseline state of the entityincludeColumns - Columns to be included in the mod checking, per propertyanyUninitializedProperties - Does the entity currently hold any uninitialized property values?session - The session from which the dirty check request originated.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||