public interface InFlightMetadataCollector extends Mapping, MetadataImplementor
Modifier and Type | Interface and Description |
---|---|
static interface |
InFlightMetadataCollector.DelayedPropertyReferenceHandler |
static class |
InFlightMetadataCollector.DuplicateSecondaryTableException |
static interface |
InFlightMetadataCollector.EntityTableXref |
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)
AttributeConverterAutoApplyHandler getAttributeConverterAutoApplyHandler()
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(XClass clazz)
AnnotatedClassType getClassType(XClass clazz)
void addMappedSuperclass(Class type, MappedSuperclass mappedSuperclass)
MappedSuperclass getMappedSuperclass(Class type)
PropertyData getPropertyAnnotatedWithMapsId(XClass persistentXClass, String propertyName)
void addPropertyAnnotatedWithMapsId(XClass entity, PropertyData propertyAnnotatedElement)
void addPropertyAnnotatedWithMapsIdSpecj(XClass entity, PropertyData specJPropertyData, String s)
void addToOneAndIdProperty(XClass entity, PropertyData propertyAnnotatedElement)
PropertyData getPropertyAnnotatedWithIdAndToOne(XClass persistentXClass, String propertyName)
boolean isInSecondPass()
NaturalIdUniqueKeyBinder locateNaturalIdUniqueKeyBinder(String entityName)
void registerNaturalIdUniqueKeyBinder(String entityName, NaturalIdUniqueKeyBinder ukBinder)
ClassmateContext getClassmateContext()
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 © 2017 JBoss by Red Hat. All rights reserved.