接口的使用
org.hibernate.collection.spi.PersistentCollection
-
使用PersistentCollection的程序包 程序包 说明 org.hibernate.action.internal Internals for action processing.org.hibernate.cache.spi.entry This package defines formats for disassembled state kept in the second level cache.org.hibernate.collection.internal Internal implementations and support for persistent collectionsorg.hibernate.engine.internal Support for many of the internal workings of Hibernate.org.hibernate.engine.loading.internal Internal classes used to track loading of data, potentially across multiple ResultSetsorg.hibernate.engine.spi org.hibernate.event.internal This package defines a default set of event listeners that implements the default behaviors of Hibernate.org.hibernate.event.spi org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs.org.hibernate.persister.collection This package abstracts the persistence mechanism for collections.org.hibernate.pretty Classes for pretty printing things for exception and log messages.org.hibernate.type A Hibernate Type is a strategy for mapping a Java property type to a JDBC type or types.org.hibernate.usertype Interfaces for user-defined custom types. -
-
org.hibernate.action.internal中PersistentCollection的使用
返回PersistentCollection的org.hibernate.action.internal中的方法 修饰符和类型 方法 说明 protected PersistentCollectionCollectionAction. getCollection() -
org.hibernate.cache.spi.entry中PersistentCollection的使用
参数类型为PersistentCollection的org.hibernate.cache.spi.entry中的方法 修饰符和类型 方法 说明 voidCollectionCacheEntry. assemble(PersistentCollection collection, CollectionPersister persister, Object owner)Assembles the collection from the cached state.参数类型为PersistentCollection的org.hibernate.cache.spi.entry中的构造器 构造器 说明 CollectionCacheEntry(PersistentCollection collection, CollectionPersister persister)Constructs a CollectionCacheEntry -
org.hibernate.collection.internal中PersistentCollection的使用
实现PersistentCollection的org.hibernate.collection.internal中的类 修饰符和类型 类 说明 classAbstractPersistentCollectionBase class implementingPersistentCollectionclassPersistentArrayHolderA persistent wrapper for an array.classPersistentBagAn unordered, unkeyed collection that can contain the same element multiple times.classPersistentIdentifierBagAn IdentifierBag implements "bag" semantics more efficiently than a regular Bag by adding a synthetic identifier column to the table.classPersistentListA persistent wrapper for a java.util.List.classPersistentMapA persistent wrapper for a java.util.Map.classPersistentSetA persistent wrapper for a java.util.Set.classPersistentSortedMapA persistent wrapper for a java.util.SortedMap.classPersistentSortedSetA persistent wrapper for a java.util.SortedSet. -
org.hibernate.engine.internal中PersistentCollection的使用
返回PersistentCollection的org.hibernate.engine.internal中的方法 修饰符和类型 方法 说明 PersistentCollectionStatefulPersistenceContext. addCollectionByKey(CollectionKey collectionKey, PersistentCollection persistentCollection)PersistentCollectionStatefulPersistenceContext. getCollection(CollectionKey collectionKey)PersistentCollectionStatefulPersistenceContext. getCollectionHolder(Object array)PersistentCollectionStatefulPersistenceContext. removeCollectionHolder(Object array)PersistentCollectionStatefulPersistenceContext. useUnownedCollection(CollectionKey key)类型变量类型为PersistentCollection的org.hibernate.engine.internal中的方法参数 修饰符和类型 方法 说明 voidStatefulPersistenceContext. forEachCollectionEntry(BiConsumer<PersistentCollection,CollectionEntry> action, boolean concurrent) -
org.hibernate.engine.loading.internal中PersistentCollection的使用
返回PersistentCollection的org.hibernate.engine.loading.internal中的方法 修饰符和类型 方法 说明 PersistentCollectionLoadingCollectionEntry. getCollection()PersistentCollectionCollectionLoadContext. getLoadingCollection(CollectionPersister persister, Serializable key)Retrieve the collection that is being loaded as part of processing this result set.PersistentCollectionLoadContexts. locateLoadingCollection(CollectionPersister persister, CollectionKey key)Attempt to locate the loading collection given the CollectionKey obtained from the owner's key. -
org.hibernate.engine.spi中PersistentCollection的使用
返回PersistentCollection的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 PersistentCollectionPersistenceContext. addCollectionByKey(CollectionKey collectionKey, PersistentCollection persistentCollection)Adds a collection in the collections-by-key map.PersistentCollectionPersistenceContext. getCollection(CollectionKey collectionKey)Get the collection instance associated with the CollectionKeyPersistentCollectionPersistenceContext. getCollectionHolder(Object array)Get the PersistentCollection object for an arrayPersistentCollectionPersistenceContext. removeCollectionHolder(Object array)Remove the mapping of collection to holder during eviction of the owning entityPersistentCollectionPersistenceContext. useUnownedCollection(CollectionKey key)Take ownership of a previously unowned collection, if one.参数类型为PersistentCollection的org.hibernate.engine.spi中的方法 修饰符和类型 方法 说明 voidBatchFetchQueue. addBatchLoadableCollection(PersistentCollection collection, CollectionEntry ce)If a CollectionEntry represents a batch loadable collection, add it to the queue.PersistentCollectionPersistenceContext. addCollectionByKey(CollectionKey collectionKey, PersistentCollection persistentCollection)Adds a collection in the collections-by-key map.voidPersistenceContext. addCollectionHolder(PersistentCollection holder)Register a PersistentCollection object for an array.CollectionEntryPersistenceContext. addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)add a collection we just pulled out of the cache (does not need initializing)voidPersistenceContext. addInitializedDetachedCollection(CollectionPersister collectionPersister, PersistentCollection collection)add an (initialized) collection that was created by another session and passed into update() (ie. one with a snapshot and existing state on the database)voidPersistenceContext. addNewCollection(CollectionPersister persister, PersistentCollection collection)Add a new collection (ie. a newly created one, just instantiated by the application, with no database state or snapshot)voidPersistenceContext. addNonLazyCollection(PersistentCollection collection)Register a collection for non-lazy loading at the end of the two-phase loadvoidPersistenceContext. addUninitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id)add a collection we just loaded up (still needs initializing)voidPersistenceContext. addUninitializedDetachedCollection(CollectionPersister persister, PersistentCollection collection)add a detached uninitialized collectionvoidPersistenceContext. addUnownedCollection(CollectionKey key, PersistentCollection collection)Add a collection which has no owner loadedvoidCollectionEntry. afterAction(PersistentCollection collection)Called after execution of an actionbooleanPersistenceContext. containsCollection(PersistentCollection collection)Is the given collection associated with this persistence context?CollectionEntryPersistenceContext. getCollectionEntry(PersistentCollection coll)Get the collection entry for a persistent collectionSerializablePersistenceContext. getLoadedCollectionOwnerIdOrNull(PersistentCollection collection)Get the ID for the entity that owned this persistent collection when it was loadedObjectPersistenceContext. getLoadedCollectionOwnerOrNull(PersistentCollection collection)Get the entity that owned this persistent collection when it was loadedCollectionCollectionEntry. getOrphans(String entityName, PersistentCollection collection)Get the collection orphans (entities which were removed from the collection)SerializablePersistenceContext. getSnapshot(PersistentCollection coll)Get the snapshot of the pre-flush collection statevoidSessionDelegatorBaseImpl. initializeCollection(PersistentCollection collection, boolean writing)voidSharedSessionContractImplementor. initializeCollection(PersistentCollection collection, boolean writing)Initialize the collection (if not already initialized)booleanCollectionEntry. isSnapshotEmpty(PersistentCollection collection)voidEntityEntry. overwriteLoadedStateCollectionValue(String propertyName, PersistentCollection collection)voidCollectionEntry. postFlush(PersistentCollection collection)Called after a successful flushvoidCollectionEntry. postInitialize(PersistentCollection collection)voidCollectionEntry. preFlush(PersistentCollection collection)CollectionEntryPersistenceContext. removeCollectionEntry(PersistentCollection collection)Remove aPersistentCollectionfrom thePersistenceContext.voidCollectionEntry. resetStoredSnapshot(PersistentCollection collection, Serializable storedSnapshot)Reset the stored snapshot for both the persistent collection and this collection entry.类型变量类型为PersistentCollection的org.hibernate.engine.spi中的方法参数 修饰符和类型 方法 说明 voidPersistenceContext. forEachCollectionEntry(BiConsumer<PersistentCollection,CollectionEntry> action, boolean concurrent)Execute some action on each entry of the collectionEntries map, optionally iterating on a defensive copy.参数类型为PersistentCollection的org.hibernate.engine.spi中的构造器 构造器 说明 CollectionEntry(PersistentCollection collection, SessionFactoryImplementor factory)For initialized detached collectionsCollectionEntry(PersistentCollection collection, CollectionPersister loadedPersister, Serializable loadedKey, boolean ignore)For collections just loaded from the databaseCollectionEntry(CollectionPersister persister, PersistentCollection collection)For newly wrapped collections, or dereferenced collection wrappers -
org.hibernate.event.internal中PersistentCollection的使用
参数类型为PersistentCollection的org.hibernate.event.internal中的方法 修饰符和类型 方法 说明 protected static booleanProxyVisitor. isOwnerUnchanged(PersistentCollection snapshot, CollectionPersister persister, Serializable id)Has the owner of the collection changed since the collection was snapshotted and detached?protected voidProxyVisitor. reattachCollection(PersistentCollection collection, CollectionType type)Reattach a detached (disassociated) initialized or uninitialized collection wrapper, using a snapshot carried with the collection wrapper -
org.hibernate.event.spi中PersistentCollection的使用
返回PersistentCollection的org.hibernate.event.spi中的方法 修饰符和类型 方法 说明 PersistentCollectionAbstractCollectionEvent. getCollection()参数类型为PersistentCollection的org.hibernate.event.spi中的方法 修饰符和类型 方法 说明 protected static CollectionPersisterAbstractCollectionEvent. getLoadedCollectionPersister(PersistentCollection collection, EventSource source)protected static SerializableAbstractCollectionEvent. getLoadedOwnerIdOrNull(PersistentCollection collection, EventSource source)protected static ObjectAbstractCollectionEvent. getLoadedOwnerOrNull(PersistentCollection collection, EventSource source) -
org.hibernate.internal中PersistentCollection的使用
参数类型为PersistentCollection的org.hibernate.internal中的方法 修饰符和类型 方法 说明 voidSessionImpl. initializeCollection(PersistentCollection collection, boolean writing)voidStatelessSessionImpl. initializeCollection(PersistentCollection collection, boolean writing) -
org.hibernate.persister.collection中PersistentCollection的使用
参数类型为PersistentCollection的org.hibernate.persister.collection中的方法 修饰符和类型 方法 说明 voidAbstractCollectionPersister. deleteRows(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)voidCollectionPersister. deleteRows(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)Delete the persistent state of any elements that were removed from the collectionprotected voidAbstractCollectionPersister. doProcessQueuedOps(PersistentCollection collection, Serializable key, int nextIndex, SharedSessionContractImplementor session)protected abstract voidAbstractCollectionPersister. doProcessQueuedOps(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)protected voidBasicCollectionPersister. doProcessQueuedOps(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)protected voidOneToManyPersister. doProcessQueuedOps(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)protected abstract intAbstractCollectionPersister. doUpdateRows(Serializable key, PersistentCollection collection, SharedSessionContractImplementor session)protected intBasicCollectionPersister. doUpdateRows(Serializable id, PersistentCollection collection, SharedSessionContractImplementor session)protected intOneToManyPersister. doUpdateRows(Serializable id, PersistentCollection collection, SharedSessionContractImplementor session)voidAbstractCollectionPersister. insertRows(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)voidCollectionPersister. insertRows(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)Insert the persistent state of any new collection elementsvoidOneToManyPersister. insertRows(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)voidAbstractCollectionPersister. processQueuedOps(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)voidCollectionPersister. processQueuedOps(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)Process queued operations within the PersistentCollection.voidAbstractCollectionPersister. recreate(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)voidCollectionPersister. recreate(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)(Re)create the collection's persistent statevoidOneToManyPersister. recreate(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)voidAbstractCollectionPersister. updateRows(PersistentCollection collection, Serializable id, SharedSessionContractImplementor session)voidCollectionPersister. updateRows(PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)Update the persistent state of any elements that were modified -
org.hibernate.pretty中PersistentCollection的使用
参数类型为PersistentCollection的org.hibernate.pretty中的方法 修饰符和类型 方法 说明 static StringMessageHelper. collectionInfoString(CollectionPersister persister, PersistentCollection collection, Serializable collectionKey, SharedSessionContractImplementor session)Generate an info message string relating to a particular managed collection. -
org.hibernate.type中PersistentCollection的使用
-
org.hibernate.usertype中PersistentCollection的使用
返回PersistentCollection的org.hibernate.usertype中的方法 修饰符和类型 方法 说明 PersistentCollectionUserCollectionType. instantiate(SharedSessionContractImplementor session, CollectionPersister persister)Instantiate an uninitialized instance of the collection wrapperPersistentCollectionUserCollectionType. wrap(SharedSessionContractImplementor session, Object collection)Wrap an instance of a collection
-