public interface InFlightMetadataCollector extends Mapping, MetadataImplementor
Modifier and Type | Interface and Description |
---|---|
static interface |
InFlightMetadataCollector.DelayedPropertyReferenceHandler |
static class |
InFlightMetadataCollector.DuplicateSecondaryTableException |
static interface |
InFlightMetadataCollector.EntityTableXref |
Modifier and Type | Method and Description |
---|---|
void |
addAnyMetaDef(AnyMetaDef defAnn) |
void |
addAttributeConverter(AttributeConverterDefinition converter) |
void |
addAttributeConverter(Class<? extends AttributeConverter> converterClass) |
void |
addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
Add metadata pertaining to an auxiliary database object to this repository.
|
AnnotatedClassType |
addClassType(org.hibernate.annotations.common.reflection.XClass clazz) |
void |
addCollectionBinding(Collection collection)
Add collection mapping metadata to this repository.
|
void |
addColumnNameBinding(Table table,
Identifier logicalColumnName,
Column column) |
void |
addColumnNameBinding(Table table,
String logicalColumnName,
Column column) |
void |
addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generatorDefinition) |
void |
addDefaultNamedNativeQuery(NamedSQLQueryDefinition query) |
void |
addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition procedureCallDefinition) |
void |
addDefaultQuery(NamedQueryDefinition queryDefinition) |
void |
addDefaultResultSetMapping(ResultSetMappingDefinition definition) |
void |
addDelayedPropertyReferenceHandler(InFlightMetadataCollector.DelayedPropertyReferenceHandler handler) |
Table |
addDenormalizedTable(String schema,
String catalog,
String name,
boolean isAbstract,
String subselect,
Table includedTable)
Adds a 'denormalized table' to this repository.
|
void |
addEntityBinding(PersistentClass persistentClass)
Add the PersistentClass for an entity mapping.
|
InFlightMetadataCollector.EntityTableXref |
addEntityTableXref(String entityName,
Identifier primaryTableLogicalName,
Table primaryTable,
InFlightMetadataCollector.EntityTableXref superEntityTableXref) |
void |
addFetchProfile(FetchProfile profile) |
void |
addFilterDefinition(FilterDefinition definition)
Adds a filter definition to this repository.
|
void |
addIdentifierGenerator(IdentifierGeneratorDefinition generatorDefinition) |
void |
addImport(String entityName,
String rename)
Adds an import (HQL entity rename).
|
void |
addJpaIndexHolders(Table table,
List<JPAIndexHolder> jpaIndexHolders) |
void |
addMappedBy(String name,
String mappedBy,
String propertyName) |
void |
addMappedSuperclass(Class type,
MappedSuperclass mappedSuperclass) |
void |
addNamedEntityGraph(NamedEntityGraphDefinition namedEntityGraphDefinition)
Adds metadata for a named entity graph to this repository
|
void |
addNamedNativeQuery(NamedSQLQueryDefinition query)
Adds metadata for a named SQL query to this repository.
|
void |
addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
Adds metadata for a named stored procedure call to this repository.
|
void |
addNamedQuery(NamedQueryDefinition query)
Adds metadata for a named query to this repository.
|
void |
addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entity,
PropertyData propertyAnnotatedElement) |
void |
addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entity,
PropertyData specJPropertyData,
String s) |
void |
addPropertyReference(String entityName,
String propertyName) |
void |
addPropertyReferencedAssociation(String s,
String propertyName,
String syntheticPropertyName) |
void |
addResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping)
Adds the metadata for a named SQL result set mapping to this repository.
|
void |
addSecondPass(SecondPass secondPass) |
void |
addSecondPass(SecondPass sp,
boolean onTopOfTheQueue) |
Table |
addTable(String schema,
String catalog,
String name,
String subselect,
boolean isAbstract)
Adds table metadata to this repository returning the created
metadata instance.
|
void |
addTableNameBinding(Identifier logicalName,
Table table) |
void |
addTableNameBinding(String schema,
String catalog,
String logicalName,
String realTableName,
Table denormalizedSuperTable) |
void |
addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entity,
PropertyData propertyAnnotatedElement) |
void |
addTypeDefinition(TypeDefinition typeDefinition)
Adds a type definition to this metadata repository.
|
void |
addUniqueConstraintHolders(Table table,
List<UniqueConstraintHolder> uniqueConstraints) |
void |
addUniqueConstraints(Table table,
List uniqueConstraints) |
void |
addUniquePropertyReference(String entityName,
String propertyName) |
AnyMetaDef |
getAnyMetaDef(String anyMetaDefName) |
Collection<AttributeConverterDefinition> |
getAttributeConverters() |
AnnotatedClassType |
getClassType(org.hibernate.annotations.common.reflection.XClass clazz) |
Database |
getDatabase()
Retrieve the database model.
|
Map<String,PersistentClass> |
getEntityBindingMap()
Needed for SecondPass handling
|
InFlightMetadataCollector.EntityTableXref |
getEntityTableXref(String entityName) |
String |
getFromMappedBy(String ownerEntityName,
String propertyName) |
Map<String,Join> |
getJoins(String entityName) |
String |
getLogicalColumnName(Table table,
Identifier physicalName) |
String |
getLogicalColumnName(Table table,
String physicalName) |
String |
getLogicalTableName(Table ownerTable) |
MappedSuperclass |
getMappedSuperclass(Class type) |
String |
getPhysicalColumnName(Table table,
Identifier logicalName) |
String |
getPhysicalColumnName(Table table,
String logicalName) |
String |
getPhysicalTableName(Identifier logicalName) |
String |
getPhysicalTableName(String logicalName) |
PropertyData |
getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass persistentXClass,
String propertyName) |
PropertyData |
getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass persistentXClass,
String propertyName) |
String |
getPropertyReferencedAssociation(String entityName,
String mappedBy) |
TypeResolver |
getTypeResolver() |
boolean |
isInSecondPass() |
NaturalIdUniqueKeyBinder |
locateNaturalIdUniqueKeyBinder(String entityName) |
void |
registerNaturalIdUniqueKeyBinder(String entityName,
NaturalIdUniqueKeyBinder ukBinder) |
buildNamedQueryRepository, getMappedSuperclassMappingsCopy, getMetadataBuildingOptions, validate
buildSessionFactory, collectTableMappings, getCollectionBinding, getCollectionBindings, getEntityBinding, getEntityBindings, getFetchProfile, getFetchProfiles, getFilterDefinition, getFilterDefinitions, getIdentifierGenerator, getImports, getNamedEntityGraph, getNamedEntityGraphs, getNamedNativeQueryDefinition, getNamedNativeQueryDefinitions, getNamedProcedureCallDefinitions, getNamedQueryDefinition, getNamedQueryDefinitions, getResultSetMapping, getResultSetMappingDefinitions, getSessionFactoryBuilder, getSqlFunctionMap, getTypeDefinition, getUUID
getIdentifierGeneratorFactory, getIdentifierPropertyName, getIdentifierType, getReferencedPropertyType
void addEntityBinding(PersistentClass persistentClass) throws DuplicateMappingException
persistentClass
- The entity metadataDuplicateMappingException
- Indicates there was already an entry
corresponding to the given entity name.Map<String,PersistentClass> getEntityBindingMap()
void addImport(String entityName, String rename) throws DuplicateMappingException
entityName
- The entity name being renamed.rename
- The renameDuplicateMappingException
- If rename already is mapped to another
entity name in this repository.void addCollectionBinding(Collection collection) throws DuplicateMappingException
collection
- The collection metadataDuplicateMappingException
- Indicates there was already an entry
corresponding to the given collection roleTable addTable(String schema, String catalog, String name, String subselect, boolean isAbstract)
schema
- The named schema in which the table belongs (or null).catalog
- The named catalog in which the table belongs (or null).name
- The table namesubselect
- A select statement which defines a logical table, much
like a DB view.isAbstract
- Is the table abstract (i.e. not really existing in the DB)?Table addDenormalizedTable(String schema, String catalog, String name, boolean isAbstract, String subselect, Table includedTable) throws DuplicateMappingException
schema
- The named schema in which the table belongs (or null).catalog
- The named catalog in which the table belongs (or null).name
- The table nameisAbstract
- Is the table abstract (i.e. not really existing in the DB)?subselect
- A select statement which defines a logical table, much
like a DB view.includedTable
- ???DuplicateMappingException
- If such a table mapping already exists.void addNamedQuery(NamedQueryDefinition query) throws DuplicateMappingException
query
- The metadataDuplicateMappingException
- If a query already exists with that name.void addNamedNativeQuery(NamedSQLQueryDefinition query) throws DuplicateMappingException
query
- The metadataDuplicateMappingException
- If a query already exists with that name.void addResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping) throws DuplicateMappingException
sqlResultSetMapping
- The metadataDuplicateMappingException
- If metadata for another SQL result mapping was
already found under the given name.void addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition) throws DuplicateMappingException
definition
- The procedure call informationDuplicateMappingException
- If a query already exists with that name.void addNamedEntityGraph(NamedEntityGraphDefinition namedEntityGraphDefinition)
namedEntityGraphDefinition
- The procedure call informationDuplicateMappingException
- If an entity graph already exists with that name.void addTypeDefinition(TypeDefinition typeDefinition)
typeDefinition
- The named type definition to add.DuplicateMappingException
- If a TypeDefinition already exists with that name.void addFilterDefinition(FilterDefinition definition)
definition
- The filter definition to add.DuplicateMappingException
- If a FilterDefinition already exists with that name.void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
auxiliaryDatabaseObject
- The metadata.void addFetchProfile(FetchProfile profile)
TypeResolver getTypeResolver()
getTypeResolver
in interface MetadataImplementor
Database getDatabase()
Metadata
getDatabase
in interface Metadata
void addIdentifierGenerator(IdentifierGeneratorDefinition generatorDefinition)
void addAttributeConverter(AttributeConverterDefinition converter)
void addAttributeConverter(Class<? extends AttributeConverter> converterClass)
Collection<AttributeConverterDefinition> getAttributeConverters()
void addSecondPass(SecondPass secondPass)
void addSecondPass(SecondPass sp, boolean onTopOfTheQueue)
void addTableNameBinding(Identifier logicalName, Table table)
void addTableNameBinding(String schema, String catalog, String logicalName, String realTableName, Table denormalizedSuperTable)
String getPhysicalTableName(Identifier logicalName)
void addColumnNameBinding(Table table, Identifier logicalColumnName, Column column)
void addColumnNameBinding(Table table, String logicalColumnName, Column column)
String getPhysicalColumnName(Table table, Identifier logicalName) throws MappingException
MappingException
String getPhysicalColumnName(Table table, String logicalName) throws MappingException
MappingException
String getLogicalColumnName(Table table, Identifier physicalName)
void addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generatorDefinition)
void addDefaultQuery(NamedQueryDefinition queryDefinition)
void addDefaultNamedNativeQuery(NamedSQLQueryDefinition query)
void addDefaultResultSetMapping(ResultSetMappingDefinition definition)
void addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition procedureCallDefinition)
void addAnyMetaDef(AnyMetaDef defAnn)
AnyMetaDef getAnyMetaDef(String anyMetaDefName)
AnnotatedClassType addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
AnnotatedClassType getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
void addMappedSuperclass(Class type, MappedSuperclass mappedSuperclass)
MappedSuperclass getMappedSuperclass(Class type)
PropertyData getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass persistentXClass, String propertyName)
void addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entity, PropertyData propertyAnnotatedElement)
void addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entity, PropertyData specJPropertyData, String s)
void addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entity, PropertyData propertyAnnotatedElement)
PropertyData getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass persistentXClass, String propertyName)
boolean isInSecondPass()
NaturalIdUniqueKeyBinder locateNaturalIdUniqueKeyBinder(String entityName)
void registerNaturalIdUniqueKeyBinder(String entityName, NaturalIdUniqueKeyBinder ukBinder)
void addDelayedPropertyReferenceHandler(InFlightMetadataCollector.DelayedPropertyReferenceHandler handler)
void addPropertyReferencedAssociation(String s, String propertyName, String syntheticPropertyName)
String getPropertyReferencedAssociation(String entityName, String mappedBy)
void addUniqueConstraintHolders(Table table, List<UniqueConstraintHolder> uniqueConstraints)
void addJpaIndexHolders(Table table, List<JPAIndexHolder> jpaIndexHolders)
InFlightMetadataCollector.EntityTableXref getEntityTableXref(String entityName)
InFlightMetadataCollector.EntityTableXref addEntityTableXref(String entityName, Identifier primaryTableLogicalName, Table primaryTable, InFlightMetadataCollector.EntityTableXref superEntityTableXref)
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.