Package | Description |
---|---|
org.hibernate.cache.spi |
Defines the integration aspect of Hibernate's second-level
caching allowing "caching back ends" to be plugged in as
a caching provider.
|
org.hibernate.cache.spi.access |
Defines contracts for transactional and concurrent access to cached
entity and
collection data. |
org.hibernate.cache.spi.entry |
This package defines formats for disassembled state kept in the second level cache.
|
org.hibernate.cache.spi.support |
Package intended for simplifying the worked needed to implement
a caching provider.
|
org.hibernate.collection.spi |
SPI definitions for persistent collections
|
org.hibernate.engine.spi | |
org.hibernate.event.spi | |
org.hibernate.loader |
This package defines functionality for processing JDBC
result sets and returning complex graphs of persistent
objects.
|
org.hibernate.loader.collection |
This package defines collection initializers
|
org.hibernate.loader.collection.plan | |
org.hibernate.loader.custom |
This package defines a framework for custom loaders that accept
handwritten SQL
|
org.hibernate.loader.hql |
This package defines a loader for the AST-based query parser
|
org.hibernate.loader.plan.build.spi |
Defines the SPI for building a metamodel-driven LoadPlan
|
org.hibernate.loader.plan.spi |
Defines the SPI for the building blocks that make up a LoadPlan.
|
org.hibernate.metamodel.spi | |
org.hibernate.persister.collection |
This package abstracts the persistence mechanism for collections.
|
org.hibernate.persister.entity |
This package abstracts persistence mechanisms for
entities, and defines the Hibernate runtime
metamodel.
|
org.hibernate.persister.spi | |
org.hibernate.persister.walking.spi | |
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
CacheKeysFactory.createCollectionKey(Object id,
CollectionPersister persister,
SessionFactoryImplementor factory,
String tenantIdentifier) |
Modifier and Type | Method and Description |
---|---|
Object |
CollectionDataAccess.generateCacheKey(Object id,
CollectionPersister collectionDescriptor,
SessionFactoryImplementor factory,
String tenantIdentifier)
To create instances of CollectionCacheKey for this region, Hibernate will invoke this method
exclusively so that generated implementations can generate optimised keys.
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionCacheEntry.assemble(PersistentCollection collection,
CollectionPersister persister,
Object owner)
Assembles the collection from the cached state.
|
Constructor and Description |
---|
CollectionCacheEntry(PersistentCollection collection,
CollectionPersister persister)
Constructs a CollectionCacheEntry
|
Modifier and Type | Method and Description |
---|---|
Object |
AbstractCollectionDataAccess.generateCacheKey(Object id,
CollectionPersister persister,
SessionFactoryImplementor factory,
String tenantIdentifier) |
Object |
CollectionReadWriteAccess.generateCacheKey(Object id,
CollectionPersister collectionDescriptor,
SessionFactoryImplementor factory,
String tenantIdentifier) |
Modifier and Type | Method and Description |
---|---|
void |
PersistentCollection.afterRowInsert(CollectionPersister persister,
Object entry,
int i)
Called after inserting a row, to fetch the natively generated id
|
void |
PersistentCollection.beforeInitialize(CollectionPersister persister,
int anticipatedSize)
Called before any elements are read into the collection,
allowing appropriate initializations to occur.
|
Serializable |
PersistentCollection.disassemble(CollectionPersister persister)
Disassemble the collection to get it ready for the cache
|
Iterator |
PersistentCollection.entries(CollectionPersister persister)
Iterate all collection entries, during update of the database
|
boolean |
PersistentCollection.equalsSnapshot(CollectionPersister persister)
Does the current state exactly match the snapshot?
|
Iterator |
PersistentCollection.getDeletes(CollectionPersister persister,
boolean indexIsFormula)
Get all the elements that need deleting
|
Object |
PersistentCollection.getIndex(Object entry,
int i,
CollectionPersister persister)
Get the index of the given collection entry
|
Serializable |
PersistentCollection.getSnapshot(CollectionPersister persister)
Return a new snapshot of the current state of the collection
|
void |
PersistentCollection.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner)
Read the state of the collection from a disassembled cached value
|
boolean |
PersistentCollection.needsRecreate(CollectionPersister persister)
Do we need to completely recreate this collection when it changes?
|
void |
PersistentCollection.preInsert(CollectionPersister persister)
Called before inserting rows, to ensure that any surrogate keys
are fully generated
|
Object |
PersistentCollection.readFrom(ResultSet rs,
CollectionPersister role,
CollectionAliases descriptor,
Object owner)
Read a row from the JDBC result set
|
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
SessionFactoryDelegatingImpl.getCollectionPersister(String role) |
default CollectionPersister |
SessionFactoryImplementor.getCollectionPersister(String role)
Deprecated.
(since 5.2) Use
MetamodelImplementor.collectionPersister(String) instead. |
CollectionPersister |
CollectionEntry.getCurrentPersister() |
CollectionPersister |
CollectionEntry.getLoadedPersister()
This is only available late during the flush cycle
|
Modifier and Type | Method and Description |
---|---|
Map<String,CollectionPersister> |
SessionFactoryDelegatingImpl.getCollectionPersisters() |
default Map<String,CollectionPersister> |
SessionFactoryImplementor.getCollectionPersisters()
Deprecated.
(since 5.2) Use
MetamodelImplementor.collectionPersisters() instead. |
Modifier and Type | Method and Description |
---|---|
CollectionEntry |
PersistenceContext.addInitializedCollection(CollectionPersister persister,
PersistentCollection collection,
Serializable id)
add a collection we just pulled out of the cache (does not need initializing)
|
void |
PersistenceContext.addInitializedDetachedCollection(CollectionPersister collectionPersister,
PersistentCollection collection)
add an (initialized) collection that was created by another session and passed
into update() (ie.
|
void |
PersistenceContext.addNewCollection(CollectionPersister persister,
PersistentCollection collection)
Add a new collection (ie.
|
void |
PersistenceContext.addUninitializedCollection(CollectionPersister persister,
PersistentCollection collection,
Serializable id)
add a collection we just loaded up (still needs initializing)
|
void |
PersistenceContext.addUninitializedDetachedCollection(CollectionPersister persister,
PersistentCollection collection)
add a detached uninitialized collection
|
Serializable[] |
BatchFetchQueue.getCollectionBatch(CollectionPersister collectionPersister,
Serializable id,
int batchSize)
Get a batch of uninitialized collection keys for a given role
|
Object |
PersistenceContext.getCollectionOwner(Serializable key,
CollectionPersister collectionPersister)
Get the entity that owns this persistent collection
|
void |
CollectionEntry.setCurrentPersister(CollectionPersister currentPersister) |
Constructor and Description |
---|
CollectionEntry(CollectionPersister persister,
PersistentCollection collection)
For newly wrapped collections, or dereferenced collection wrappers
|
CollectionEntry(CollectionPersister loadedPersister,
Serializable loadedKey)
For uninitialized detached collections
|
CollectionEntry(PersistentCollection collection,
CollectionPersister loadedPersister,
Serializable loadedKey,
boolean ignore)
For collections just loaded from the database
|
CollectionKey(CollectionPersister persister,
Serializable key) |
CollectionKey(CollectionPersister persister,
Serializable key,
EntityMode em)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected static CollectionPersister |
AbstractCollectionEvent.getLoadedCollectionPersister(PersistentCollection collection,
EventSource source) |
Modifier and Type | Method and Description |
---|---|
protected static String |
AbstractCollectionEvent.getAffectedOwnerEntityName(CollectionPersister collectionPersister,
Object affectedOwner,
EventSource source) |
Modifier and Type | Field and Description |
---|---|
protected CollectionPersister[] |
JoinWalker.collectionPersisters |
protected CollectionPersister[] |
OuterJoinLoader.collectionPersisters |
Modifier and Type | Method and Description |
---|---|
CollectionPersister[] |
JoinWalker.getCollectionPersisters() |
protected CollectionPersister[] |
Loader.getCollectionPersisters()
An (optional) persister for a collection to be initialized; only
collection loaders return a non-null value
|
protected CollectionPersister[] |
OuterJoinLoader.getCollectionPersisters() |
Modifier and Type | Method and Description |
---|---|
void |
JoinWalker.setCollectionPersisters(CollectionPersister[] collectionPersisters) |
Constructor and Description |
---|
GeneratedCollectionAliases(CollectionPersister persister,
String string) |
GeneratedCollectionAliases(Map userProvidedAliases,
CollectionPersister persister,
String suffix) |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
BatchingCollectionInitializer.getCollectionPersister() |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
BatchingCollectionInitializer.getCollectionPersister() |
Modifier and Type | Method and Description |
---|---|
protected CollectionPersister[] |
CustomLoader.getCollectionPersisters() |
Modifier and Type | Method and Description |
---|---|
protected CollectionPersister[] |
QueryLoader.getCollectionPersisters()
An (optional) persister for a collection to be initialized; only collection loaders
return a non-null value
|
Modifier and Type | Method and Description |
---|---|
static LoadPlan |
MetamodelDrivenLoadPlanBuilder.buildRootCollectionLoadPlan(LoadPlanBuildingAssociationVisitationStrategy strategy,
CollectionPersister persister)
Coordinates building a LoadPlan that defines just a single root collection return (may have fetches).
|
ExpandingCollectionQuerySpace |
ExpandingQuerySpaces.makeCollectionQuerySpace(String uid,
CollectionPersister collectionPersister,
boolean canJoinsBeRequired)
Create an
ExpandingCollectionQuerySpace for a collection (that is not a "return")
with the specified unique ID. |
ExpandingCollectionQuerySpace |
ExpandingQuerySpaces.makeRootCollectionQuerySpace(String uid,
CollectionPersister collectionPersister)
Create an
ExpandingCollectionQuerySpace for a collection "return" with the
specified unique ID. |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
CollectionReference.getCollectionPersister()
Retrieves the CollectionPersister describing the collection associated with this CollectionReference.
|
CollectionPersister |
CollectionQuerySpace.getCollectionPersister()
Retrieve the collection persister this QuerySpace refers to.
|
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
MetamodelImplementor.collectionPersister(String role)
Get the persister object for a collection role.
|
Modifier and Type | Method and Description |
---|---|
Map<String,CollectionPersister> |
MetamodelImplementor.collectionPersisters()
Get all collection persisters as a Map, which collection role as the key and the persister is the value.
|
Modifier and Type | Interface and Description |
---|---|
interface |
QueryableCollection
A collection role that may be queried or loaded by outer join.
|
interface |
SQLLoadableCollection |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCollectionPersister
Base implementation of the QueryableCollection interface.
|
class |
BasicCollectionPersister
Collection persister for collections of values and many-to-many associations.
|
class |
OneToManyPersister
Collection persister for one-to-many associations.
|
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
AbstractCollectionPersister.getCollectionPersister() |
Constructor and Description |
---|
NamedQueryCollectionInitializer(String queryName,
CollectionPersister persister) |
Modifier and Type | Method and Description |
---|---|
protected Serializable |
AbstractEntityPersister.getCollectionKey(CollectionPersister persister,
Object owner,
EntityEntry ownerEntry,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
PersisterFactory.createCollectionPersister(Collection collectionBinding,
CollectionDataAccess cacheAccessStrategy,
PersisterCreationContext creationContext)
Create a collection persister instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
CollectionDefinition.getCollectionPersister() |
Modifier and Type | Method and Description |
---|---|
static void |
MetamodelGraphWalker.visitCollection(AssociationVisitationStrategy strategy,
CollectionPersister persister)
Entry point into walking the model graph of a collection according to its defined metamodel.
|
Modifier and Type | Method and Description |
---|---|
static String |
MessageHelper.collectionInfoString(CollectionPersister persister,
PersistentCollection collection,
Serializable collectionKey,
SharedSessionContractImplementor session)
Generate an info message string relating to a particular managed
collection.
|
static String |
MessageHelper.collectionInfoString(CollectionPersister persister,
Serializable[] ids,
SessionFactoryImplementor factory)
Generate an info message string relating to a series of managed
collections.
|
static String |
MessageHelper.collectionInfoString(CollectionPersister persister,
Serializable id,
SessionFactoryImplementor factory)
Generate an info message string relating to a particular managed
collection.
|
Modifier and Type | Method and Description |
---|---|
PersistentCollection |
UserCollectionType.instantiate(SharedSessionContractImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper
|
Object |
UserCollectionType.replaceElements(Object original,
Object target,
CollectionPersister persister,
Object owner,
Map copyCache,
SharedSessionContractImplementor session)
Replace the elements of a collection with the elements of another collection
|
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.