Package | Description |
---|---|
org.hibernate.annotations.common.reflection | |
org.hibernate.annotations.common.reflection.java | |
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.cfg.annotations | |
org.hibernate.ejb.event | |
org.hibernate.envers.configuration.metadata.reader | |
org.hibernate.envers.tools |
Modifier and Type | Method and Description |
---|---|
<T> XClass |
ReflectionManager.classForName(String name,
Class<T> caller) |
XClass |
XMember.getClassOrElementClass()
The type of this property's elements for arrays, the type of the property itself for everything else.
|
XClass |
XMember.getElementClass()
This property's type for simple properties, the type of its elements for arrays and collections.
|
XClass[] |
XClass.getInterfaces() |
XClass |
XMember.getMapKey()
The type of this map's key, or null for anything that is not a map.
|
XClass |
XClass.getSuperclass() |
XClass |
XMember.getType()
This property's XClass.
|
<T> XClass |
ReflectionManager.toXClass(Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
ReflectionManager.equals(XClass class1,
Class<T> class2) |
boolean |
XClass.isAssignableFrom(XClass c) |
Class |
ReflectionManager.toClass(XClass xClazz) |
Modifier and Type | Method and Description |
---|---|
XClass |
JavaReflectionManager.classForName(String name,
Class caller) |
XClass |
JavaXMember.getClassOrElementClass() |
XClass |
JavaXMember.getElementClass() |
XClass |
JavaXMember.getMapKey() |
XClass |
JavaXMember.getType() |
XClass |
JavaReflectionManager.toXClass(Class clazz) |
Modifier and Type | Method and Description |
---|---|
boolean |
JavaReflectionManager.equals(XClass class1,
Class class2) |
Class |
JavaReflectionManager.toClass(XClass xClazz) |
Modifier and Type | Method and Description |
---|---|
XClass |
WrappedInferredData.getClassOrElement() |
XClass |
PropertyPreloadedData.getClassOrElement() |
XClass |
PropertyInferredData.getClassOrElement() |
XClass |
PropertyData.getClassOrElement()
Returns the returned class itself or the element type if an array
|
XClass |
InheritanceState.getClassWithIdClass(boolean evenIfSubclass) |
XClass |
InheritanceState.getClazz() |
XClass |
WrappedInferredData.getDeclaringClass() |
XClass |
PropertyPreloadedData.getDeclaringClass() |
XClass |
PropertyInferredData.getDeclaringClass() |
XClass |
PropertyData.getDeclaringClass()
Return the Class the property is declared on
If the property is declared on a @MappedSuperclass,
this class will be different than the PersistentClass's class
|
XClass |
WrappedInferredData.getPropertyClass() |
XClass |
PropertyPreloadedData.getPropertyClass() |
XClass |
PropertyInferredData.getPropertyClass() |
XClass |
PropertyData.getPropertyClass()
Return the class itself
|
static XClass |
ToOneBinder.getTargetEntity(PropertyData propertyData,
Mappings mappings) |
Modifier and Type | Method and Description |
---|---|
static Map<XClass,InheritanceState> |
AnnotationBinder.buildInheritanceStates(List<XClass> orderedClasses,
Mappings mappings)
For the mapped entities build some temporary data-structure containing information about the
inheritance status of a class.
|
Modifier and Type | Method and Description |
---|---|
void |
Configuration.MetadataSourceQueue.add(XClass annotatedClass) |
AnnotatedClassType |
Mappings.addClassType(XClass clazz)
FIXME should be private but will this break things?
Add a class type.
|
AnnotatedClassType |
Configuration.MappingsImpl.addClassType(XClass clazz) |
void |
PropertyHolder.addProperty(Property prop,
Ejb3Column[] columns,
XClass declaringClass) |
void |
ComponentPropertyHolder.addProperty(Property prop,
Ejb3Column[] columns,
XClass declaringClass) |
void |
CollectionPropertyHolder.addProperty(Property prop,
Ejb3Column[] columns,
XClass declaringClass) |
void |
ClassPropertyHolder.addProperty(Property prop,
Ejb3Column[] columns,
XClass declaringClass) |
void |
PropertyHolder.addProperty(Property prop,
XClass declaringClass) |
void |
ComponentPropertyHolder.addProperty(Property prop,
XClass declaringClass) |
void |
CollectionPropertyHolder.addProperty(Property prop,
XClass declaringClass) |
void |
ClassPropertyHolder.addProperty(Property prop,
XClass declaringClass) |
void |
Mappings.addPropertyAnnotatedWithMapsId(XClass entityType,
PropertyData property) |
void |
Configuration.MappingsImpl.addPropertyAnnotatedWithMapsId(XClass entityType,
PropertyData property) |
void |
Mappings.addPropertyAnnotatedWithMapsIdSpecj(XClass entityType,
PropertyData property,
String mapsIdValue) |
void |
Configuration.MappingsImpl.addPropertyAnnotatedWithMapsIdSpecj(XClass entityType,
PropertyData property,
String mapsIdValue) |
void |
Mappings.addToOneAndIdProperty(XClass entity,
PropertyData property) |
void |
Configuration.MappingsImpl.addToOneAndIdProperty(XClass entityType,
PropertyData property) |
static void |
AnnotationBinder.bindClass(XClass clazzToProcess,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings)
Bind a class having JSR175 annotations.
|
static PropertyHolder |
PropertyHolderBuilder.buildPropertyHolder(Collection collection,
String path,
XClass clazzToProcess,
XProperty property,
PropertyHolder parentPropertyHolder,
Mappings mappings)
buid a property holder on top of a collection
|
static PropertyHolder |
PropertyHolderBuilder.buildPropertyHolder(XClass clazzToProcess,
PersistentClass persistentClass,
EntityBinder entityBinder,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
AnnotatedClassType |
Mappings.getClassType(XClass clazz)
Get and maintain a cache of class type.
|
AnnotatedClassType |
Configuration.MappingsImpl.getClassType(XClass clazz) |
static InheritanceState |
InheritanceState.getInheritanceStateOfSuperEntity(XClass clazz,
Map<XClass,InheritanceState> states) |
static MappedSuperclass |
BinderHelper.getMappedSuperclassOrNull(XClass declaringClass,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings) |
PropertyData |
Mappings.getPropertyAnnotatedWithIdAndToOne(XClass entityType,
String propertyName)
Return the property annotated with @ToOne and @Id if any.
|
PropertyData |
Configuration.MappingsImpl.getPropertyAnnotatedWithIdAndToOne(XClass entityType,
String propertyName) |
PropertyData |
Mappings.getPropertyAnnotatedWithMapsId(XClass entityType,
String propertyName)
Return the property annotated with @MapsId("propertyName") if any.
|
PropertyData |
Configuration.MappingsImpl.getPropertyAnnotatedWithMapsId(XClass entityType,
String propertyName) |
static String |
ToOneBinder.getReferenceEntityName(PropertyData propertyData,
XClass targetEntity,
Mappings mappings) |
static InheritanceState |
InheritanceState.getSuperclassInheritanceState(XClass clazz,
Map<XClass,InheritanceState> states) |
static boolean |
AnnotationBinder.isDefault(XClass clazz,
Mappings mappings) |
void |
InheritanceState.setClazz(XClass clazz) |
Modifier and Type | Method and Description |
---|---|
static void |
AnnotationBinder.bindClass(XClass clazzToProcess,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings)
Bind a class having JSR175 annotations.
|
static Map<XClass,InheritanceState> |
AnnotationBinder.buildInheritanceStates(List<XClass> orderedClasses,
Mappings mappings)
For the mapped entities build some temporary data-structure containing information about the
inheritance status of a class.
|
static PropertyHolder |
PropertyHolderBuilder.buildPropertyHolder(PersistentClass persistentClass,
Map<String,Join> joins,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass)
must only be used on second level phases (
|
static PropertyHolder |
PropertyHolderBuilder.buildPropertyHolder(XClass clazzToProcess,
PersistentClass persistentClass,
EntityBinder entityBinder,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
static Component |
AnnotationBinder.fillComponent(PropertyHolder propertyHolder,
PropertyData inferredData,
AccessType propertyAccessor,
boolean isNullable,
EntityBinder entityBinder,
boolean isComponentEmbedded,
boolean isIdentifierMapper,
boolean inSecondPass,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
static Component |
AnnotationBinder.fillComponent(PropertyHolder propertyHolder,
PropertyData inferredData,
PropertyData baseInferredData,
AccessType propertyAccessor,
boolean isNullable,
EntityBinder entityBinder,
boolean isComponentEmbedded,
boolean isIdentifierMapper,
boolean inSecondPass,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
static InheritanceState |
InheritanceState.getInheritanceStateOfSuperEntity(XClass clazz,
Map<XClass,InheritanceState> states) |
static MappedSuperclass |
BinderHelper.getMappedSuperclassOrNull(XClass declaringClass,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings) |
static InheritanceState |
InheritanceState.getSuperclassInheritanceState(XClass clazz,
Map<XClass,InheritanceState> states) |
void |
Ejb3JoinColumn.setPersistentClass(PersistentClass persistentClass,
Map<String,Join> joins,
Map<XClass,InheritanceState> inheritanceStatePerClass)
Override persistent class on oneToMany Cases for late settings
Must only be used on second level pass binding
|
Constructor and Description |
---|
AbstractPropertyHolder(String path,
PropertyHolder parent,
XClass clazzToProcess,
Mappings mappings) |
ClassPropertyHolder(PersistentClass persistentClass,
XClass clazzToProcess,
EntityBinder entityBinder,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
ClassPropertyHolder(PersistentClass persistentClass,
XClass clazzToProcess,
Map<String,Join> joins,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
CollectionPropertyHolder(Collection collection,
String path,
XClass clazzToProcess,
XProperty property,
PropertyHolder parentPropertyHolder,
Mappings mappings) |
InheritanceState(XClass clazz,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings) |
OneToOneSecondPass(String mappedBy,
String ownerEntity,
String ownerProperty,
PropertyHolder propertyHolder,
PropertyData inferredData,
XClass targetEntity,
boolean ignoreNotFound,
boolean cascadeOnDelete,
boolean optional,
String cascadeStrategy,
Ejb3JoinColumn[] columns,
Mappings mappings) |
PropertyInferredData(XClass declaringClass,
XProperty property,
String propertyAccessor,
ReflectionManager reflectionManager)
Take the annoted element for lazy process
|
PropertyPreloadedData(AccessType defaultAccess,
String propertyName,
XClass returnedClass) |
Constructor and Description |
---|
ClassPropertyHolder(PersistentClass persistentClass,
XClass clazzToProcess,
EntityBinder entityBinder,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
ClassPropertyHolder(PersistentClass persistentClass,
XClass clazzToProcess,
Map<String,Join> joins,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
InheritanceState(XClass clazz,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings) |
Modifier and Type | Field and Description |
---|---|
protected Map<XClass,InheritanceState> |
CollectionBinder.inheritanceStatePerClass |
Modifier and Type | Method and Description |
---|---|
protected void |
CollectionBinder.bindManyToManySecondPass(Collection collValue,
Map persistentClasses,
Ejb3JoinColumn[] joinColumns,
Ejb3JoinColumn[] inverseJoinColumns,
Ejb3Column[] elementColumns,
boolean isEmbedded,
XClass collType,
boolean ignoreNotFound,
boolean unique,
boolean cascadeDeleteEnabled,
TableBinder associationTableBinder,
XProperty property,
PropertyHolder parentPropertyHolder,
String hqlOrderBy,
Mappings mappings) |
protected void |
CollectionBinder.bindOneToManySecondPass(Collection collection,
Map persistentClasses,
Ejb3JoinColumn[] fkJoinColumns,
XClass collectionType,
boolean cascadeDeleteEnabled,
boolean ignoreNotFound,
String hqlOrderBy,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
protected boolean |
IdBagBinder.bindStarToManySecondPass(Map persistentClasses,
XClass collType,
Ejb3JoinColumn[] fkJoinColumns,
Ejb3JoinColumn[] keyColumns,
Ejb3JoinColumn[] inverseColumns,
Ejb3Column[] elementColumns,
boolean isEmbedded,
XProperty property,
boolean unique,
TableBinder associationTableBinder,
boolean ignoreNotFound,
Mappings mappings) |
protected boolean |
CollectionBinder.bindStarToManySecondPass(Map persistentClasses,
XClass collType,
Ejb3JoinColumn[] fkJoinColumns,
Ejb3JoinColumn[] keyColumns,
Ejb3JoinColumn[] inverseColumns,
Ejb3Column[] elementColumns,
boolean isEmbedded,
XProperty property,
boolean unique,
TableBinder associationTableBinder,
boolean ignoreNotFound,
Mappings mappings)
return true if it's a Fk, false if it's an association table
|
SecondPass |
MapBinder.getSecondPass(Ejb3JoinColumn[] fkJoinColumns,
Ejb3JoinColumn[] keyColumns,
Ejb3JoinColumn[] inverseColumns,
Ejb3Column[] elementColumns,
Ejb3Column[] mapKeyColumns,
Ejb3JoinColumn[] mapKeyManyToManyColumns,
boolean isEmbedded,
XProperty property,
XClass collType,
boolean ignoreNotFound,
boolean unique,
TableBinder assocTableBinder,
Mappings mappings) |
SecondPass |
ListBinder.getSecondPass(Ejb3JoinColumn[] fkJoinColumns,
Ejb3JoinColumn[] keyColumns,
Ejb3JoinColumn[] inverseColumns,
Ejb3Column[] elementColumns,
Ejb3Column[] mapKeyColumns,
Ejb3JoinColumn[] mapKeyManyToManyColumns,
boolean isEmbedded,
XProperty property,
XClass collType,
boolean ignoreNotFound,
boolean unique,
TableBinder assocTableBinder,
Mappings mappings) |
SecondPass |
CollectionBinder.getSecondPass(Ejb3JoinColumn[] fkJoinColumns,
Ejb3JoinColumn[] keyColumns,
Ejb3JoinColumn[] inverseColumns,
Ejb3Column[] elementColumns,
Ejb3Column[] mapKeyColumns,
Ejb3JoinColumn[] mapKeyManyToManyColumns,
boolean isEmbedded,
XProperty property,
XClass collType,
boolean ignoreNotFound,
boolean unique,
TableBinder assocTableBinder,
Mappings mappings) |
void |
CollectionBinder.setCollectionType(XClass collectionType) |
void |
PropertyBinder.setDeclaringClass(XClass declaringClass) |
void |
CollectionBinder.setDeclaringClass(XClass declaringClass) |
void |
EntityBinder.setNaturalIdCache(XClass clazzToProcess,
NaturalIdCache naturalIdCacheAnn) |
void |
PropertyBinder.setReturnedClass(XClass returnedClass) |
void |
CollectionBinder.setTargetEntity(XClass targetEntity) |
void |
SimpleValueBinder.setType(XProperty property,
XClass returnedClass,
String declaringClassName) |
Modifier and Type | Method and Description |
---|---|
protected void |
CollectionBinder.bindOneToManySecondPass(Collection collection,
Map persistentClasses,
Ejb3JoinColumn[] fkJoinColumns,
XClass collectionType,
boolean cascadeDeleteEnabled,
boolean ignoreNotFound,
String hqlOrderBy,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
void |
PropertyBinder.setInheritanceStatePerClass(Map<XClass,InheritanceState> inheritanceStatePerClass) |
void |
CollectionBinder.setInheritanceStatePerClass(Map<XClass,InheritanceState> inheritanceStatePerClass) |
Constructor and Description |
---|
EntityBinder(Entity ejb3Ann,
Entity hibAnn,
XClass annotatedClass,
PersistentClass persistentClass,
Mappings mappings) |
Modifier and Type | Method and Description |
---|---|
void |
EntityCallbackHandler.add(XClass entity,
ReflectionManager reflectionManager) |
static Callback[] |
CallbackResolver.resolveCallback(XClass beanClass,
Class annotation,
ReflectionManager reflectionManager) |
Modifier and Type | Method and Description |
---|---|
XClass |
PersistentPropertiesSource.getXClass() |
XClass |
AuditedPropertiesReader.ComponentPropertiesSource.getXClass() |
Modifier and Type | Method and Description |
---|---|
static XProperty |
Tools.getProperty(XClass clazz,
String propertyName) |
static XProperty |
Tools.getProperty(XClass clazz,
String propertyName,
String accessType) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.