public class BinderHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATION_STRING_DEFAULT |
static Set<String> |
PRIMITIVE_NAMES |
Modifier and Type | Method and Description |
---|---|
static void |
bindAnyMetaDefs(org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement,
MetadataBuildingContext context) |
static Any |
buildAnyValue(String anyMetaDefName,
Ejb3JoinColumn[] columns,
Column metaColumn,
PropertyData inferredData,
boolean cascadeOnDelete,
Nullability nullability,
PropertyHolder propertyHolder,
EntityBinder entityBinder,
boolean optional,
MetadataBuildingContext context) |
static void |
createSyntheticPropertyReference(Ejb3JoinColumn[] columns,
PersistentClass ownerEntity,
PersistentClass associatedEntity,
Value value,
boolean inverse,
MetadataBuildingContext context) |
static Object |
findColumnOwner(PersistentClass persistentClass,
String columnName,
MetadataBuildingContext context)
Find the column owner (ie PersistentClass or Join) of columnName.
|
static Property |
findPropertyByName(Component component,
String propertyName)
Retrieve the property by path in a recursive way
|
static Property |
findPropertyByName(PersistentClass associatedClass,
String propertyName)
Retrieve the property by path in a recursive way, including IndetifierProperty in the loop
If propertyName is null or empty, the IdentifierProperty is returned
|
static IdentifierGeneratorDefinition |
getIdentifierGenerator(String name,
Map<String,IdentifierGeneratorDefinition> localGenerators,
MetadataBuildingContext buildingContext) |
static MappedSuperclass |
getMappedSuperclassOrNull(org.hibernate.annotations.common.reflection.XClass declaringClass,
Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass,
MetadataBuildingContext context) |
static String |
getPath(PropertyHolder holder,
PropertyData property) |
static String |
getRelativePath(PropertyHolder propertyHolder,
String propertyName) |
static boolean |
isEmptyAnnotationValue(String annotationString) |
static boolean |
isEmptyOrNullAnnotationValue(String annotationString) |
static void |
makeIdGenerator(SimpleValue id,
String generatorType,
String generatorName,
MetadataBuildingContext buildingContext,
Map<String,IdentifierGeneratorDefinition> localGenerators)
apply an id generator to a SimpleValue
|
static Property |
shallowCopy(Property property)
create a property copy reusing the same value
|
static Map<String,String> |
toAliasEntityMap(SqlFragmentAlias[] aliases) |
static Map<String,String> |
toAliasTableMap(SqlFragmentAlias[] aliases) |
public static final String ANNOTATION_STRING_DEFAULT
public static Property shallowCopy(Property property)
public static void createSyntheticPropertyReference(Ejb3JoinColumn[] columns, PersistentClass ownerEntity, PersistentClass associatedEntity, Value value, boolean inverse, MetadataBuildingContext context)
public static Property findPropertyByName(PersistentClass associatedClass, String propertyName)
public static Property findPropertyByName(Component component, String propertyName)
public static String getRelativePath(PropertyHolder propertyHolder, String propertyName)
public static Object findColumnOwner(PersistentClass persistentClass, String columnName, MetadataBuildingContext context)
public static void makeIdGenerator(SimpleValue id, String generatorType, String generatorName, MetadataBuildingContext buildingContext, Map<String,IdentifierGeneratorDefinition> localGenerators)
public static IdentifierGeneratorDefinition getIdentifierGenerator(String name, Map<String,IdentifierGeneratorDefinition> localGenerators, MetadataBuildingContext buildingContext)
public static boolean isEmptyAnnotationValue(String annotationString)
public static boolean isEmptyOrNullAnnotationValue(String annotationString)
public static Any buildAnyValue(String anyMetaDefName, Ejb3JoinColumn[] columns, Column metaColumn, PropertyData inferredData, boolean cascadeOnDelete, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, MetadataBuildingContext context)
public static void bindAnyMetaDefs(org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement, MetadataBuildingContext context)
public static MappedSuperclass getMappedSuperclassOrNull(org.hibernate.annotations.common.reflection.XClass declaringClass, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context)
public static String getPath(PropertyHolder holder, PropertyData property)
public static Map<String,String> toAliasTableMap(SqlFragmentAlias[] aliases)
public static Map<String,String> toAliasEntityMap(SqlFragmentAlias[] aliases)
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.