接口的使用
org.hibernate.boot.spi.MetadataBuildingContext
-
使用MetadataBuildingContext的程序包 程序包 说明 org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.internal org.hibernate.boot.model.convert.internal org.hibernate.boot.model.convert.spi org.hibernate.boot.model.naming Represents a proposed new approach to allowing hooks into the process of determining the name of database objects (tables, columns, constraints, etc).org.hibernate.boot.model.source.internal.hbm org.hibernate.boot.model.source.spi org.hibernate.boot.spi 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.mapping This package defines the Hibernate configuration-time metamodel.org.hibernate.type.spi -
-
org.hibernate.boot中MetadataBuildingContext的使用
参数类型为MetadataBuildingContext的org.hibernate.boot中的方法 修饰符和类型 方法 说明 ConverterDescriptorAttributeConverterInfo. toConverterDescriptor(MetadataBuildingContext context) -
org.hibernate.boot.internal中MetadataBuildingContext的使用
实现MetadataBuildingContext的org.hibernate.boot.internal中的类 修饰符和类型 类 说明 classMetadataBuildingContextRootImpl参数类型为MetadataBuildingContext的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 MetadataImplInFlightMetadataCollectorImpl. buildMetadataInstance(MetadataBuildingContext buildingContext)Builds the complete and immutable Metadata instance from the collected info.voidInFlightMetadataCollectorImpl. processSecondPasses(MetadataBuildingContext buildingContext)Ugh!protected voidInFlightMetadataCollectorImpl. secondPassCompileForeignKeys(Table table, Set<ForeignKey> done, MetadataBuildingContext buildingContext) -
org.hibernate.boot.model.convert.internal中MetadataBuildingContext的使用
参数类型为MetadataBuildingContext的org.hibernate.boot.model.convert.internal中的方法 修饰符和类型 方法 说明 ConverterDescriptorAttributeConverterManager. findAutoApplyConverterForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAttributeConverterManager. findAutoApplyConverterForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAttributeConverterManager. findAutoApplyConverterForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptorBypassedImpl. getAutoAppliedConverterDescriptorForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptorStandardImpl. getAutoAppliedConverterDescriptorForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptorBypassedImpl. getAutoAppliedConverterDescriptorForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptorStandardImpl. getAutoAppliedConverterDescriptorForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptorBypassedImpl. getAutoAppliedConverterDescriptorForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptorStandardImpl. getAutoAppliedConverterDescriptorForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context) -
org.hibernate.boot.model.convert.spi中MetadataBuildingContext的使用
参数类型为MetadataBuildingContext的org.hibernate.boot.model.convert.spi中的方法 修饰符和类型 方法 说明 ConverterDescriptorConverterAutoApplyHandler. findAutoApplyConverterForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorConverterAutoApplyHandler. findAutoApplyConverterForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorConverterAutoApplyHandler. findAutoApplyConverterForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptor. getAutoAppliedConverterDescriptorForAttribute(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptor. getAutoAppliedConverterDescriptorForCollectionElement(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context)ConverterDescriptorAutoApplicableConverterDescriptor. getAutoAppliedConverterDescriptorForMapKey(org.hibernate.annotations.common.reflection.XProperty xProperty, MetadataBuildingContext context) -
org.hibernate.boot.model.naming中MetadataBuildingContext的使用
返回MetadataBuildingContext的org.hibernate.boot.model.naming中的方法 修饰符和类型 方法 说明 MetadataBuildingContextImplicitNameSource. getBuildingContext()Access to the current building context.protected abstract MetadataBuildingContextObjectNameNormalizer. getBuildingContext()Access the contextual information related to the current process of building metadata.参数类型为MetadataBuildingContext的org.hibernate.boot.model.naming中的方法 修饰符和类型 方法 说明 IdentifierNamingStrategyHelper. determineImplicitName(MetadataBuildingContext buildingContext)Called when the user supplied no explicit name/identifier for the given database object.IdentifierNamingStrategyHelper. handleExplicitName(String explicitName, MetadataBuildingContext buildingContext)Called when the user has supplied an explicit name for the database object.protected IdentifierImplicitNamingStrategyJpaCompliantImpl. toIdentifier(String stringForm, MetadataBuildingContext buildingContext)Easy hook to build an Identifier using the keyword safe IdentifierHelper.IdentifierNamingStrategyHelper. toPhysicalName(Identifier logicalName, MetadataBuildingContext buildingContext)Handle converting a logical name to a physical name -
org.hibernate.boot.model.source.internal.hbm中MetadataBuildingContext的使用
org.hibernate.boot.model.source.internal.hbm中MetadataBuildingContext的子接口 修饰符和类型 接口 说明 interfaceHbmLocalMetadataBuildingContextAccess to contextual information specific to ahbm.xmlmapping.实现MetadataBuildingContext的org.hibernate.boot.model.source.internal.hbm中的类 修饰符和类型 类 说明 classMappingDocumentAggregates together information about a mapping document.返回MetadataBuildingContext的org.hibernate.boot.model.source.internal.hbm中的方法 修饰符和类型 方法 说明 MetadataBuildingContextCompositeIdentifierSingularAttributeSourceBasicImpl. getBuildingContext()MetadataBuildingContextPluralAttributeElementSourceBasicImpl. getBuildingContext()参数类型为MetadataBuildingContext的org.hibernate.boot.model.source.internal.hbm中的方法 修饰符和类型 方法 说明 voidModelBinder. finishUp(MetadataBuildingContext context)static ModelBinderModelBinder. prepare(MetadataBuildingContext context)static ClassHelper. reflectedPropertyClass(MetadataBuildingContext buildingContext, Class attributeOwnerClass, String attributeName)static ClassHelper. reflectedPropertyClass(MetadataBuildingContext buildingContext, String attributeOwnerClassName, String attributeName)参数类型为MetadataBuildingContext的org.hibernate.boot.model.source.internal.hbm中的构造器 构造器 说明 HbmMetadataSourceProcessorImpl(Collection<Binding> xmlBindings, MetadataBuildingContext rootBuildingContext)HbmMetadataSourceProcessorImpl(ManagedResources managedResources, MetadataBuildingContext rootBuildingContext)MappingDocument(JaxbHbmHibernateMapping documentRoot, Origin origin, MetadataBuildingContext rootBuildingContext)ModelBinder(MetadataBuildingContext context)RelationalObjectBinder(MetadataBuildingContext buildingContext) -
org.hibernate.boot.model.source.spi中MetadataBuildingContext的使用
org.hibernate.boot.model.source.spi中MetadataBuildingContext的子接口 修饰符和类型 接口 说明 interfaceLocalMetadataBuildingContextSpecialization of the MetadataBuildingContext contract specific to a given origin. -
org.hibernate.boot.spi中MetadataBuildingContext的使用
参数类型为MetadataBuildingContext的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 Collection<MappingDocument>AdditionalJaxbMappingProducer. produceAdditionalMappings(MetadataImplementor metadata, org.jboss.jandex.IndexView jandexIndex, MappingBinder mappingBinder, MetadataBuildingContext buildingContext)已过时。 -
org.hibernate.cfg中MetadataBuildingContext的使用
返回MetadataBuildingContext的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 protected MetadataBuildingContextEjb3Column. getBuildingContext()protected MetadataBuildingContextAbstractPropertyHolder. getContext()Get the mappings参数类型为MetadataBuildingContext的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 static voidBinderHelper. bindAnyMetaDefs(org.hibernate.annotations.common.reflection.XAnnotatedElement annotatedElement, MetadataBuildingContext context)static voidAnnotationBinder. bindClass(org.hibernate.annotations.common.reflection.XClass clazzToProcess, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context)Bind a class having JSR175 annotations.static voidAnnotationBinder. bindDefaults(MetadataBuildingContext context)static voidAnnotationBinder. bindPackage(String packageName, MetadataBuildingContext context)static AnyBinderHelper. buildAnyValue(String anyMetaDefName, Ejb3JoinColumn[] columns, javax.persistence.Column metaColumn, PropertyData inferredData, boolean cascadeOnDelete, boolean lazy, Nullability nullability, PropertyHolder propertyHolder, EntityBinder entityBinder, boolean optional, MetadataBuildingContext context)static Ejb3Column[]Ejb3Column. buildColumnFromAnnotation(javax.persistence.Column[] anns, Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, String suffixForDefaultColumnName, Map<String,Join> secondaryTables, MetadataBuildingContext context)static Ejb3Column[]Ejb3Column. buildColumnFromAnnotation(javax.persistence.Column[] anns, Formula formulaAnn, Nullability nullability, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext context)static IndexColumnIndexColumn. buildColumnFromAnnotation(javax.persistence.OrderColumn ann, PropertyHolder propertyHolder, PropertyData inferredData, Map<String,Join> secondaryTables, MetadataBuildingContext buildingContext)JPA 2@OrderColumnprocessing.static IndexColumnIndexColumn. buildColumnFromAnnotation(IndexColumn ann, PropertyHolder propertyHolder, PropertyData inferredData, MetadataBuildingContext buildingContext)Legacy@IndexColumnprocessing.static Ejb3DiscriminatorColumnEjb3DiscriminatorColumn. buildDiscriminatorColumn(javax.persistence.DiscriminatorType type, javax.persistence.DiscriminatorColumn discAnn, DiscriminatorFormula discFormulaAnn, MetadataBuildingContext context)static Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState>AnnotationBinder. buildInheritanceStates(List<org.hibernate.annotations.common.reflection.XClass> orderedClasses, MetadataBuildingContext buildingContext)For the mapped entities build some temporary data-structure containing information about the inheritance status of a class.static Ejb3JoinColumnEjb3JoinColumn. buildJoinColumn(javax.persistence.PrimaryKeyJoinColumn pkJoinAnn, javax.persistence.JoinColumn joinAnn, Value identifier, Map<String,Join> joins, PropertyHolder propertyHolder, MetadataBuildingContext context)Build JoinColumn for a JOINED hierarchystatic Ejb3JoinColumn[]Ejb3JoinColumn. buildJoinColumns(javax.persistence.JoinColumn[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)static Ejb3JoinColumn[]Ejb3JoinColumn. buildJoinColumnsOrFormulas(JoinColumnOrFormula[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)static Ejb3JoinColumn[]Ejb3JoinColumn. buildJoinColumnsWithDefaultColumnSuffix(javax.persistence.JoinColumn[] anns, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, String suffixForDefaultColumnName, MetadataBuildingContext buildingContext)static Ejb3JoinColumnEjb3JoinColumn. buildJoinFormula(JoinFormula ann, String mappedBy, Map<String,Join> joins, PropertyHolder propertyHolder, String propertyName, MetadataBuildingContext buildingContext)build join formulastatic Ejb3JoinColumn[]Ejb3JoinColumn. buildJoinTableJoinColumns(javax.persistence.JoinColumn[] annJoins, Map<String,Join> secondaryTables, PropertyHolder propertyHolder, String propertyName, String mappedBy, MetadataBuildingContext buildingContext)static PropertyHolderPropertyHolderBuilder. buildPropertyHolder(org.hibernate.annotations.common.reflection.XClass clazzToProcess, PersistentClass persistentClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)static CollectionPropertyHolderPropertyHolderBuilder. buildPropertyHolder(Collection collection, String path, org.hibernate.annotations.common.reflection.XClass clazzToProcess, org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)build a property holder on top of a collectionstatic PropertyHolderPropertyHolderBuilder. buildPropertyHolder(Component component, String path, PropertyData inferredData, PropertyHolder parent, MetadataBuildingContext context)build a component property holderstatic PropertyHolderPropertyHolderBuilder. buildPropertyHolder(PersistentClass persistentClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)must only be used on second level phases (has to be settled already) static intEjb3JoinColumn. checkReferencedColumnsType(Ejb3JoinColumn[] columns, PersistentClass referencedEntity, MetadataBuildingContext context)static ComponentAnnotationBinder. createComponent(PropertyHolder propertyHolder, PropertyData inferredData, boolean isComponentEmbedded, boolean isIdentifierMapper, MetadataBuildingContext context)static voidBinderHelper. createSyntheticPropertyReference(Ejb3JoinColumn[] columns, PersistentClass ownerEntity, PersistentClass associatedEntity, Value value, boolean inverse, MetadataBuildingContext context)static ComponentAnnotationBinder. fillComponent(PropertyHolder propertyHolder, PropertyData inferredData, AccessType propertyAccessor, boolean isNullable, EntityBinder entityBinder, boolean isComponentEmbedded, boolean isIdentifierMapper, boolean inSecondPass, MetadataBuildingContext buildingContext, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)static ComponentAnnotationBinder. fillComponent(PropertyHolder propertyHolder, PropertyData inferredData, PropertyData baseInferredData, AccessType propertyAccessor, boolean isNullable, EntityBinder entityBinder, boolean isComponentEmbedded, boolean isIdentifierMapper, boolean inSecondPass, MetadataBuildingContext buildingContext, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)static ObjectBinderHelper. findColumnOwner(PersistentClass persistentClass, String columnName, MetadataBuildingContext context)Find the column owner (ie PersistentClass or Join) of columnName.static StringAnnotationBinder. generatorType(javax.persistence.GeneratedValue generatedValueAnn, MetadataBuildingContext buildingContext, org.hibernate.annotations.common.reflection.XClass javaTypeXClass)static MappedSuperclassBinderHelper. getMappedSuperclassOrNull(org.hibernate.annotations.common.reflection.XClass declaringClass, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext context)static StringToOneBinder. getReferenceEntityName(PropertyData propertyData, org.hibernate.annotations.common.reflection.XClass targetEntity, MetadataBuildingContext buildingContext)static StringToOneBinder. getReferenceEntityName(PropertyData propertyData, MetadataBuildingContext buildingContext)static org.hibernate.annotations.common.reflection.XClassToOneBinder. getTargetEntity(PropertyData propertyData, MetadataBuildingContext buildingContext)static booleanAnnotationBinder. isDefault(org.hibernate.annotations.common.reflection.XClass clazz, MetadataBuildingContext context)static voidBinderHelper. makeIdGenerator(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, Map<String,IdentifierGeneratorDefinition> localGenerators)apply an id generator to a SimpleValuestatic voidBinderHelper. makeIdGenerator(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, IdentifierGeneratorDefinition foreignKGeneratorDefinition)apply an id generator to a SimpleValuevoidEjb3Column. setBuildingContext(MetadataBuildingContext context)ConverterDescriptorAttributeConverterDefinition. toConverterDescriptor(MetadataBuildingContext context)已过时。参数类型为MetadataBuildingContext的org.hibernate.cfg中的构造器 构造器 说明 ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, Map<String,Join> joins, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)ClassPropertyHolder(PersistentClass persistentClass, org.hibernate.annotations.common.reflection.XClass entityXClass, EntityBinder entityBinder, MetadataBuildingContext context, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)CollectionPropertyHolder(Collection collection, String path, org.hibernate.annotations.common.reflection.XClass clazzToProcess, org.hibernate.annotations.common.reflection.XProperty property, PropertyHolder parentPropertyHolder, MetadataBuildingContext context)CollectionSecondPass(MetadataBuildingContext buildingContext, Collection collection)CollectionSecondPass(MetadataBuildingContext buildingContext, Collection collection, Map inheritedMetas)ComponentPropertyHolder(Component component, String path, PropertyData inferredData, PropertyHolder parent, MetadataBuildingContext context)CopyIdentifierComponentSecondPass(Component comp, String referencedEntityName, Ejb3JoinColumn[] joinColumns, MetadataBuildingContext buildingContext)IdGeneratorResolverSecondPass(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext)IdGeneratorResolverSecondPass(SimpleValue id, org.hibernate.annotations.common.reflection.XProperty idXProperty, String generatorType, String generatorName, MetadataBuildingContext buildingContext, IdentifierGeneratorDefinition localIdentifierGeneratorDefinition)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, MetadataBuildingContext buildingContext)IndexOrUniqueKeySecondPass(String indexName, Ejb3Column column, MetadataBuildingContext buildingContext)Build an indexIndexOrUniqueKeySecondPass(String indexName, Ejb3Column column, MetadataBuildingContext buildingContext, boolean unique)Build an index if unique is false or a Unique Key if unique is trueIndexOrUniqueKeySecondPass(Table table, String indexName, String[] columns, MetadataBuildingContext buildingContext)Build an indexInheritanceState(org.hibernate.annotations.common.reflection.XClass clazz, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass, MetadataBuildingContext buildingContext)JoinedSubclassFkSecondPass(JoinedSubclass entity, Ejb3JoinColumn[] inheritanceJoinedColumns, SimpleValue key, MetadataBuildingContext buildingContext)OneToOneSecondPass(String mappedBy, String ownerEntity, String ownerProperty, PropertyHolder propertyHolder, PropertyData inferredData, org.hibernate.annotations.common.reflection.XClass targetEntity, boolean ignoreNotFound, boolean cascadeOnDelete, boolean optional, String cascadeStrategy, Ejb3JoinColumn[] columns, MetadataBuildingContext buildingContext)ToOneFkSecondPass(ToOne value, Ejb3JoinColumn[] columns, boolean unique, String entityClassName, String path, MetadataBuildingContext buildingContext)VerifyFetchProfileReferenceSecondPass(String fetchProfileName, FetchProfile.FetchOverride fetch, MetadataBuildingContext buildingContext) -
org.hibernate.cfg.annotations中MetadataBuildingContext的使用
返回MetadataBuildingContext的org.hibernate.cfg.annotations中的方法 修饰符和类型 方法 说明 protected MetadataBuildingContextCollectionBinder. getBuildingContext()参数类型为MetadataBuildingContext的org.hibernate.cfg.annotations中的方法 修饰符和类型 方法 说明 static voidTableBinder. addIndexes(Table hibTable, javax.persistence.Index[] indexes, MetadataBuildingContext buildingContext)static voidTableBinder. addIndexes(Table hibTable, Index[] indexes, MetadataBuildingContext buildingContext)voidEntityBinder. applyCaching(org.hibernate.annotations.common.reflection.XClass clazzToProcess, javax.persistence.SharedCacheMode sharedCacheMode, MetadataBuildingContext context)static voidTableBinder. bindFk(PersistentClass referencedEntity, PersistentClass destinationEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)static voidCollectionBinder. bindManytoManyInverseFk(PersistentClass referencedEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)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 algorithmstatic voidQueryBinder. bindNamedStoredProcedureQuery(javax.persistence.NamedStoredProcedureQuery annotation, MetadataBuildingContext context, boolean isDefault)static voidQueryBinder. bindNativeQueries(javax.persistence.NamedNativeQueries queriesAnn, MetadataBuildingContext context, boolean isDefault)static voidQueryBinder. bindNativeQueries(NamedNativeQueries queriesAnn, MetadataBuildingContext context)static voidQueryBinder. bindNativeQuery(javax.persistence.NamedNativeQuery queryAnn, MetadataBuildingContext context, boolean isDefault)static voidQueryBinder. bindNativeQuery(NamedNativeQuery queryAnn, MetadataBuildingContext context)protected voidCollectionBinder. bindOneToManySecondPass(Collection collection, Map persistentClasses, Ejb3JoinColumn[] fkJoinColumns, org.hibernate.annotations.common.reflection.XClass collectionType, boolean cascadeDeleteEnabled, boolean ignoreNotFound, MetadataBuildingContext buildingContext, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStatePerClass)static voidQueryBinder. bindQueries(javax.persistence.NamedQueries queriesAnn, MetadataBuildingContext context, boolean isDefault)static voidQueryBinder. bindQueries(NamedQueries queriesAnn, MetadataBuildingContext context)static voidQueryBinder. bindQuery(javax.persistence.NamedQuery queryAnn, MetadataBuildingContext context, boolean isDefault)static voidQueryBinder. bindQuery(NamedQuery queryAnn, MetadataBuildingContext context)static voidQueryBinder. bindSqlResultSetMapping(javax.persistence.SqlResultSetMapping ann, MetadataBuildingContext context, boolean isDefault)static voidQueryBinder. bindSqlResultSetMappings(javax.persistence.SqlResultSetMappings ann, MetadataBuildingContext context, boolean isDefault)protected booleanCollectionBinder. bindStarToManySecondPass(Map persistentClasses, org.hibernate.annotations.common.reflection.XClass collType, Ejb3JoinColumn[] fkJoinColumns, Ejb3JoinColumn[] keyColumns, Ejb3JoinColumn[] inverseColumns, Ejb3Column[] elementColumns, boolean isEmbedded, org.hibernate.annotations.common.reflection.XProperty property, boolean unique, TableBinder associationTableBinder, boolean ignoreNotFound, MetadataBuildingContext buildingContext)return true if it's a Fk, false if it's an association tableprotected booleanIdBagBinder. bindStarToManySecondPass(Map persistentClasses, org.hibernate.annotations.common.reflection.XClass collType, Ejb3JoinColumn[] fkJoinColumns, Ejb3JoinColumn[] keyColumns, Ejb3JoinColumn[] inverseColumns, Ejb3Column[] elementColumns, boolean isEmbedded, org.hibernate.annotations.common.reflection.XProperty property, boolean unique, TableBinder associationTableBinder, boolean ignoreNotFound, MetadataBuildingContext buildingContext)static TableTableBinder. buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, List<JPAIndexHolder> jpaIndexHolders, String constraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)static TableTableBinder. buildAndFillTable(String schema, String catalog, ObjectNameSource nameSource, NamingStrategyHelper namingStrategyHelper, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, List<JPAIndexHolder> jpaIndexHolders, String constraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)protected ValueMapBinder. createFormulatedValue(Value value, Collection collection, String targetPropertyName, PersistentClass associatedClass, PersistentClass targetPropertyPersistentClass, MetadataBuildingContext buildingContext)static CollectionBinderCollectionBinder. getCollectionBinder(String entityName, org.hibernate.annotations.common.reflection.XProperty property, boolean isIndexed, boolean isHibernateExtensionMapping, MetadataBuildingContext buildingContext)collection binder factorySecondPassCollectionBinder. getSecondPass(Ejb3JoinColumn[] fkJoinColumns, Ejb3JoinColumn[] keyColumns, Ejb3JoinColumn[] inverseColumns, Ejb3Column[] elementColumns, Ejb3Column[] mapKeyColumns, Ejb3JoinColumn[] mapKeyManyToManyColumns, boolean isEmbedded, org.hibernate.annotations.common.reflection.XProperty property, org.hibernate.annotations.common.reflection.XClass collType, boolean ignoreNotFound, boolean unique, TableBinder assocTableBinder, MetadataBuildingContext buildingContext)SecondPassListBinder. getSecondPass(Ejb3JoinColumn[] fkJoinColumns, Ejb3JoinColumn[] keyColumns, Ejb3JoinColumn[] inverseColumns, Ejb3Column[] elementColumns, Ejb3Column[] mapKeyColumns, Ejb3JoinColumn[] mapKeyManyToManyColumns, boolean isEmbedded, org.hibernate.annotations.common.reflection.XProperty property, org.hibernate.annotations.common.reflection.XClass collType, boolean ignoreNotFound, boolean unique, TableBinder assocTableBinder, MetadataBuildingContext buildingContext)SecondPassMapBinder. getSecondPass(Ejb3JoinColumn[] fkJoinColumns, Ejb3JoinColumn[] keyColumns, Ejb3JoinColumn[] inverseColumns, Ejb3Column[] elementColumns, Ejb3Column[] mapKeyColumns, Ejb3JoinColumn[] mapKeyManyToManyColumns, boolean isEmbedded, org.hibernate.annotations.common.reflection.XProperty property, org.hibernate.annotations.common.reflection.XClass collType, boolean ignoreNotFound, boolean unique, TableBinder assocTableBinder, MetadataBuildingContext buildingContext)voidCollectionBinder. setBuildingContext(MetadataBuildingContext buildingContext)voidPropertyBinder. setBuildingContext(MetadataBuildingContext buildingContext)voidSimpleValueBinder. setBuildingContext(MetadataBuildingContext buildingContext)voidTableBinder. setBuildingContext(MetadataBuildingContext buildingContext)参数类型为MetadataBuildingContext的org.hibernate.cfg.annotations中的构造器 构造器 说明 EntityBinder(javax.persistence.Entity ejb3Ann, Entity hibAnn, org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)ResultsetMappingSecondPass(javax.persistence.SqlResultSetMapping ann, MetadataBuildingContext context, boolean isDefault) -
org.hibernate.mapping中MetadataBuildingContext的使用
-
org.hibernate.type.spi中MetadataBuildingContext的使用
返回MetadataBuildingContext的org.hibernate.type.spi中的方法 修饰符和类型 方法 说明 MetadataBuildingContextTypeConfiguration. getMetadataBuildingContext()Obtain the MetadataBuildingContext currently scoping the TypeConfiguration.参数类型为MetadataBuildingContext的org.hibernate.type.spi中的方法 修饰符和类型 方法 说明 voidTypeConfiguration. scope(MetadataBuildingContext metadataBuildingContext)
-