Class StructHelper

java.lang.Object
org.hibernate.dialect.StructHelper

@Internal public class StructHelper extends Object
A Helper for serializing and deserializing struct, based on an EmbeddableMappingType.
  • Constructor Details

    • StructHelper

      public StructHelper()
  • Method Details

    • getAttributeValues

      public static Object[] getAttributeValues(EmbeddableMappingType embeddableMappingType, Object[] rawJdbcValues, WrapperOptions options) throws SQLException
      Throws:
      SQLException
    • getJdbcValues

      public static Object[] getJdbcValues(EmbeddableMappingType embeddableMappingType, int[] orderMapping, Object[] attributeValues, WrapperOptions options) throws SQLException
      Throws:
      SQLException
    • orderJdbcValues

      public static void orderJdbcValues(EmbeddableMappingType embeddableMappingType, int[] inverseMapping, Object[] sourceJdbcValues, Object[] targetJdbcValues)
      The sourceJdbcValues array is ordered according to the expected physical order, as given through the argument order of @Instantiator. The targetJdbcValues array should be ordered according to the Hibernate internal ordering, which is based on property name. This method copies from sourceJdbcValues to targetJdbcValues according to the ordering.
    • getJdbcValueCount

      public static int getJdbcValueCount(MappingType mappedType)