public class Helper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Helper.ValueSourcesAdapter |
Modifier and Type | Field and Description |
---|---|
static ExplicitHibernateTypeSource |
TO_ONE_ATTRIBUTE_TYPE_SOURCE |
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static CustomSQL |
buildCustomSql(CustomSqlElement customSqlElement)
Given a user-specified description of how to perform custom SQL, build the
CustomSQL representation. |
static Iterable<MetaAttributeSource> |
buildMetaAttributeSources(List<JaxbMetaElement> metaElements) |
static List<RelationalValueSource> |
buildValueSources(Helper.ValueSourcesAdapter valueSourcesAdapter,
LocalBindingContext bindingContext) |
static Class |
classForName(String className,
ServiceRegistry serviceRegistry) |
static Schema.Name |
determineDatabaseSchemaName(String explicitSchemaName,
String explicitCatalogName,
LocalBindingContext bindingContext) |
static String |
determineEntityName(EntityElement entityElement,
String unqualifiedClassPackage)
Given the user-specified entity mapping, determine the appropriate entity name
|
static MetaAttributeContext |
extractMetaAttributeContext(List<JaxbMetaElement> metaElementList,
boolean onlyInheritable,
MetaAttributeContext parentContext) |
static Map<String,String> |
extractParameters(List<JaxbParamElement> xmlParamElements) |
static boolean |
getBooleanValue(Boolean value,
boolean defaultValue) |
static int |
getIntValue(String value,
int defaultValue) |
static long |
getLongValue(String value,
long defaultValue) |
static String |
getPropertyAccessorName(String access,
boolean isEmbedded,
String defaultAccess) |
static String |
getStringValue(String value,
String defaultValue) |
static Iterable<CascadeStyle> |
interpretCascadeStyles(String cascades,
LocalBindingContext bindingContext) |
static InheritanceType |
interpretInheritanceType(EntityElement entityElement) |
static String |
qualifyIfNeeded(String name,
String unqualifiedClassPackage)
Qualify a (supposed class) name with the unqualified-class package name if it is not already qualified
|
static Identifier |
resolveIdentifier(String explicitName,
String defaultName,
boolean globalQuoting) |
public static final ExplicitHibernateTypeSource TO_ONE_ATTRIBUTE_TYPE_SOURCE
public static InheritanceType interpretInheritanceType(EntityElement entityElement)
public static CustomSQL buildCustomSql(CustomSqlElement customSqlElement)
CustomSQL
representation.customSqlElement
- User-specified description of how to perform custom SQLCustomSQL
representationpublic static String determineEntityName(EntityElement entityElement, String unqualifiedClassPackage)
entityElement
- The user-specified entity mappingunqualifiedClassPackage
- The package to use for unqualified class namespublic static String qualifyIfNeeded(String name, String unqualifiedClassPackage)
name
- The nameunqualifiedClassPackage
- The unqualified-class package namenull
if the incoming name was null
; or the qualified name.public static String getPropertyAccessorName(String access, boolean isEmbedded, String defaultAccess)
public static MetaAttributeContext extractMetaAttributeContext(List<JaxbMetaElement> metaElementList, boolean onlyInheritable, MetaAttributeContext parentContext)
public static int getIntValue(String value, int defaultValue)
public static long getLongValue(String value, long defaultValue)
public static boolean getBooleanValue(Boolean value, boolean defaultValue)
public static Iterable<CascadeStyle> interpretCascadeStyles(String cascades, LocalBindingContext bindingContext)
public static Map<String,String> extractParameters(List<JaxbParamElement> xmlParamElements)
public static Iterable<MetaAttributeSource> buildMetaAttributeSources(List<JaxbMetaElement> metaElements)
public static Schema.Name determineDatabaseSchemaName(String explicitSchemaName, String explicitCatalogName, LocalBindingContext bindingContext)
public static Identifier resolveIdentifier(String explicitName, String defaultName, boolean globalQuoting)
public static List<RelationalValueSource> buildValueSources(Helper.ValueSourcesAdapter valueSourcesAdapter, LocalBindingContext bindingContext)
public static Class classForName(String className, ServiceRegistry serviceRegistry)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.