Class Helper
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.Helper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomSql
buildCustomSql
(JaxbHbmCustomSqlDmlType customSqlElement) Given a user-specified description of how to perform custom SQL, build theCustomSql
representation.static Caching
createCaching
(JaxbHbmCacheType cacheElement) static Caching
createNaturalIdCaching
(JaxbHbmNaturalIdCacheType cacheElement) static TableSpecificationSource
createTableSource
(MappingDocument mappingDocument, TableInformationContainer entityElement, Helper.InLineViewNameInferrer inLineViewNameInferrer) static TableSpecificationSource
createTableSource
(MappingDocument mappingDocument, TableInformationContainer tableInformationContainer, Helper.InLineViewNameInferrer inLineViewNameInferrer, String rowId, String comment, String checkConstraint) extractParameters
(List<JaxbHbmConfigParameterType> xmlParamElements) static String
getPropertyAccessorName
(String access, boolean isEmbedded, String defaultAccess) static <T> T
getValue
(T value, T defaultValue) static InheritanceType
interpretInheritanceType
(JaxbHbmEntityBaseDefinition entityElement) static SizeSource
interpretSizeSource
(Integer length, Integer scale, Integer precision) static SizeSource
interpretSizeSource
(Integer length, String scale, String precision) static Class
reflectedPropertyClass
(MetadataBuildingContext buildingContext, Class attributeOwnerClass, String attributeName) static Class
reflectedPropertyClass
(MetadataBuildingContext buildingContext, String attributeOwnerClassName, String attributeName)
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
interpretInheritanceType
-
buildCustomSql
Given a user-specified description of how to perform custom SQL, build theCustomSql
representation.- Parameters:
customSqlElement
- User-specified description of how to perform custom SQL- Returns:
- The
CustomSql
representation
-
createCaching
-
createNaturalIdCaching
-
getPropertyAccessorName
-
getValue
public static <T> T getValue(T value, T defaultValue) -
extractParameters
public static Map<String,String> extractParameters(List<JaxbHbmConfigParameterType> xmlParamElements) -
createTableSource
public static TableSpecificationSource createTableSource(MappingDocument mappingDocument, TableInformationContainer entityElement, Helper.InLineViewNameInferrer inLineViewNameInferrer) -
createTableSource
public static TableSpecificationSource createTableSource(MappingDocument mappingDocument, TableInformationContainer tableInformationContainer, Helper.InLineViewNameInferrer inLineViewNameInferrer, String rowId, String comment, String checkConstraint) -
interpretSizeSource
-
interpretSizeSource
-
reflectedPropertyClass
public static Class reflectedPropertyClass(MetadataBuildingContext buildingContext, String attributeOwnerClassName, String attributeName) -
reflectedPropertyClass
public static Class reflectedPropertyClass(MetadataBuildingContext buildingContext, Class attributeOwnerClass, String attributeName)
-