Package | Description |
---|---|
org.hibernate.cache.internal | |
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 | |
org.hibernate.ejb.metamodel | |
org.hibernate.envers.configuration | |
org.hibernate.envers.configuration.metadata | |
org.hibernate.envers.configuration.metadata.reader | |
org.hibernate.hql.spi | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.mapping |
This package defines the Hibernate configuration-time metamodel.
|
org.hibernate.persister.entity |
This package abstracts persistence mechanisms for
entities, and defines the Hibernate runtime
metamodel.
|
org.hibernate.persister.internal | |
org.hibernate.persister.spi | |
org.hibernate.tuple |
This package defines a runtime metamodel for entities at
the object level and abstracts the differences between
the various entity modes.
|
org.hibernate.tuple.entity |
Modifier and Type | Method and Description |
---|---|
static CacheDataDescriptionImpl |
CacheDataDescriptionImpl.decode(PersistentClass model) |
Modifier and Type | Field and Description |
---|---|
protected Map<String,PersistentClass> |
Configuration.classes |
Modifier and Type | Method and Description |
---|---|
PersistentClass |
Mappings.getClass(String entityName)
Retrieves the entity mapping metadata for the given entity name.
|
PersistentClass |
Configuration.MappingsImpl.getClass(String entityName) |
PersistentClass |
Configuration.getClassMapping(String entityName)
Get the mapping for a particular entity
|
PersistentClass |
PropertyHolder.getPersistentClass() |
PersistentClass |
ComponentPropertyHolder.getPersistentClass() |
PersistentClass |
CollectionPropertyHolder.getPersistentClass() |
PersistentClass |
ClassPropertyHolder.getPersistentClass() |
PersistentClass |
Mappings.locatePersistentClassByEntityName(String entityName)
Retrieves the entity mapping metadata for the given entity name, potentially accounting
for imports.
|
PersistentClass |
Configuration.MappingsImpl.locatePersistentClassByEntityName(String entityName) |
Modifier and Type | Method and Description |
---|---|
Iterator<PersistentClass> |
Configuration.getClassMappings()
Iterate the entity mappings
|
Iterator<PersistentClass> |
Mappings.iterateClasses()
Retrieves an iterator over the entity metadata present in this repository.
|
Iterator<PersistentClass> |
Configuration.MappingsImpl.iterateClasses() |
Modifier and Type | Method and Description |
---|---|
void |
Mappings.addClass(PersistentClass persistentClass)
Add entity mapping metadata.
|
void |
Configuration.MappingsImpl.addClass(PersistentClass persistentClass) |
void |
Ejb3JoinColumn.addDefaultJoinColumnName(PersistentClass referencedEntity,
String logicalReferencedColumn) |
void |
Mappings.addJoins(PersistentClass persistentClass,
Map<String,Join> joins)
Add join metadata for a persistent entity.
|
void |
Configuration.MappingsImpl.addJoins(PersistentClass persistentClass,
Map<String,Join> joins) |
static void |
HbmBinder.bindClass(org.dom4j.Element node,
PersistentClass persistentClass,
Mappings mappings,
Map inheritedMetas) |
static void |
HbmBinder.bindCompositeId(org.dom4j.Element node,
Component component,
PersistentClass persistentClass,
String propertyName,
Mappings mappings,
Map inheritedMetas) |
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 int |
Ejb3JoinColumn.checkReferencedColumnsType(Ejb3JoinColumn[] columns,
PersistentClass referencedEntity,
Mappings mappings) |
void |
Ejb3JoinColumn.copyReferencedStructureAndCreateDefaultJoinColumns(PersistentClass referencedEntity,
Iterator columnIterator,
SimpleValue value) |
protected static void |
HbmBinder.createClassProperties(org.dom4j.Element node,
PersistentClass persistentClass,
Mappings mappings,
Map inheritedMetas) |
protected static void |
HbmBinder.createClassProperties(org.dom4j.Element node,
PersistentClass persistentClass,
Mappings mappings,
Map inheritedMetas,
UniqueKey uniqueKey,
boolean mutable,
boolean nullable,
boolean naturalId) |
static void |
BinderHelper.createSyntheticPropertyReference(Ejb3JoinColumn[] columns,
PersistentClass ownerEntity,
PersistentClass associatedEntity,
Value value,
boolean inverse,
Mappings mappings) |
static Object |
BinderHelper.findColumnOwner(PersistentClass persistentClass,
String columnName,
Mappings mappings)
Find the column owner (ie PersistentClass or Join) of columnName.
|
static Property |
BinderHelper.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
|
void |
Ejb3JoinColumn.linkValueUsingDefaultColumnNaming(Column referencedColumn,
PersistentClass referencedEntity,
SimpleValue value) |
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 |
---|
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) |
Modifier and Type | Method and Description |
---|---|
static void |
TableBinder.bindFk(PersistentClass referencedEntity,
PersistentClass destinationEntity,
Ejb3JoinColumn[] columns,
SimpleValue value,
boolean unique,
Mappings mappings) |
static void |
CollectionBinder.bindManytoManyInverseFk(PersistentClass referencedEntity,
Ejb3JoinColumn[] columns,
SimpleValue value,
boolean unique,
Mappings mappings)
bind the inverse FK of a ManyToMany
If we are in a mappedBy case, read the columns from the associated
collection element
Otherwise delegates to the usual algorithm
|
protected Collection |
SetBinder.createCollection(PersistentClass persistentClass) |
protected Collection |
PrimitiveArrayBinder.createCollection(PersistentClass persistentClass) |
protected Collection |
MapBinder.createCollection(PersistentClass persistentClass) |
protected Collection |
ListBinder.createCollection(PersistentClass persistentClass) |
protected Collection |
IdBagBinder.createCollection(PersistentClass persistentClass) |
protected abstract Collection |
CollectionBinder.createCollection(PersistentClass persistentClass) |
protected Collection |
BagBinder.createCollection(PersistentClass persistentClass) |
protected Collection |
ArrayBinder.createCollection(PersistentClass persistentClass) |
protected Value |
MapBinder.createFormulatedValue(Value value,
Collection collection,
String targetPropertyName,
PersistentClass associatedClass,
Mappings mappings) |
static void |
TableBinder.linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity,
Iterator columnIterator,
Ejb3JoinColumn[] columns,
SimpleValue value) |
Constructor and Description |
---|
EntityBinder(Entity ejb3Ann,
Entity hibAnn,
XClass annotatedClass,
PersistentClass persistentClass,
Mappings mappings) |
Modifier and Type | Method and Description |
---|---|
PersistentClass |
Ejb3Configuration.getClassMapping(String persistentClass)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MetamodelImpl |
MetamodelImpl.buildMetamodel(Iterator<PersistentClass> persistentClasses,
SessionFactoryImplementor sessionFactory)
|
static MetamodelImpl |
MetamodelImpl.buildMetamodel(Iterator<PersistentClass> persistentClasses,
SessionFactoryImplementor sessionFactory,
boolean ignoreUnsupported)
Build the metamodel using the information from the collection of Hibernate
PersistentClass models as well as the Hibernate SessionFactory . |
Modifier and Type | Method and Description |
---|---|
PersistentClass |
PersistentClassGraphDefiner.getValue(String entityName) |
Modifier and Type | Method and Description |
---|---|
Collection<Map.Entry<PersistentClass,ClassAuditingData>> |
ClassesAuditingData.getAllClassAuditedData() |
List<PersistentClass> |
PersistentClassGraphDefiner.getNeighbours(PersistentClass pc) |
List<PersistentClass> |
PersistentClassGraphDefiner.getValues() |
Modifier and Type | Method and Description |
---|---|
void |
ClassesAuditingData.addClassAuditingData(PersistentClass pc,
ClassAuditingData cad)
Stores information about auditing meta-data for the given class.
|
List<PersistentClass> |
PersistentClassGraphDefiner.getNeighbours(PersistentClass pc) |
String |
PersistentClassGraphDefiner.getRepresentation(PersistentClass pc) |
Modifier and Type | Method and Description |
---|---|
void |
AuditMetadataGenerator.generateFirstPass(PersistentClass pc,
ClassAuditingData auditingData,
EntityXmlMappingData xmlMappingData,
boolean isAudited) |
void |
AuditMetadataGenerator.generateSecondPass(PersistentClass pc,
ClassAuditingData auditingData,
EntityXmlMappingData xmlMappingData) |
static InheritanceType |
InheritanceType.get(PersistentClass pc) |
Constructor and Description |
---|
AnnotationsMetadataReader(GlobalConfiguration globalCfg,
ReflectionManager reflectionManager,
PersistentClass pc) |
Modifier and Type | Method and Description |
---|---|
protected Table |
PersistentTableBulkIdStrategy.generateIdTableDefinition(PersistentClass entityMapping) |
Constructor and Description |
---|
FilterConfiguration(String name,
String condition,
boolean autoAliasInjection,
Map<String,String> aliasTableMap,
Map<String,String> aliasEntityMap,
PersistentClass persistentClass) |
Modifier and Type | Class and Description |
---|---|
class |
JoinedSubclass
A subclass in a table-per-subclass mapping
|
class |
RootClass
The root class of an inheritance hierarchy
|
class |
SingleTableSubclass |
class |
Subclass
A sublass in a table-per-class-hierarchy mapping
|
class |
UnionSubclass
A subclass in a table-per-concrete-class mapping
|
Modifier and Type | Method and Description |
---|---|
PersistentClass |
OneToMany.getAssociatedClass() |
PersistentClass |
Component.getOwner() |
PersistentClass |
Collection.getOwner() |
PersistentClass |
Property.getPersistentClass() |
PersistentClass |
Join.getPersistentClass() |
PersistentClass |
Subclass.getSuperclass() |
PersistentClass |
RootClass.getSuperclass() |
abstract PersistentClass |
PersistentClass.getSuperclass() |
PersistentClass |
MappedSuperclass.getSuperPersistentClass()
Returns the PersistentClass of the first superclass marked as @Entity
or null if none exists
|
Modifier and Type | Method and Description |
---|---|
void |
OneToMany.setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many side
|
void |
Component.setOwner(PersistentClass owner) |
void |
Collection.setOwner(PersistentClass owner)
Deprecated.
Inject the owner into constructor.
|
void |
Property.setPersistentClass(PersistentClass persistentClass) |
void |
Join.setPersistentClass(PersistentClass persistentClass) |
void |
Subclass.setSuperclass(PersistentClass superclass) |
Modifier and Type | Method and Description |
---|---|
protected String |
UnionSubclassEntityPersister.generateSubquery(PersistentClass model,
Mapping mapping) |
protected void |
AbstractEntityPersister.initSubclassPropertyAliasesMap(PersistentClass model)
Must be called by subclasses, at the end of their constructors
|
Constructor and Description |
---|
AbstractEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
SessionFactoryImplementor factory) |
JoinedSubclassEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
SessionFactoryImplementor factory,
Mapping mapping) |
SingleTableEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
SessionFactoryImplementor factory,
Mapping mapping) |
UnionSubclassEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
SessionFactoryImplementor factory,
Mapping mapping) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
PersisterFactoryImpl.createEntityPersister(PersistentClass metadata,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg) |
Class<? extends EntityPersister> |
StandardPersisterClassResolver.getEntityPersisterClass(PersistentClass metadata) |
Modifier and Type | Method and Description |
---|---|
EntityPersister |
PersisterFactory.createEntityPersister(PersistentClass model,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdAccessStrategy,
SessionFactoryImplementor factory,
Mapping cfg)
Create an entity persister instance.
|
Class<? extends EntityPersister> |
PersisterClassResolver.getEntityPersisterClass(PersistentClass metadata)
Returns the entity persister class for a given entityName or null
if the entity persister class should be the default.
|
Modifier and Type | Method and Description |
---|---|
static IdentifierProperty |
PropertyFactory.buildIdentifierProperty(PersistentClass mappedEntity,
IdentifierGenerator generator)
Generates an IdentifierProperty representation of the for a given entity mapping.
|
Constructor and Description |
---|
Dom4jInstantiator(PersistentClass mappingInfo) |
DynamicMapInstantiator(PersistentClass mappingInfo) |
PojoInstantiator(PersistentClass persistentClass,
ReflectionOptimizer.InstantiationOptimizer optimizer) |
Modifier and Type | Method and Description |
---|---|
protected Instantiator |
PojoEntityTuplizer.buildInstantiator(PersistentClass persistentClass)
Build an appropriate Instantiator for the given mapped entity.
|
protected Instantiator |
DynamicMapEntityTuplizer.buildInstantiator(PersistentClass mappingInfo)
Build an appropriate Instantiator for the given mapped entity.
|
protected abstract Instantiator |
AbstractEntityTuplizer.buildInstantiator(PersistentClass mappingInfo)
Build an appropriate Instantiator for the given mapped entity.
|
protected Getter |
PojoEntityTuplizer.buildPropertyGetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Getter for the given property.
|
protected Getter |
DynamicMapEntityTuplizer.buildPropertyGetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Getter for the given property.
|
protected abstract Getter |
AbstractEntityTuplizer.buildPropertyGetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Getter for the given property.
|
protected Setter |
PojoEntityTuplizer.buildPropertySetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Setter for the given property.
|
protected Setter |
DynamicMapEntityTuplizer.buildPropertySetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Setter for the given property.
|
protected abstract Setter |
AbstractEntityTuplizer.buildPropertySetter(Property mappedProperty,
PersistentClass mappedEntity)
Build an appropriate Setter for the given property.
|
protected ProxyFactory |
PojoEntityTuplizer.buildProxyFactory(PersistentClass persistentClass,
Getter idGetter,
Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity.
|
protected ProxyFactory |
DynamicMapEntityTuplizer.buildProxyFactory(PersistentClass mappingInfo,
Getter idGetter,
Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity.
|
protected abstract ProxyFactory |
AbstractEntityTuplizer.buildProxyFactory(PersistentClass mappingInfo,
Getter idGetter,
Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity.
|
protected ProxyFactory |
PojoEntityTuplizer.buildProxyFactoryInternal(PersistentClass persistentClass,
Getter idGetter,
Setter idSetter) |
EntityTuplizer |
EntityTuplizerFactory.constructDefaultTuplizer(EntityMode entityMode,
EntityMetamodel metamodel,
PersistentClass persistentClass)
Construct am instance of the default tuplizer for the given entity-mode.
|
EntityTuplizer |
EntityTuplizerFactory.constructTuplizer(Class<? extends EntityTuplizer> tuplizerClass,
EntityMetamodel metamodel,
PersistentClass persistentClass)
Construct an instance of the given tuplizer class.
|
EntityTuplizer |
EntityTuplizerFactory.constructTuplizer(String tuplizerClassName,
EntityMetamodel metamodel,
PersistentClass persistentClass)
Construct an instance of the given tuplizer class.
|
Constructor and Description |
---|
AbstractEntityTuplizer(EntityMetamodel entityMetamodel,
PersistentClass mappingInfo)
Constructs a new AbstractEntityTuplizer instance.
|
EntityMetamodel(PersistentClass persistentClass,
SessionFactoryImplementor sessionFactory) |
PojoEntityTuplizer(EntityMetamodel entityMetamodel,
PersistentClass mappedEntity) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.