Class TypeHelper


  • @Deprecated
    public class TypeHelper
    extends java.lang.Object
    Deprecated.
    with no real replacement. this was always intended as an internal class
    Collection of convenience methods relating to operations across arrays of types...
    • Method Detail

      • deepCopy

        public static void deepCopy​(java.lang.Object[] values,
                                    Type[] types,
                                    boolean[] copy,
                                    java.lang.Object[] target,
                                    SharedSessionContractImplementor session)
        Deprecated.
        Deep copy a series of values from one array to another...
        Parameters:
        values - The values to copy (the source)
        types - The value types
        copy - an array indicating which values to include in the copy
        target - The array into which to copy the values
        session - The originating session
      • findDirty

        @Deprecated
        public static int[] findDirty​(NonIdentifierAttribute[] properties,
                                      java.lang.Object[] currentState,
                                      java.lang.Object[] previousState,
                                      boolean[][] includeColumns,
                                      boolean anyUninitializedProperties,
                                      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.

        Parameters:
        properties - The property definitions
        currentState - The current state of the entity
        previousState - The baseline state of the entity
        includeColumns - Columns to be included in the dirty checking, per property
        anyUninitializedProperties - Does the entity currently hold any uninitialized property values?
        session - The session from which the dirty check request originated.
        Returns:
        Array containing indices of the dirty properties, or null if no properties considered dirty.
      • findDirty

        public static int[] findDirty​(NonIdentifierAttribute[] properties,
                                      java.lang.Object[] currentState,
                                      java.lang.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.

        If it is determined that no fields are dirty, null is returned.

        Parameters:
        properties - The property definitions
        currentState - The current state of the entity
        previousState - The baseline state of the entity
        includeColumns - Columns to be included in the dirty checking, per property
        session - The session from which the dirty check request originated.
        Returns:
        Array containing indices of the dirty properties, or null if no properties considered dirty.
      • findModified

        @Deprecated
        public static int[] findModified​(NonIdentifierAttribute[] properties,
                                         java.lang.Object[] currentState,
                                         java.lang.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.

        Parameters:
        properties - The property definitions
        currentState - The current state of the entity
        previousState - The baseline state of the entity
        includeColumns - Columns to be included in the mod checking, per property
        includeProperties - Array of property indices that identify which properties participate in check
        anyUninitializedProperties - Does the entity currently hold any uninitialized property values?
        session - The session from which the dirty check request originated.
        Returns:
        Array containing indices of the modified properties, or null if no properties considered modified.
      • findModified

        public static int[] findModified​(NonIdentifierAttribute[] properties,
                                         java.lang.Object[] currentState,
                                         java.lang.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.

        If it is determined that no fields are dirty, null is returned.

        Parameters:
        properties - The property definitions
        currentState - The current state of the entity
        previousState - The baseline state of the entity
        includeColumns - Columns to be included in the mod checking, per property
        includeProperties - Array of property indices that identify which properties participate in check
        session - The session from which the dirty check request originated.
        Returns:
        Array containing indices of the modified properties, or null if no properties considered modified.