类的使用
org.hibernate.mapping.Collection
-
使用Collection的程序包 程序包 说明 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.spi org.hibernate.cache.cfg.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.mapping This package defines the Hibernate configuration-time metamodel.org.hibernate.persister.collection This package abstracts the persistence mechanism for collections.org.hibernate.persister.internal org.hibernate.persister.spi -
-
org.hibernate.boot中Collection的使用
返回Collection的org.hibernate.boot中的方法 修饰符和类型 方法 说明 CollectionMetadata. getCollectionBinding(String role)Retrieves the collection mapping metadata for the given collection role.返回变量类型为Collection的类型的org.hibernate.boot中的方法 修饰符和类型 方法 说明 Collection<Collection>Metadata. getCollectionBindings()Retrieves the Collection metadata representation for all known collections. -
org.hibernate.boot.internal中Collection的使用
返回Collection的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 CollectionInFlightMetadataCollectorImpl. getCollectionBinding(String role)CollectionMetadataImpl. getCollectionBinding(String role)返回变量类型为Collection的类型的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 Map<String,Collection>MetadataImpl. getCollectionBindingMap()Collection<Collection>InFlightMetadataCollectorImpl. getCollectionBindings()Collection<Collection>MetadataImpl. getCollectionBindings()参数类型为Collection的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 voidInFlightMetadataCollectorImpl. addCollectionBinding(Collection collection) -
org.hibernate.boot.spi中Collection的使用
返回Collection的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 CollectionAbstractDelegatingMetadata. getCollectionBinding(String role)返回变量类型为Collection的类型的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 Collection<Collection>AbstractDelegatingMetadata. getCollectionBindings()参数类型为Collection的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 voidInFlightMetadataCollector. addCollectionBinding(Collection collection)Add collection mapping metadata to this repository. -
org.hibernate.cache.cfg.internal中Collection的使用
参数类型为Collection的org.hibernate.cache.cfg.internal中的方法 修饰符和类型 方法 说明 DomainDataRegionConfigImpl.BuilderDomainDataRegionConfigImpl.Builder. addCollectionConfig(Collection collectionDescriptor, AccessType accessType)参数类型为Collection的org.hibernate.cache.cfg.internal中的构造器 构造器 说明 CollectionDataCachingConfigImpl(Collection collectionDescriptor, AccessType accessType) -
org.hibernate.cfg中Collection的使用
返回Collection的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 CollectionCollectionPropertyHolder. getCollectionBinding()参数类型为Collection的org.hibernate.cfg中的方法 修饰符和类型 方法 说明 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 collection参数类型为Collection的org.hibernate.cfg中的构造器 构造器 说明 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) -
org.hibernate.cfg.annotations中Collection的使用
声明为Collection的org.hibernate.cfg.annotations中的字段 修饰符和类型 字段 说明 protected CollectionCollectionBinder. collection返回Collection的org.hibernate.cfg.annotations中的方法 修饰符和类型 方法 说明 protected CollectionArrayBinder. createCollection(PersistentClass persistentClass)protected CollectionBagBinder. createCollection(PersistentClass persistentClass)protected abstract CollectionCollectionBinder. createCollection(PersistentClass persistentClass)protected CollectionIdBagBinder. createCollection(PersistentClass persistentClass)protected CollectionListBinder. createCollection(PersistentClass persistentClass)protected CollectionMapBinder. createCollection(PersistentClass persistentClass)protected CollectionPrimitiveArrayBinder. createCollection(PersistentClass persistentClass)protected CollectionSetBinder. createCollection(PersistentClass persistentClass)CollectionCollectionBinder. getCollection()参数类型为Collection的org.hibernate.cfg.annotations中的方法 修饰符和类型 方法 说明 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)protected ValueMapBinder. createFormulatedValue(Value value, Collection collection, String targetPropertyName, PersistentClass associatedClass, PersistentClass targetPropertyPersistentClass, MetadataBuildingContext buildingContext) -
org.hibernate.mapping中Collection的使用
org.hibernate.mapping中Collection的子类 修饰符和类型 类 说明 classArrayAn array mapping has a primary key consisting of the key columns + index column.classBagA bag permits duplicates, so it has no primary keyclassIdentifierBagAn IdentifierBag has a primary key consisting of just the identifier columnclassIdentifierCollectionA collection with a synthetic "identifier" columnclassIndexedCollectionIndexed collections include Lists, Maps, arrays and primitive arrays.classListA list mapping has a primary key consisting of the key columns + index column.classMapA map has a primary key consisting of the key columns + index columns.classPrimitiveArrayA primitive array has a primary key consisting of the key columns + index column.classSetA set with no nullable element columns.参数类型为Collection的org.hibernate.mapping中的方法 修饰符和类型 方法 说明 booleanCollection. isSame(Collection other)booleanIdentifierCollection. isSame(Collection other)booleanIndexedCollection. isSame(Collection other)参数类型为Collection的org.hibernate.mapping中的构造器 构造器 说明 Component(MetadataBuildingContext metadata, Collection collection)Component(MetadataImplementor metadata, Collection collection)已过时。UserComponent(MetadataBuildingContext, Collection)instead. -
org.hibernate.persister.collection中Collection的使用
参数类型为Collection的org.hibernate.persister.collection中的构造器 构造器 说明 AbstractCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)BasicCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)OneToManyPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext) -
org.hibernate.persister.internal中Collection的使用
参数类型为Collection的org.hibernate.persister.internal中的方法 修饰符和类型 方法 说明 CollectionPersisterPersisterFactoryImpl. createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)Class<? extends CollectionPersister>StandardPersisterClassResolver. getCollectionPersisterClass(Collection metadata) -
org.hibernate.persister.spi中Collection的使用
参数类型为Collection的org.hibernate.persister.spi中的方法 修饰符和类型 方法 说明 CollectionPersisterPersisterFactory. createCollectionPersister(Collection collectionBinding, CollectionDataAccess cacheAccessStrategy, PersisterCreationContext creationContext)Create a collection persister instance.Class<? extends CollectionPersister>PersisterClassResolver. getCollectionPersisterClass(Collection metadata)Returns the collection persister class for a given collection role or null if the collection persister class should be the default.
-