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 CustomSqlbuildCustomSql(JaxbHbmCustomSqlDmlType customSqlElement) Given a user-specified description of how to perform custom SQL, build theCustomSqlrepresentation.static CachingcreateCaching(JaxbHbmCacheType cacheElement) static CachingcreateNaturalIdCaching(JaxbHbmNaturalIdCacheType cacheElement) static TableSpecificationSourcecreateTableSource(MappingDocument mappingDocument, TableInformationContainer entityElement, Helper.InLineViewNameInferrer inLineViewNameInferrer) static TableSpecificationSourcecreateTableSource(MappingDocument mappingDocument, TableInformationContainer tableInformationContainer, Helper.InLineViewNameInferrer inLineViewNameInferrer, String rowId, String comment, String checkConstraint) extractParameters(List<JaxbHbmConfigParameterType> xmlParamElements) static StringgetPropertyAccessorName(String access, boolean isEmbedded, String defaultAccess) static <T> TgetValue(T value, T defaultValue) static InheritanceTypeinterpretInheritanceType(JaxbHbmEntityBaseDefinition entityElement) static SizeSourceinterpretSizeSource(Integer length, Integer scale, Integer precision) static SizeSourceinterpretSizeSource(Integer length, String scale, String precision) static ClassreflectedPropertyClass(MetadataBuildingContext buildingContext, Class attributeOwnerClass, String attributeName) static ClassreflectedPropertyClass(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 theCustomSqlrepresentation.- Parameters:
customSqlElement- User-specified description of how to perform custom SQL- Returns:
- The
CustomSqlrepresentation
-
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)
-