类 TypeHelper
- java.lang.Object
-
- org.hibernate.type.TypeHelper
-
@Deprecated public class TypeHelper extends Object
已过时。with no real replacement. this was always intended as an internal classCollection of convenience methods relating to operations across arrays of types...- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static Object[]assemble(Serializable[] row, Type[] types, SharedSessionContractImplementor session, Object owner)已过时。Apply theType.assemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object)operation across a series of values.static voidbeforeAssemble(Serializable[] row, Type[] types, SharedSessionContractImplementor session)已过时。Apply theType.beforeAssemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor)operation across a series of values.static voiddeepCopy(Object[] values, Type[] types, boolean[] copy, Object[] target, SharedSessionContractImplementor session)已过时。Deep copy a series of values from one array to another...static Serializable[]disassemble(Object[] row, Type[] types, boolean[] nonCacheable, SharedSessionContractImplementor session, Object owner)已过时。Apply theType.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)已过时。Use {org.hibernate.type.TypeHelperfindDirty(NonIdentifierAttribute[], Object[], Object[], boolean[][], SharedSessionContractImplementor)indteadstatic int[]findDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, SharedSessionContractImplementor session)已过时。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)已过时。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)已过时。Apply theType.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)已过时。Apply theType.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)已过时。Apply theType.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 correspondingTypeis an association.
-
-
-
方法详细资料
-
deepCopy
public static void deepCopy(Object[] values, Type[] types, boolean[] copy, Object[] target, SharedSessionContractImplementor session)
已过时。Deep copy a series of values from one array to another...- 参数:
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
-
beforeAssemble
public static void beforeAssemble(Serializable[] row, Type[] types, SharedSessionContractImplementor session)
已过时。Apply theType.beforeAssemble(java.io.Serializable, org.hibernate.engine.spi.SharedSessionContractImplementor)operation across a series of values.- 参数:
row- The valuestypes- The value typessession- The originating session
-
assemble
public static Object[] assemble(Serializable[] row, Type[] types, SharedSessionContractImplementor session, Object owner)
已过时。Apply theType.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 values- 返回:
- The assembled state
-
disassemble
public static Serializable[] disassemble(Object[] row, Type[] types, boolean[] nonCacheable, SharedSessionContractImplementor session, Object owner)
已过时。Apply theType.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 values- 返回:
- The disassembled state
-
replace
public static Object[] replace(Object[] original, Object[] target, Type[] types, SharedSessionContractImplementor session, Object owner, Map copyCache)
已过时。Apply theType.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 state- 返回:
- The replaced state
-
replace
public static Object[] replace(Object[] original, Object[] target, Type[] types, SharedSessionContractImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
已过时。Apply theType.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 replacement- 返回:
- The replaced state
-
replaceAssociations
public static Object[] replaceAssociations(Object[] original, Object[] target, Type[] types, SharedSessionContractImplementor session, Object owner, Map copyCache, ForeignKeyDirection foreignKeyDirection)
已过时。Apply theType.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 correspondingTypeis an association. If the corresponding type is a component type, then applyType.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- 返回:
- The replaced state
-
findDirty
@Deprecated public static int[] findDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean anyUninitializedProperties, SharedSessionContractImplementor session)
已过时。Use {org.hibernate.type.TypeHelperfindDirty(NonIdentifierAttribute[], Object[], Object[], boolean[][], SharedSessionContractImplementor)indteadDetermine if any of the given field values are dirty, returning an array containing indices of the dirty fields. If it is determined that no fields are dirty, null is returned.- 参数:
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.- 返回:
- Array containing indices of the dirty properties, or null if no properties considered dirty.
-
findDirty
public static int[] findDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, SharedSessionContractImplementor session)
已过时。Determine if any of the given field values are dirty, returning an array containing indices of the dirty fields. If it is determined that no fields are dirty, null is returned.- 参数:
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.- 返回:
- Array containing indices of the dirty properties, or null if no properties considered dirty.
-
findModified
@Deprecated public static int[] findModified(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean[] includeProperties, boolean anyUninitializedProperties, SharedSessionContractImplementor session)
已过时。Determine if any of the given field values are modified, returning an array containing indices of the modified fields. If it is determined that no fields are dirty, null is returned.- 参数:
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.- 返回:
- Array containing indices of the modified properties, or null if no properties considered modified.
-
findModified
public static int[] findModified(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean[] includeProperties, SharedSessionContractImplementor session)
已过时。Determine if any of the given field values are modified, returning an array containing indices of the modified fields. If it is determined that no fields are dirty, null is returned.- 参数:
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.- 返回:
- Array containing indices of the modified properties, or null if no properties considered modified.
-
-