public class Helper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Helper.InLineViewNameInferrer |
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static CustomSql |
buildCustomSql(JaxbHbmCustomSqlDmlType customSqlElement)
Given a user-specified description of how to perform custom SQL, build the
CustomSql representation. |
static <T> T |
coalesce(T... values)
Operates like SQL coalesce expression, except empty strings are treated as null.
|
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) |
static Map<String,String> |
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) |
public static InheritanceType interpretInheritanceType(JaxbHbmEntityBaseDefinition entityElement)
public static CustomSql buildCustomSql(JaxbHbmCustomSqlDmlType customSqlElement)
CustomSql
representation.customSqlElement
- User-specified description of how to perform custom SQLCustomSql
representationpublic static Caching createCaching(JaxbHbmCacheType cacheElement)
public static Caching createNaturalIdCaching(JaxbHbmNaturalIdCacheType cacheElement)
public static String getPropertyAccessorName(String access, boolean isEmbedded, String defaultAccess)
public static <T> T getValue(T value, T defaultValue)
public static Map<String,String> extractParameters(List<JaxbHbmConfigParameterType> xmlParamElements)
public static <T> T coalesce(T... values)
T
- Generic type of values to coalescevalues
- The list of values.public static TableSpecificationSource createTableSource(MappingDocument mappingDocument, TableInformationContainer entityElement, Helper.InLineViewNameInferrer inLineViewNameInferrer)
public static TableSpecificationSource createTableSource(MappingDocument mappingDocument, TableInformationContainer tableInformationContainer, Helper.InLineViewNameInferrer inLineViewNameInferrer, String rowId, String comment, String checkConstraint)
public static SizeSource interpretSizeSource(Integer length, Integer scale, Integer precision)
public static SizeSource interpretSizeSource(Integer length, String scale, String precision)
public static Class reflectedPropertyClass(MetadataBuildingContext buildingContext, String attributeOwnerClassName, String attributeName)
public static Class reflectedPropertyClass(MetadataBuildingContext buildingContext, Class attributeOwnerClass, String attributeName)
Copyright © 2018 JBoss by Red Hat. All rights reserved.