Class Overview
JSR 175 annotation binder which reads the annotations from classes, applies the
principles of the EJB3 spec and produces the Hibernate configuration-time metamodel
(the classes in the org.hibernate.mapping
package)
Summary
Public Methods |
static
void
|
bindClass(XClass clazzToProcess, Map<XClass, InheritanceState> inheritanceStatePerClass, Mappings mappings)
Bind a class having JSR175 annotations.
|
static
void
|
bindDefaults(Mappings mappings)
|
static
void
|
bindPackage(String packageName, Mappings mappings)
|
static
Map<XClass, InheritanceState>
|
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
Component
|
createComponent(PropertyHolder propertyHolder, PropertyData inferredData, boolean isComponentEmbedded, boolean isIdentifierMapper, Mappings mappings)
|
static
Component
|
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
|
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
FetchMode
|
getFetchMode(FetchType fetch)
|
static
boolean
|
isDefault(XClass clazz, Mappings mappings)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
static
void
bindClass
(XClass clazzToProcess, Map<XClass, InheritanceState> inheritanceStatePerClass, Mappings mappings)
Bind a class having JSR175 annotations. Subclasses have to be bound after its parent class.
Parameters
clazzToProcess
| entity to bind as XClass instance |
inheritanceStatePerClass
| Meta data about the inheritance relationships for all mapped classes |
mappings
| Mapping meta data |
public
static
void
bindDefaults
(Mappings mappings)
public
static
void
bindPackage
(String packageName, Mappings mappings)
public
static
Map<XClass, InheritanceState>
buildInheritanceStates
(List<XClass> orderedClasses, Mappings mappings)
For the mapped entities build some temporary data-structure containing information about the
inheritance status of a class.
Parameters
orderedClasses
| Order list of all annotated entities and their mapped superclasses |
Returns
- A map of
InheritanceState
s keyed against their XClass
.
public
static
Component
fillComponent
(PropertyHolder propertyHolder, PropertyData inferredData, AccessType propertyAccessor, boolean isNullable, EntityBinder entityBinder, boolean isComponentEmbedded, boolean isIdentifierMapper, boolean inSecondPass, Mappings mappings, Map<XClass, InheritanceState> inheritanceStatePerClass)
public
static
Component
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)
public
static
FetchMode
getFetchMode
(FetchType fetch)
public
static
boolean
isDefault
(XClass clazz, Mappings mappings)
Protected Methods
protected
static
void
defineFetchingStrategy
(ToOne toOne, XProperty property)