Package org.hibernate.cfg
Class BinderHelper
java.lang.Object
org.hibernate.cfg.BinderHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindAnyMetaDefs(XAnnotatedElement annotatedElement, Mappings mappings) static AnybuildAnyValue(String anyMetaDefName, Ejb3JoinColumn[] columns, javax.persistence.Column metaColumn, PropertyData inferredData, boolean cascadeOnDelete, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, Mappings mappings) static voidcreateSyntheticPropertyReference(Ejb3JoinColumn[] columns, PersistentClass ownerEntity, PersistentClass associatedEntity, Value value, boolean inverse, Mappings mappings) static ObjectfindColumnOwner(PersistentClass persistentClass, String columnName, Mappings mappings) Find the column owner (ie PersistentClass or Join) of columnName.static PropertyfindPropertyByName(Component component, String propertyName) Retrieve the property by path in a recursive waystatic PropertyfindPropertyByName(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 returnedstatic MappedSuperclassgetMappedSuperclassOrNull(XClass declaringClass, Map<XClass, InheritanceState> inheritanceStatePerClass, Mappings mappings) static StringgetPath(PropertyHolder holder, PropertyData property) static StringgetRelativePath(PropertyHolder propertyHolder, String propertyName) static booleanisEmptyAnnotationValue(String annotationString) static voidmakeIdGenerator(SimpleValue id, String generatorType, String generatorName, Mappings mappings, Map<String, IdGenerator> localGenerators) apply an id generator to a SimpleValuestatic PropertyshallowCopy(Property property) create a property copy reusing the same value
-
Field Details
-
ANNOTATION_STRING_DEFAULT
- See Also:
-
PRIMITIVE_NAMES
-
-
Method Details
-
shallowCopy
create a property copy reusing the same value -
createSyntheticPropertyReference
public static void createSyntheticPropertyReference(Ejb3JoinColumn[] columns, PersistentClass ownerEntity, PersistentClass associatedEntity, Value value, boolean inverse, Mappings mappings) -
findPropertyByName
Retrieve the property by path in a recursive way, including IndetifierProperty in the loop If propertyName is null or empty, the IdentifierProperty is returned -
findPropertyByName
Retrieve the property by path in a recursive way -
getRelativePath
-
findColumnOwner
public static Object findColumnOwner(PersistentClass persistentClass, String columnName, Mappings mappings) Find the column owner (ie PersistentClass or Join) of columnName. If columnName is null or empty, persistentClass is returned -
makeIdGenerator
public static void makeIdGenerator(SimpleValue id, String generatorType, String generatorName, Mappings mappings, Map<String, IdGenerator> localGenerators) apply an id generator to a SimpleValue -
isEmptyAnnotationValue
-
buildAnyValue
public static Any buildAnyValue(String anyMetaDefName, Ejb3JoinColumn[] columns, javax.persistence.Column metaColumn, PropertyData inferredData, boolean cascadeOnDelete, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, Mappings mappings) -
bindAnyMetaDefs
-
getMappedSuperclassOrNull
public static MappedSuperclass getMappedSuperclassOrNull(XClass declaringClass, Map<XClass, InheritanceState> inheritanceStatePerClass, Mappings mappings) -
getPath
-