Package | Description |
---|---|
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.hql.spi | |
org.hibernate.mapping |
This package defines the Hibernate configuration-time metamodel.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ExtendedMappings
Deprecated.
All functionality has been moved up to
Mappings |
Modifier and Type | Class and Description |
---|---|
protected class |
AnnotationConfiguration.ExtendedMappingsImpl
Deprecated.
|
protected class |
Configuration.MappingsImpl
Internal implementation of the Mappings interface giving access to the Configuration's internal
metadata repository state (
Configuration.classes , Configuration.tables , etc). |
Modifier and Type | Method and Description |
---|---|
Mappings |
Configuration.createMappings()
Create a new Mappings to add class and collection mappings to.
|
protected Mappings |
Ejb3Column.getMappings() |
protected Mappings |
AbstractPropertyHolder.getMappings() |
Modifier and Type | Method and Description |
---|---|
static void |
HbmBinder.bindAny(org.dom4j.Element node,
Any any,
boolean isNullable,
Mappings mappings) |
static void |
BinderHelper.bindAnyMetaDefs(XAnnotatedElement annotatedElement,
Mappings mappings) |
static void |
HbmBinder.bindArray(org.dom4j.Element node,
Array array,
String prefix,
String path,
Mappings mappings,
Map inheritedMetas)
Called for arrays and primitive arrays
|
static void |
HbmBinder.bindClass(org.dom4j.Element node,
PersistentClass persistentClass,
Mappings mappings,
Map inheritedMetas) |
static void |
AnnotationBinder.bindClass(XClass clazzToProcess,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings)
Bind a class having JSR175 annotations.
|
static void |
HbmBinder.bindCollection(org.dom4j.Element node,
Collection collection,
String className,
String path,
Mappings mappings,
Map inheritedMetas)
Called for all collections
|
static void |
HbmBinder.bindCollectionSecondPass(org.dom4j.Element node,
Collection collection,
Map persistentClasses,
Mappings mappings,
Map inheritedMetas)
Called for all collections
|
static void |
HbmBinder.bindColumns(org.dom4j.Element node,
SimpleValue simpleValue,
boolean isNullable,
boolean autoColumn,
String propertyPath,
Mappings mappings) |
static void |
HbmBinder.bindComponent(org.dom4j.Element node,
Component component,
String ownerClassName,
String parentProperty,
String path,
boolean isNullable,
boolean isEmbedded,
Mappings mappings,
Map inheritedMetas,
boolean isIdentifierMapper) |
static void |
HbmBinder.bindComposite(org.dom4j.Element node,
Component component,
String path,
boolean isNullable,
Mappings mappings,
Map inheritedMetas) |
static void |
HbmBinder.bindCompositeId(org.dom4j.Element node,
Component component,
PersistentClass persistentClass,
String propertyName,
Mappings mappings,
Map inheritedMetas) |
static void |
AnnotationBinder.bindDefaults(Mappings mappings) |
static void |
HbmBinder.bindIdentifierCollectionSecondPass(org.dom4j.Element node,
IdentifierCollection collection,
Map persistentClasses,
Mappings mappings,
Map inheritedMetas) |
static void |
HbmBinder.bindJoinedSubclass(org.dom4j.Element node,
JoinedSubclass joinedSubclass,
Mappings mappings,
Map inheritedMetas) |
static void |
HbmBinder.bindListSecondPass(org.dom4j.Element node,
List list,
Map classes,
Mappings mappings,
Map inheritedMetas)
Called for Lists, arrays, primitive arrays
|
static void |
HbmBinder.bindManyToOne(org.dom4j.Element node,
ManyToOne manyToOne,
String path,
boolean isNullable,
Mappings mappings) |
static void |
HbmBinder.bindMapSecondPass(org.dom4j.Element node,
Map map,
Map classes,
Mappings mappings,
Map inheritedMetas)
Called for Maps
|
static void |
HbmBinder.bindOneToMany(org.dom4j.Element node,
OneToMany oneToMany,
Mappings mappings) |
static void |
HbmBinder.bindOneToOne(org.dom4j.Element node,
OneToOne oneToOne,
String path,
boolean isNullable,
Mappings mappings) |
static void |
AnnotationBinder.bindPackage(String packageName,
Mappings mappings) |
static void |
HbmBinder.bindProperty(org.dom4j.Element node,
Property property,
Mappings mappings,
Map inheritedMetas) |
static void |
HbmBinder.bindRoot(XmlDocument metadataXml,
Mappings mappings,
Map inheritedMetas,
Set<String> entityNames)
The main contract into the hbm.xml-based binder.
|
static void |
HbmBinder.bindRootClass(org.dom4j.Element node,
RootClass rootClass,
Mappings mappings,
Map inheritedMetas)
Responsible for performing the bind operation related to an <class/> mapping element.
|
static void |
HbmBinder.bindSimpleValue(org.dom4j.Element node,
SimpleValue simpleValue,
boolean isNullable,
String path,
Mappings mappings) |
static void |
HbmBinder.bindSubclass(org.dom4j.Element node,
Subclass subclass,
Mappings mappings,
Map inheritedMetas) |
static void |
HbmBinder.bindUnionSubclass(org.dom4j.Element node,
UnionSubclass unionSubclass,
Mappings mappings,
Map inheritedMetas) |
static Any |
BinderHelper.buildAnyValue(String anyMetaDefName,
Ejb3JoinColumn[] columns,
Column metaColumn,
PropertyData inferredData,
boolean cascadeOnDelete,
Nullability nullability,
PropertyHolder propertyHolder,
EntityBinder entityBinder,
boolean optional,
Mappings mappings) |
static Ejb3Column[] |
Ejb3Column.buildColumnFromAnnotation(Column[] anns,
Formula formulaAnn,
Nullability nullability,
PropertyHolder propertyHolder,
PropertyData inferredData,
Map<String,Join> secondaryTables,
Mappings mappings) |
static Ejb3Column[] |
Ejb3Column.buildColumnFromAnnotation(Column[] anns,
Formula formulaAnn,
Nullability nullability,
PropertyHolder propertyHolder,
PropertyData inferredData,
String suffixForDefaultColumnName,
Map<String,Join> secondaryTables,
Mappings mappings) |
static IndexColumn |
IndexColumn.buildColumnFromAnnotation(IndexColumn ann,
PropertyHolder propertyHolder,
PropertyData inferredData,
Mappings mappings) |
static IndexColumn |
IndexColumn.buildColumnFromAnnotation(OrderColumn ann,
PropertyHolder propertyHolder,
PropertyData inferredData,
Map<String,Join> secondaryTables,
Mappings mappings) |
static Ejb3DiscriminatorColumn |
Ejb3DiscriminatorColumn.buildDiscriminatorColumn(DiscriminatorType type,
DiscriminatorColumn discAnn,
DiscriminatorFormula discFormulaAnn,
Mappings mappings) |
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 Ejb3JoinColumn |
Ejb3JoinColumn.buildJoinColumn(PrimaryKeyJoinColumn pkJoinAnn,
JoinColumn joinAnn,
Value identifier,
Map<String,Join> joins,
PropertyHolder propertyHolder,
Mappings mappings)
Build JoinColumn for a JOINED hierarchy
|
static Ejb3JoinColumn[] |
Ejb3JoinColumn.buildJoinColumns(JoinColumn[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
Mappings mappings) |
static Ejb3JoinColumn[] |
Ejb3JoinColumn.buildJoinColumnsOrFormulas(JoinColumnsOrFormulas anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
Mappings mappings) |
static Ejb3JoinColumn[] |
Ejb3JoinColumn.buildJoinColumnsWithDefaultColumnSuffix(JoinColumn[] anns,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
String suffixForDefaultColumnName,
Mappings mappings) |
static Ejb3JoinColumn |
Ejb3JoinColumn.buildJoinFormula(JoinFormula ann,
String mappedBy,
Map<String,Join> joins,
PropertyHolder propertyHolder,
String propertyName,
Mappings mappings)
build join formula
|
static Ejb3JoinColumn[] |
Ejb3JoinColumn.buildJoinTableJoinColumns(JoinColumn[] annJoins,
Map<String,Join> secondaryTables,
PropertyHolder propertyHolder,
String propertyName,
String mappedBy,
Mappings mappings) |
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(Component component,
String path,
PropertyData inferredData,
PropertyHolder parent,
Mappings mappings)
build a component property holder
|
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) |
protected static ResultSetMappingDefinition |
ResultSetMappingBinder.buildResultSetMappingDefinition(org.dom4j.Element resultSetElem,
String path,
Mappings mappings)
Build a ResultSetMappingDefinition given a containing element for the "return-XXX" elements
|
static int |
Ejb3JoinColumn.checkReferencedColumnsType(Ejb3JoinColumn[] columns,
PersistentClass referencedEntity,
Mappings mappings) |
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 Component |
AnnotationBinder.createComponent(PropertyHolder propertyHolder,
PropertyData inferredData,
boolean isComponentEmbedded,
boolean isIdentifierMapper,
Mappings mappings) |
static void |
BinderHelper.createSyntheticPropertyReference(Ejb3JoinColumn[] columns,
PersistentClass ownerEntity,
PersistentClass associatedEntity,
Value value,
boolean inverse,
Mappings mappings) |
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 Object |
BinderHelper.findColumnOwner(PersistentClass persistentClass,
String columnName,
Mappings mappings)
Find the column owner (ie PersistentClass or Join) of columnName.
|
static String |
HbmBinder.getClassName(String unqualifiedName,
Mappings model) |
static String |
HbmBinder.getEntityName(org.dom4j.Element elem,
Mappings model) |
static List<String> |
HbmBinder.getExtendsNeeded(XmlDocument metadataXml,
Mappings mappings)
For the given document, locate all extends attributes which refer to
entities (entity-name or class-name) not defined within said document.
|
static MappedSuperclass |
BinderHelper.getMappedSuperclassOrNull(XClass declaringClass,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings) |
protected static NamingStrategyDelegate |
Ejb3Column.getNamingStrategyDelegate(Mappings mappings) |
static String |
ToOneBinder.getReferenceEntityName(PropertyData propertyData,
Mappings mappings) |
static String |
ToOneBinder.getReferenceEntityName(PropertyData propertyData,
XClass targetEntity,
Mappings mappings) |
static XClass |
ToOneBinder.getTargetEntity(PropertyData propertyData,
Mappings mappings) |
static boolean |
AnnotationBinder.isDefault(XClass clazz,
Mappings mappings) |
static void |
BinderHelper.makeIdGenerator(SimpleValue id,
String generatorType,
String generatorName,
Mappings mappings,
Map<String,IdGenerator> localGenerators)
apply an id generator to a SimpleValue
|
void |
Ejb3Column.setMappings(Mappings mappings) |
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) |
CollectionSecondPass(Mappings mappings,
Collection collection) |
CollectionSecondPass(Mappings mappings,
Collection collection,
Map inheritedMetas) |
ComponentPropertyHolder(Component component,
String path,
PropertyData inferredData,
PropertyHolder parent,
Mappings mappings) |
CopyIdentifierComponentSecondPass(Component comp,
String referencedEntityName,
Ejb3JoinColumn[] joinColumns,
Mappings mappings) |
IndexColumn(boolean isImplicit,
String sqlType,
int length,
int precision,
int scale,
String name,
boolean nullable,
boolean unique,
boolean insertable,
boolean updatable,
String secondaryTableName,
Map<String,Join> joins,
PropertyHolder propertyHolder,
Mappings mappings) |
IndexOrUniqueKeySecondPass(String indexName,
Ejb3Column column,
Mappings mappings)
Build an index
|
IndexOrUniqueKeySecondPass(String indexName,
Ejb3Column column,
Mappings mappings,
boolean unique)
Build an index if unique is false or a Unique Key if unique is true
|
IndexOrUniqueKeySecondPass(Table table,
String indexName,
String[] columns,
Mappings mappings)
Build an index
|
InheritanceState(XClass clazz,
Map<XClass,InheritanceState> inheritanceStatePerClass,
Mappings mappings) |
JoinedSubclassFkSecondPass(JoinedSubclass entity,
Ejb3JoinColumn[] inheritanceJoinedColumns,
SimpleValue key,
Mappings mappings) |
NamedSQLQuerySecondPass(org.dom4j.Element queryElem,
String path,
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) |
ResultSetMappingSecondPass(org.dom4j.Element element,
String path,
Mappings mappings) |
ToOneFkSecondPass(ToOne value,
Ejb3JoinColumn[] columns,
boolean unique,
String entityClassName,
String path,
Mappings mappings) |
VerifyFetchProfileReferenceSecondPass(String fetchProfileName,
FetchProfile.FetchOverride fetch,
Mappings mappings) |
Modifier and Type | Method and Description |
---|---|
protected Mappings |
CollectionBinder.getMappings() |
Modifier and Type | Method and Description |
---|---|
static void |
TableBinder.addIndexes(Table hibTable,
Index[] indexes,
Mappings mappings) |
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 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) |
static void |
QueryBinder.bindNativeQueries(NamedNativeQueries queriesAnn,
Mappings mappings) |
static void |
QueryBinder.bindNativeQueries(NamedNativeQueries queriesAnn,
Mappings mappings,
boolean isDefault) |
static void |
QueryBinder.bindNativeQuery(NamedNativeQuery queryAnn,
Mappings mappings) |
static void |
QueryBinder.bindNativeQuery(NamedNativeQuery queryAnn,
Mappings mappings,
boolean isDefault) |
protected void |
CollectionBinder.bindOneToManySecondPass(Collection collection,
Map persistentClasses,
Ejb3JoinColumn[] fkJoinColumns,
XClass collectionType,
boolean cascadeDeleteEnabled,
boolean ignoreNotFound,
String hqlOrderBy,
Mappings mappings,
Map<XClass,InheritanceState> inheritanceStatePerClass) |
static void |
QueryBinder.bindQueries(NamedQueries queriesAnn,
Mappings mappings) |
static void |
QueryBinder.bindQueries(NamedQueries queriesAnn,
Mappings mappings,
boolean isDefault) |
static void |
QueryBinder.bindQuery(NamedQuery queryAnn,
Mappings mappings) |
static void |
QueryBinder.bindQuery(NamedQuery queryAnn,
Mappings mappings,
boolean isDefault) |
static void |
QueryBinder.bindSqlResultsetMapping(SqlResultSetMapping ann,
Mappings mappings,
boolean isDefault) |
static void |
QueryBinder.bindSqlResultsetMappings(SqlResultSetMappings ann,
Mappings mappings,
boolean isDefault) |
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
|
static Table |
TableBinder.buildAndFillTable(String schema,
String catalog,
ObjectNameSource nameSource,
ObjectNameNormalizer.NamingStrategyHelper namingStrategyHelper,
boolean isAbstract,
List<UniqueConstraintHolder> uniqueConstraints,
String constraints,
Table denormalizedSuperTable,
Mappings mappings,
String subselect) |
protected Value |
MapBinder.createFormulatedValue(Value value,
Collection collection,
String targetPropertyName,
PersistentClass associatedClass,
Mappings mappings) |
static Table |
TableBinder.fillTable(String schema,
String catalog,
String realTableName,
String logicalName,
boolean isAbstract,
List uniqueConstraints,
String constraints,
Table denormalizedSuperTable,
Mappings mappings)
|
static CollectionBinder |
CollectionBinder.getCollectionBinder(String entityName,
XProperty property,
boolean isIndexed,
boolean isHibernateExtensionMapping,
Mappings mappings)
collection binder factory
|
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 |
TableBinder.setMappings(Mappings mappings) |
void |
SimpleValueBinder.setMappings(Mappings mappings) |
void |
PropertyBinder.setMappings(Mappings mappings) |
void |
CollectionBinder.setMappings(Mappings mappings) |
Constructor and Description |
---|
EntityBinder(Entity ejb3Ann,
Entity hibAnn,
XClass annotatedClass,
PersistentClass persistentClass,
Mappings mappings) |
ResultsetMappingSecondPass(SqlResultSetMapping ann,
Mappings mappings,
boolean isDefault) |
Modifier and Type | Method and Description |
---|---|
protected void |
PersistentTableBulkIdStrategy.exportTableDefinitions(List<Table> idTableDefinitions,
JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping) |
void |
TemporaryTableBulkIdStrategy.prepare(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping,
Map settings) |
void |
PersistentTableBulkIdStrategy.prepare(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping,
Map settings) |
void |
MultiTableBulkIdStrategy.prepare(JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess,
Mappings mappings,
Mapping mapping,
Map settings)
Prepare the strategy.
|
Modifier and Type | Method and Description |
---|---|
Mappings |
SimpleValue.getMappings() |
Mappings |
Collection.getMappings() |
Copyright © 2018 JBoss by Red Hat. All rights reserved.