Top Description Constructors Methods
org.hibernate.persister.entity

pack-priv Class DirtyHelper

extends Object
Class Inheritance
Annotations
@Internal
Imports
org.hibernate.Internal, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.tuple.NonIdentifierAttribute

Operations for searching an array of property values for modified elements.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static int[]

Returns:

Array containing indices of the dirty properties, or null if no properties considered dirty.
findDirty
(final NonIdentifierAttribute[]
The property definitions
properties
,
final Object[]
The current state of the entity
currentState
,
final Object[]
The baseline state of the entity
previousState
,
final boolean[][]
Columns to be included in the dirty checking, per property
includeColumns
,
final SharedSessionContractImplementor
The session from which the dirty check request originated.
session
)

Deprecated as a consequence of NonIdentifierAttribute being deprecated.
Determine if any of the given field values are dirty, returning an array containing indices of the dirty fields.
public static int[]

Returns:

Array containing indices of the modified properties, or null if no properties considered modified.
findModified
(final NonIdentifierAttribute[]
The property definitions
properties
,
final Object[]
The current state of the entity
currentState
,
final Object[]
The baseline state of the entity
previousState
,
final boolean[][]
Columns to be included in the mod checking, per property
includeColumns
,
final boolean[]
Array of property indices that identify which properties participate in check
includeProperties
,
final SharedSessionContractImplementor
The session from which the dirty check request originated.
session
)

Deprecated as a consequence of NonIdentifierAttribute being deprecated.
Determine if any of the given field values are modified, returning an array containing indices of the modified fields.
private static boolean
isDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, SharedSessionContractImplementor session, int i)

Deprecated as a consequence of NonIdentifierAttribute being deprecated.
private static boolean
isModified(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean[] includeProperties, SharedSessionContractImplementor session, int i)

Deprecated as a consequence of NonIdentifierAttribute being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DirtyHelperback to summary
pack-priv DirtyHelper()

Method Detail

findDirtyback to summary
public static int[] findDirty(final NonIdentifierAttribute[] properties, final Object[] currentState, final Object[] previousState, final boolean[][] includeColumns, final SharedSessionContractImplementor session)

Deprecated

as a consequence of NonIdentifierAttribute being deprecated. See corresponding docs for further information.

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.

Parameters
properties:NonIdentifierAttribute[]

The property definitions

currentState:Object[]

The current state of the entity

previousState:Object[]

The baseline state of the entity

includeColumns:boolean[][]

Columns to be included in the dirty checking, per property

session:SharedSessionContractImplementor

The session from which the dirty check request originated.

Returns:int[]

Array containing indices of the dirty properties, or null if no properties considered dirty.

findModifiedback to summary
public static int[] findModified(final NonIdentifierAttribute[] properties, final Object[] currentState, final Object[] previousState, final boolean[][] includeColumns, final boolean[] includeProperties, final SharedSessionContractImplementor session)

Deprecated

as a consequence of NonIdentifierAttribute being deprecated. See corresponding docs for further information.

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.

Parameters
properties:NonIdentifierAttribute[]

The property definitions

currentState:Object[]

The current state of the entity

previousState:Object[]

The baseline state of the entity

includeColumns:boolean[][]

Columns to be included in the mod checking, per property

includeProperties:boolean[]

Array of property indices that identify which properties participate in check

session:SharedSessionContractImplementor

The session from which the dirty check request originated.

Returns:int[]

Array containing indices of the modified properties, or null if no properties considered modified.

isDirtyback to summary
private static boolean isDirty(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, SharedSessionContractImplementor session, int i)

Deprecated

as a consequence of NonIdentifierAttribute being deprecated. See corresponding docs for further information.

isModifiedback to summary
private static boolean isModified(NonIdentifierAttribute[] properties, Object[] currentState, Object[] previousState, boolean[][] includeColumns, boolean[] includeProperties, SharedSessionContractImplementor session, int i)

Deprecated

as a consequence of NonIdentifierAttribute being deprecated. See corresponding docs for further information.