@Deprecated public class TypeHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object[] |
assemble(Serializable[] row,
Type[] types,
SharedSessionContractImplementor session,
Object owner)
Deprecated.
Apply the
Type.assemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object) operation across a series of values. |
static void |
beforeAssemble(Serializable[] row,
Type[] types,
SharedSessionContractImplementor session)
Deprecated.
Apply the
Type.beforeAssemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor) operation across a series of values. |
static void |
deepCopy(Object[] values,
Type[] types,
boolean[] copy,
Object[] target,
SharedSessionContractImplementor session)
Deprecated.
Deep copy a series of values from one array to another...
|
static Serializable[] |
disassemble(Object[] row,
Type[] types,
boolean[] nonCacheable,
SharedSessionContractImplementor session,
Object owner)
Deprecated.
Apply the
Type.disassemble(java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object) operation across a series of values. |
static int[] |
findDirty(NonIdentifierAttribute[] properties,
Object[] currentState,
Object[] previousState,
boolean[][] includeColumns,
boolean anyUninitializedProperties,
SharedSessionContractImplementor session)
Deprecated.
Use {org.hibernate.type.TypeHelper
findDirty(NonIdentifierAttribute[], Object[], Object[], boolean[][], SharedSessionContractImplementor) indtead |
static int[] |
findDirty(NonIdentifierAttribute[] properties,
Object[] currentState,
Object[] previousState,
boolean[][] includeColumns,
SharedSessionContractImplementor session)
Deprecated.
Determine if any of the given field values are dirty, returning an array containing
indices of the dirty fields.
|
static int[] |
findModified(NonIdentifierAttribute[] properties,
Object[] currentState,
Object[] previousState,
boolean[][] includeColumns,
boolean[] includeProperties,
boolean anyUninitializedProperties,
SharedSessionContractImplementor session)
|
static int[] |
findModified(NonIdentifierAttribute[] properties,
Object[] currentState,
Object[] previousState,
boolean[][] includeColumns,
boolean[] includeProperties,
SharedSessionContractImplementor session)
Deprecated.
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,
SharedSessionContractImplementor session,
Object owner,
Map copyCache)
Deprecated.
Apply the
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.util.Map) operation across a series of values. |
static Object[] |
replace(Object[] original,
Object[] target,
Type[] types,
SharedSessionContractImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection)
Deprecated.
Apply the
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.util.Map) operation across a series of values. |
static Object[] |
replaceAssociations(Object[] original,
Object[] target,
Type[] types,
SharedSessionContractImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection)
Deprecated.
Apply the
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.util.Map) operation across a series of values, as long as the corresponding
Type is an association. |
public static void deepCopy(Object[] values, Type[] types, boolean[] copy, Object[] target, SharedSessionContractImplementor 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 sessionpublic static void beforeAssemble(Serializable[] row, Type[] types, SharedSessionContractImplementor session)
Type.beforeAssemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor) operation across a series of values.row - The valuestypes - The value typessession - The originating sessionpublic static Object[] assemble(Serializable[] row, Type[] types, SharedSessionContractImplementor session, Object owner)
Type.assemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object) operation across a series of values.row - The valuestypes - The value typessession - The originating sessionowner - The entity "owning" the valuespublic static Serializable[] disassemble(Object[] row, Type[] types, boolean[] nonCacheable, SharedSessionContractImplementor session, Object owner)
Type.disassemble(java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, 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 valuespublic static Object[] replace(Object[] original, Object[] target, Type[] types, SharedSessionContractImplementor session, Object owner, Map copyCache)
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, 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 statepublic static Object[] replace(Object[] original, Object[] target, Type[] types, SharedSessionContractImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, 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 replacementpublic static Object[] replaceAssociations(Object[] original, Object[] target, Type[] types, SharedSessionContractImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor, 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.spi.SharedSessionContractImplementor, 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@Deprecated public static int[] findDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean anyUninitializedProperties, SharedSessionContractImplementor session)
findDirty(NonIdentifierAttribute[], Object[], Object[], boolean[][], SharedSessionContractImplementor) indteadproperties - 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[] findDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, SharedSessionContractImplementor 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 propertysession - The session from which the dirty check request originated.@Deprecated public static int[] findModified(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean[] includeProperties, boolean anyUninitializedProperties, SharedSessionContractImplementor session)
findModified(NonIdentifierAttribute[], Object[], Object[], boolean[][], boolean[], boolean, SharedSessionContractImplementor)
instead.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 propertyincludeProperties - Array of property indices that identify which properties participate in checkanyUninitializedProperties - Does the entity currently hold any uninitialized property values?session - The session from which the dirty check request originated.public static int[] findModified(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean[] includeProperties, SharedSessionContractImplementor 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 propertyincludeProperties - Array of property indices that identify which properties participate in checksession - The session from which the dirty check request originated.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.