Package org.hibernate.dialect
Class StructHelper
- java.lang.Object
-
- org.hibernate.dialect.StructHelper
-
@Internal public class StructHelper extends Object
A Helper for serializing and deserializing struct, based on anEmbeddableMappingType.
-
-
Constructor Summary
Constructors Constructor Description StructHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object[]getAttributeValues(EmbeddableMappingType embeddableMappingType, Object[] rawJdbcValues, WrapperOptions options)static intgetJdbcValueCount(MappingType mappedType)static Object[]getJdbcValues(EmbeddableMappingType embeddableMappingType, int[] orderMapping, Object[] attributeValues, WrapperOptions options)static voidorderJdbcValues(EmbeddableMappingType embeddableMappingType, int[] inverseMapping, Object[] sourceJdbcValues, Object[] targetJdbcValues)ThesourceJdbcValuesarray is ordered according to the expected physical order, as given through the argument order of @Instantiator.
-
-
-
Method Detail
-
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)
ThesourceJdbcValuesarray is ordered according to the expected physical order, as given through the argument order of @Instantiator. ThetargetJdbcValuesarray should be ordered according to the Hibernate internal ordering, which is based on property name. This method copies fromsourceJdbcValuestotargetJdbcValuesaccording to the ordering.
-
getJdbcValueCount
public static int getJdbcValueCount(MappingType mappedType)
-
-