Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.action |
This package defines "actions" that are scheduled for
asycnchronous execution by the event listeners.
|
org.hibernate.cache |
This package defines APIs/SPIs and implementations for the Hibernate second-level cache.
|
org.hibernate.cache.entry |
This package defines formats for disassembled state
kept in the second level cache.
|
org.hibernate.collection |
This package defines a framework for collection wrappers.
|
org.hibernate.dialect |
This package abstracts the SQL dialect of the underlying database.
|
org.hibernate.dialect.lock | |
org.hibernate.ejb.event | |
org.hibernate.engine |
This package contains classes that are "shared" by other packages,
and implementations of some key algorithms.
|
org.hibernate.engine.query | |
org.hibernate.engine.transaction | |
org.hibernate.envers.entities.mapper | |
org.hibernate.envers.entities.mapper.relation | |
org.hibernate.envers.entities.mapper.relation.lazy | |
org.hibernate.envers.reader | |
org.hibernate.envers.synchronization | |
org.hibernate.envers.synchronization.work | |
org.hibernate.envers.tools | |
org.hibernate.event |
This package defines an event framework for Hibernate.
|
org.hibernate.event.def |
This package defines a default set of event listeners that
implements the default behaviors of Hibernate.
|
org.hibernate.hql |
This package defines the interface between Hibernate and
the HQL query parser implementation (to allow switching
between the 2.x and 3.0 HQL parsers).
|
org.hibernate.hql.ast |
An ANTLR-based parser for Hibernate Query Language.
|
org.hibernate.hql.ast.exec | |
org.hibernate.hql.classic |
This package contains the Hibernate 2.x query parser which
is being end-of-lifed.
|
org.hibernate.id |
This package contains internal implementation classes for the
main API interfaces.
|
org.hibernate.id.enhanced | |
org.hibernate.id.insert | |
org.hibernate.id.uuid | |
org.hibernate.impl |
This package contains implementations of the
central Hibernate APIs, especially the
Hibernate session.
|
org.hibernate.intercept |
This package implements an interception
mechanism for lazy property fetching,
based on CGLIB bytecode instrumentation.
|
org.hibernate.intercept.cglib | |
org.hibernate.intercept.javassist | |
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.criteria |
This package defines the criteria query compiler and loader
|
org.hibernate.loader.custom |
This package defines a framework for custom loaders that accept
handwritten SQL
|
org.hibernate.loader.entity |
This package defines entity loaders
|
org.hibernate.loader.hql |
This package defines a loader for the AST-based query parser
|
org.hibernate.mapping |
This package defines the Hibernate configuration-time metamodel.
|
org.hibernate.metadata |
This package defines an API for accessing the Hibernate
runtime metamodel.
|
org.hibernate.param | |
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.property |
This package abstracts the notion of a "property" of
an entity.
|
org.hibernate.proxy |
This package defines a framework for lazy-initializing
entity proxies.
|
org.hibernate.proxy.dom4j | |
org.hibernate.proxy.map | |
org.hibernate.proxy.pojo | |
org.hibernate.proxy.pojo.cglib | |
org.hibernate.proxy.pojo.javassist | |
org.hibernate.stat |
This package exposes statistics about a running
Hibernate instance to the application.
|
org.hibernate.tuple.entity | |
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 |
---|---|
static LobCreator |
Hibernate.getLobCreator(SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected SessionImplementor |
CollectionAction.getSession() |
SessionImplementor |
EntityAction.getSession()
originating session accessor
|
Modifier and Type | Method and Description |
---|---|
void |
EntityUpdateAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session) |
void |
EntityDeleteAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session) |
void |
AfterTransactionCompletionProcess.doAfterTransactionCompletion(boolean success,
SessionImplementor session)
Perform whatever processing is encapsulated here after completion of the transaction.
|
void |
EntityInsertAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session)
Perform whatever processing is encapsulated here after completion of the transaction.
|
void |
EntityIdentityInsertAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session) |
void |
BeforeTransactionCompletionProcess.doBeforeTransactionCompletion(SessionImplementor session)
Perform whatever processing is encapsulated here before completion of the transaction.
|
void |
EntityIncrementVersionProcess.doBeforeTransactionCompletion(SessionImplementor session)
Perform whatever processing is encapsulated here before completion of the transaction.
|
void |
EntityVerifyVersionProcess.doBeforeTransactionCompletion(SessionImplementor session)
Perform whatever processing is encapsulated here before completion of the transaction.
|
Constructor and Description |
---|
BulkOperationCleanupAction(SessionImplementor session,
Queryable[] affectedQueryables)
Constructs an action to cleanup "affected cache regions" based on the
affected entity persisters.
|
BulkOperationCleanupAction(SessionImplementor session,
Set tableSpaces)
Constructs an action to cleanup "affected cache regions" based on a
set of affected table spaces.
|
CollectionAction(CollectionPersister persister,
PersistentCollection collection,
Serializable key,
SessionImplementor session) |
CollectionRecreateAction(PersistentCollection collection,
CollectionPersister persister,
Serializable id,
SessionImplementor session) |
CollectionRemoveAction(Object affectedOwner,
CollectionPersister persister,
Serializable id,
boolean emptySnapshot,
SessionImplementor session)
Removes a persistent collection from a specified owner.
|
CollectionRemoveAction(PersistentCollection collection,
CollectionPersister persister,
Serializable id,
boolean emptySnapshot,
SessionImplementor session)
Removes a persistent collection from its loaded owner.
|
CollectionUpdateAction(PersistentCollection collection,
CollectionPersister persister,
Serializable id,
boolean emptySnapshot,
SessionImplementor session) |
EntityAction(SessionImplementor session,
Serializable id,
Object instance,
EntityPersister persister)
Instantiate an action.
|
EntityDeleteAction(Serializable id,
Object[] state,
Object version,
Object instance,
EntityPersister persister,
boolean isCascadeDeleteEnabled,
SessionImplementor session) |
EntityIdentityInsertAction(Object[] state,
Object instance,
EntityPersister persister,
SessionImplementor session,
boolean isDelayed) |
EntityInsertAction(Serializable id,
Object[] state,
Object instance,
Object version,
EntityPersister persister,
SessionImplementor session) |
EntityUpdateAction(Serializable id,
Object[] state,
int[] dirtyProperties,
boolean hasDirtyCollection,
Object[] previousState,
Object previousVersion,
Object nextVersion,
Object instance,
Object rowId,
EntityPersister persister,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
static QueryKey |
QueryKey.generateQueryKey(String queryString,
QueryParameters queryParameters,
Set filterKeys,
SessionImplementor session,
ResultTransformer customTransformer)
Generates a QueryKey.
|
List |
QueryCache.get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set spaces,
SessionImplementor session) |
List |
StandardQueryCache.get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set spaces,
SessionImplementor session) |
boolean |
QueryCache.put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session) |
boolean |
StandardQueryCache.put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session) |
Constructor and Description |
---|
CacheEntry(Object[] state,
EntityPersister persister,
boolean unfetched,
Object version,
SessionImplementor session,
Object owner) |
Modifier and Type | Method and Description |
---|---|
SessionImplementor |
AbstractPersistentCollection.getSession()
Get the current session
|
Modifier and Type | Method and Description |
---|---|
protected static Collection |
AbstractPersistentCollection.getOrphans(Collection oldElements,
Collection currentElements,
String entityName,
SessionImplementor session)
Given a collection of entity instances that used to
belong to the collection, and a collection of instances
that currently belong, return a collection of orphans
|
boolean |
AbstractPersistentCollection.setCurrentSession(SessionImplementor session)
Associate the collection with the given session.
|
boolean |
PersistentCollection.setCurrentSession(SessionImplementor session)
Associate the collection with the given session.
|
boolean |
AbstractPersistentCollection.unsetSession(SessionImplementor currentSession)
Disassociate this collection from the given session.
|
boolean |
PersistentCollection.unsetSession(SessionImplementor currentSession)
Disassociate this collection from the given session.
|
Modifier and Type | Method and Description |
---|---|
void |
HSQLDialect.ReadUncommittedLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
void |
PessimisticReadSelectLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
UpdateLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
PessimisticWriteSelectLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
PessimisticForceIncrementLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session)
Acquire an appropriate type of lock on the underlying data that will
endure until the end of the current transaction.
|
void |
OptimisticForceIncrementLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
PessimisticReadUpdateLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
SelectLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
OptimisticLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
PessimisticWriteUpdateLockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session) |
void |
LockingStrategy.lock(Serializable id,
Object version,
Object object,
int timeout,
SessionImplementor session)
Acquire an appropriate type of lock on the underlying data that will
endure until the end of the current transaction.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
EJB3FlushEntityEventListener.invokeInterceptor(SessionImplementor session,
Object entity,
EntityEntry entry,
Object[] values,
EntityPersister persister) |
Modifier and Type | Method and Description |
---|---|
SessionImplementor |
PersistenceContext.getSession()
Get the session to which this persistence context is bound.
|
SessionImplementor |
StatefulPersistenceContext.getSession() |
Modifier and Type | Method and Description |
---|---|
static void |
TwoPhaseLoad.addUninitializedCachedEntity(EntityKey key,
Object object,
EntityPersister persister,
LockMode lockMode,
boolean lazyPropertiesAreUnfetched,
Object version,
SessionImplementor session) |
static void |
TwoPhaseLoad.addUninitializedEntity(EntityKey key,
Object object,
EntityPersister persister,
LockMode lockMode,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Add an uninitialized instance of an entity class, as a placeholder to ensure object
identity.
|
static int |
ParameterBinder.bindNamedParameters(PreparedStatement ps,
Map namedParams,
int start,
ParameterBinder.NamedParameterSource source,
SessionImplementor session) |
static int |
ParameterBinder.bindNamedParameters(PreparedStatement ps,
QueryParameters queryParameters,
int start,
ParameterBinder.NamedParameterSource source,
SessionImplementor session) |
static int |
ParameterBinder.bindPositionalParameters(PreparedStatement st,
Object[] values,
Type[] types,
int start,
SessionImplementor session) |
static int |
ParameterBinder.bindPositionalParameters(PreparedStatement st,
QueryParameters queryParameters,
int start,
SessionImplementor session) |
static int |
ParameterBinder.bindQueryParameters(PreparedStatement st,
QueryParameters queryParameters,
int start,
ParameterBinder.NamedParameterSource source,
SessionImplementor session) |
static ActionQueue |
ActionQueue.deserialize(ObjectInputStream ois,
SessionImplementor session)
Used by the owning session to explicitly control deserialization of the
action queue
|
static StatefulPersistenceContext |
StatefulPersistenceContext.deserialize(ObjectInputStream ois,
SessionImplementor session) |
Serializable |
TransactionHelper.doWorkInNewTransaction(SessionImplementor session)
Suspend the current transaction and perform work in a new transaction
|
static Serializable |
ForeignKeys.getEntityIdentifierIfNotUnsaved(String entityName,
Object object,
SessionImplementor session)
Return the identifier of the persistent or transient object, or throw
an exception if the instance is "unsaved"
Used by OneToOneType and ManyToOneType to determine what id value should
be used for an object that may or may not be associated with the session.
|
static Iterator |
CascadingAction.getLoadedElementsIterator(SessionImplementor session,
CollectionType collectionType,
Object collection)
Iterate just the elements of the collection that are already there.
|
static Object |
Versioning.increment(Object version,
VersionType versionType,
SessionImplementor session)
Generate the next increment in the optimisitc locking value according
the
VersionType contract for the version property. |
static void |
TwoPhaseLoad.initializeEntity(Object entity,
boolean readOnly,
SessionImplementor session,
PreLoadEvent preLoadEvent,
PostLoadEvent postLoadEvent)
Perform the second step of 2-phase load.
|
static boolean |
ForeignKeys.isNotTransient(String entityName,
Object entity,
Boolean assumed,
SessionImplementor session)
Is this instance persistent or detached?
If assumed is non-null, don't hit the database to make the
determination, instead assume that value; the client code must be
prepared to "recover" in the case that this assumed result is incorrect.
|
boolean |
EntityEntry.isNullifiable(boolean earlyInsert,
SessionImplementor session) |
boolean |
QueryParameters.isReadOnly(SessionImplementor session)
Should entities and proxies loaded by the Query be put in read-only mode? If the
read-only/modifiable setting was not initialized
(i.e., QueryParameters#isReadOnlyInitialized() == false), then the default
read-only/modifiable setting for the persistence context is returned instead.
|
static boolean |
ForeignKeys.isTransient(String entityName,
Object entity,
Boolean assumed,
SessionImplementor session)
Is this instance, which we know is not persistent, actually transient?
If assumed is non-null, don't hit the database to make the
determination, instead assume that value; the client code must be
prepared to "recover" in the case that this assumed result is incorrect.
|
static void |
TwoPhaseLoad.postHydrate(EntityPersister persister,
Serializable id,
Object[] values,
Object rowId,
Object object,
LockMode lockMode,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Register the "hydrated" state of an entity instance, after the first step of 2-phase loading.
|
void |
QueryParameters.processFilters(String sql,
SessionImplementor session) |
static void |
Collections.processReachableCollection(PersistentCollection collection,
CollectionType type,
Object entity,
SessionImplementor session)
Initialize the role of the collection.
|
static void |
Collections.processUnreachableCollection(PersistentCollection coll,
SessionImplementor session)
record the fact that this collection was dereferenced
|
static boolean |
Versioning.seedVersion(Object[] fields,
int versionProperty,
VersionType versionType,
SessionImplementor session)
Create an initial optimisitc locking value according the
VersionType
contract for the version property if required and inject it into
the snapshot state. |
Constructor and Description |
---|
ActionQueue(SessionImplementor session)
Constructs an action queue bound to the given session.
|
Nullability(SessionImplementor session) |
Nullifier(Object self,
boolean isDelete,
boolean isEarlyInsert,
SessionImplementor session) |
StatefulPersistenceContext(SessionImplementor session)
Constructs a PersistentContext, bound to the given session.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NativeSQLQueryPlan.coordinateSharedCacheCleanup(SessionImplementor session) |
int |
HQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session) |
int |
NativeSQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session) |
List |
HQLQueryPlan.performList(QueryParameters queryParameters,
SessionImplementor session) |
ScrollableResults |
HQLQueryPlan.performScroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
static void |
Isolater.doIsolatedWork(IsolatedWork work,
SessionImplementor session)
Ensures that all processing actually performed by the given work will
occur on a seperate transaction.
|
static void |
Isolater.doNonTransactedWork(IsolatedWork work,
SessionImplementor session)
Ensures that all processing actually performed by the given work will
occur outside of a transaction.
|
Constructor and Description |
---|
JdbcDelegate(SessionImplementor session) |
JtaDelegate(SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
boolean |
SubclassPropertyMapper.map(SessionImplementor session,
Map<String,Object> data,
String[] propertyNames,
Object[] newState,
Object[] oldState) |
boolean |
MultiPropertyMapper.map(SessionImplementor session,
Map<String,Object> data,
String[] propertyNames,
Object[] newState,
Object[] oldState) |
boolean |
ExtendedPropertyMapper.map(SessionImplementor session,
Map<String,Object> data,
String[] propertyNames,
Object[] newState,
Object[] oldState) |
boolean |
SubclassPropertyMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
boolean |
MultiPropertyMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
boolean |
ComponentPropertyMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
boolean |
PropertyMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj)
Maps properties to the given map, basing on differences between properties of new and old objects.
|
boolean |
SinglePropertyMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractCollectionMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
boolean |
ToOneIdMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
boolean |
OneToOneNotOwningMapper.mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDelegateSessionImplementor |
class |
ToOneDelegateSessionImplementor |
Modifier and Type | Field and Description |
---|---|
protected SessionImplementor |
AbstractDelegateSessionImplementor.delegate |
Constructor and Description |
---|
AbstractDelegateSessionImplementor(SessionImplementor delegate) |
Modifier and Type | Method and Description |
---|---|
SessionImplementor |
AuditReaderImpl.getSessionImplementor() |
SessionImplementor |
AuditReaderImplementor.getSessionImplementor() |
Constructor and Description |
---|
AuditReaderImpl(AuditConfiguration verCfg,
Session session,
SessionImplementor sessionImplementor) |
Modifier and Type | Method and Description |
---|---|
void |
AuditProcess.doBeforeTransactionCompletion(SessionImplementor session) |
Constructor and Description |
---|
AuditProcess(RevisionInfoGenerator revisionInfoGenerator,
SessionImplementor session) |
EntityChangeNotifier(RevisionInfoGenerator revisionInfoGenerator,
SessionImplementor sessionImplementor) |
Modifier and Type | Field and Description |
---|---|
protected SessionImplementor |
AbstractAuditWorkUnit.sessionImplementor |
Modifier and Type | Method and Description |
---|---|
static boolean |
Tools.entitiesEqual(SessionImplementor session,
String entityName,
Object obj1,
Object obj2) |
static Class |
Tools.getEntityClass(SessionImplementor sessionImplementor,
Session session,
String entityName) |
static Object |
Tools.getIdentifier(SessionImplementor session,
String entityName,
Object obj) |
Modifier and Type | Interface and Description |
---|---|
interface |
EventSource |
Modifier and Type | Method and Description |
---|---|
void |
DefaultFlushEntityEventListener.checkId(Object object,
EntityPersister persister,
Serializable id,
EntityMode entityMode,
SessionImplementor session)
make sure user didn't mangle the id
|
protected void |
DefaultMergeEventListener.copyValues(EntityPersister persister,
Object entity,
Object target,
SessionImplementor source,
Map copyCache) |
protected void |
DefaultMergeEventListener.copyValues(EntityPersister persister,
Object entity,
Object target,
SessionImplementor source,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
protected int |
AbstractSaveEventListener.getEntityState(Object entity,
String entityName,
EntityEntry entry,
SessionImplementor source)
Determine whether the entity is persistent, detached, or transient
|
protected Serializable |
DefaultSaveOrUpdateEventListener.getUpdateId(Object entity,
EntityPersister persister,
Serializable requestedId,
SessionImplementor session)
Determine the id to use for updating.
|
protected Serializable |
DefaultUpdateEventListener.getUpdateId(Object entity,
EntityPersister persister,
Serializable requestedId,
SessionImplementor session)
If the user specified an id, assign it to the instance and use that,
otherwise use the id already assigned to the instance
|
protected boolean |
DefaultFlushEntityEventListener.invokeInterceptor(SessionImplementor session,
Object entity,
EntityEntry entry,
Object[] values,
EntityPersister persister) |
protected Object |
DefaultLoadEventListener.lockAndLoad(LoadEvent event,
EntityPersister persister,
EntityKey keyToLoad,
LoadEventListener.LoadType options,
SessionImplementor source)
If the class to be loaded has been configured with a cache, then lock
given id in that cache and then perform the load.
|
protected void |
AbstractFlushingEventListener.postFlush(SessionImplementor session)
1.
|
protected boolean |
DefaultSaveOrUpdateEventListener.reassociateIfUninitializedProxy(Object object,
SessionImplementor source) |
protected boolean |
DefaultSaveEventListener.reassociateIfUninitializedProxy(Object object,
SessionImplementor source) |
protected boolean |
AbstractSaveEventListener.substituteValuesIfNecessary(Object entity,
Serializable id,
Object[] values,
EntityPersister persister,
SessionImplementor source)
Perform any property value substitution that is necessary
(interceptor callback, version initialization...)
|
protected boolean |
DefaultReplicateEventListener.substituteValuesIfNecessary(Object entity,
Serializable id,
Object[] values,
EntityPersister persister,
SessionImplementor source) |
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslator.executeUpdate(QueryParameters queryParameters,
SessionImplementor session)
Perform a bulk update/delete operation given the underlying query definition.
|
List |
QueryTranslator.list(SessionImplementor session,
QueryParameters queryParameters)
Perform a list operation given the underlying query definition.
|
ScrollableResults |
QueryTranslator.scroll(QueryParameters queryParameters,
SessionImplementor session)
Perform a scroll operation given the underlying query definition.
|
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslatorImpl.executeUpdate(QueryParameters queryParameters,
SessionImplementor session) |
List |
QueryTranslatorImpl.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryTranslatorImpl.scroll(QueryParameters queryParameters,
SessionImplementor session)
Return the query results, as an instance of ScrollableResults
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractStatementExecutor.coordinateSharedCacheCleanup(SessionImplementor session) |
protected void |
AbstractStatementExecutor.createTemporaryTableIfNecessary(Queryable persister,
SessionImplementor session) |
protected void |
AbstractStatementExecutor.dropTemporaryTableIfNecessary(Queryable persister,
SessionImplementor session) |
int |
StatementExecutor.execute(QueryParameters parameters,
SessionImplementor session)
Execute the sql managed by this executor using the given parameters.
|
int |
MultiTableDeleteExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
BasicExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
MultiTableUpdateExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslatorImpl.executeUpdate(QueryParameters queryParameters,
SessionImplementor session) |
protected Object |
QueryTranslatorImpl.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
List |
QueryTranslatorImpl.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryTranslatorImpl.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected void |
SelectGenerator.SelectGeneratorDelegate.bindParameters(SessionImplementor session,
PreparedStatement ps,
Object entity) |
Serializable |
IdentityGenerator.InsertSelectDelegate.determineGeneratedIdentifier(SessionImplementor session,
Object entity) |
void |
CompositeNestedGeneratedValueGenerator.GenerationPlan.execute(SessionImplementor session,
Object incomingObject,
Object injectionContext)
Execute the value generation.
|
Serializable |
GUIDGenerator.generate(SessionImplementor session,
Object obj) |
Serializable |
SequenceGenerator.generate(SessionImplementor session,
Object obj) |
Serializable |
TableGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
Assigned.generate(SessionImplementor session,
Object obj) |
Serializable |
AbstractPostInsertGenerator.generate(SessionImplementor s,
Object obj)
Generate a new identifier.
|
Serializable |
ForeignGenerator.generate(SessionImplementor sessionImplementor,
Object object)
Generate a new identifier.
|
Serializable |
SequenceIdentityGenerator.generate(SessionImplementor s,
Object obj) |
Serializable |
IncrementGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
CompositeNestedGeneratedValueGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
SequenceHiLoGenerator.generate(SessionImplementor session,
Object obj) |
Serializable |
UUIDGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
TableHiLoGenerator.generate(SessionImplementor session,
Object obj) |
Serializable |
IdentifierGenerator.generate(SessionImplementor session,
Object object)
Generate a new identifier.
|
Serializable |
UUIDHexGenerator.generate(SessionImplementor session,
Object obj)
Generate a new identifier.
|
Serializable |
MultipleHiLoPerTableGenerator.generate(SessionImplementor session,
Object obj) |
protected IntegralDataTypeHolder |
SequenceGenerator.generateHolder(SessionImplementor session) |
protected IntegralDataTypeHolder |
TableGenerator.generateHolder(SessionImplementor session) |
UUID |
UUIDGenerationStrategy.generateUUID(SessionImplementor session)
Generate the UUID.
|
protected Serializable |
SelectGenerator.SelectGeneratorDelegate.getResult(SessionImplementor session,
ResultSet rs,
Object entity) |
protected Serializable |
IdentityGenerator.BasicDelegate.getResult(SessionImplementor session,
ResultSet rs,
Object object) |
Serializable |
CompositeNestedGeneratedValueGenerator.GenerationContextLocator.locateGenerationContext(SessionImplementor session,
Object incomingObject)
Given the incoming object, determine the context for injecting back its generated
id sub-values.
|
protected PreparedStatement |
SequenceIdentityGenerator.Delegate.prepare(String insertSQL,
SessionImplementor session) |
protected PreparedStatement |
IdentityGenerator.GetGeneratedKeysDelegate.prepare(String insertSQL,
SessionImplementor session) |
protected PreparedStatement |
IdentityGenerator.InsertSelectDelegate.prepare(String insertSQL,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
AccessCallback |
SequenceStructure.buildCallback(SessionImplementor session)
A callback to be able to get the next value from the underlying
structure as needed.
|
AccessCallback |
TableStructure.buildCallback(SessionImplementor session)
A callback to be able to get the next value from the underlying
structure as needed.
|
AccessCallback |
DatabaseStructure.buildCallback(SessionImplementor session)
A callback to be able to get the next value from the underlying
structure as needed.
|
Serializable |
SequenceStyleGenerator.generate(SessionImplementor session,
Object object)
Generate a new identifier.
|
Serializable |
TableGenerator.generate(SessionImplementor session,
Object obj)
Generate a new identifier.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractSelectingDelegate.bindParameters(SessionImplementor session,
PreparedStatement ps,
Object entity)
Bind any required parameter values into the SQL command
AbstractSelectingDelegate.getSelectSQL() . |
protected abstract Serializable |
AbstractSelectingDelegate.getResult(SessionImplementor session,
ResultSet rs,
Object entity)
Extract the generated key value from the given result set.
|
Serializable |
AbstractSelectingDelegate.performInsert(String insertSQL,
SessionImplementor session,
Binder binder) |
Serializable |
AbstractReturningDelegate.performInsert(String insertSQL,
SessionImplementor session,
Binder binder) |
Serializable |
InsertGeneratedIdentifierDelegate.performInsert(String insertSQL,
SessionImplementor session,
Binder binder)
Perform the indicated insert SQL statement and determine the identifier value
generated.
|
protected abstract PreparedStatement |
AbstractReturningDelegate.prepare(String insertSQL,
SessionImplementor session) |
protected void |
AbstractReturningDelegate.releaseStatement(PreparedStatement insert,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
UUID |
CustomVersionOneStrategy.generateUUID(SessionImplementor session) |
UUID |
StandardRandomStrategy.generateUUID(SessionImplementor session)
Delegates to
UUID.randomUUID() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSessionImpl
Functionality common to stateless and stateful sessions
|
class |
SessionImpl
Concrete implementation of a Session, and also the central, organizing component
of Hibernate's internal implementation.
|
class |
StatelessSessionImpl |
Modifier and Type | Field and Description |
---|---|
protected SessionImplementor |
AbstractQueryImpl.session |
Modifier and Type | Method and Description |
---|---|
protected SessionImplementor |
AbstractScrollableResults.getSession() |
SessionImplementor |
CriteriaImpl.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
CriteriaImpl.setSession(SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
SessionImplementor |
AbstractFieldInterceptor.getSession() |
Modifier and Type | Method and Description |
---|---|
Object |
LazyPropertyInitializer.initializeLazyProperty(String fieldName,
Object entity,
SessionImplementor session)
Initialize the property, and return its new value
|
static FieldInterceptor |
FieldInterceptionHelper.injectFieldInterceptor(Object entity,
String entityName,
Set uninitializedFieldNames,
SessionImplementor session) |
void |
FieldInterceptor.setSession(SessionImplementor session)
Use to associate the entity to which we are bound to the given session.
|
void |
AbstractFieldInterceptor.setSession(SessionImplementor session) |
Constructor and Description |
---|
AbstractFieldInterceptor(SessionImplementor session,
Set uninitializedFields,
String entityName) |
Modifier and Type | Method and Description |
---|---|
static FieldInterceptor |
CGLIBHelper.injectFieldInterceptor(Object entity,
String entityName,
Set uninitializedFieldNames,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
static FieldInterceptor |
JavassistHelper.injectFieldInterceptor(Object entity,
String entityName,
Set uninitializedFieldNames,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected void |
Loader.applyPostLoadLocks(Object[] row,
LockMode[] lockModesArray,
SessionImplementor session) |
protected int |
Loader.bindNamedParameters(PreparedStatement statement,
Map namedParams,
int startIndex,
SessionImplementor session)
Bind named parameters to the JDBC prepared statement.
|
protected int |
Loader.bindParameterValues(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
Bind all parameter values into the prepared statement in preparation
for execution.
|
protected int |
Loader.bindPositionalParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
Bind positional parameter values to the JDBC prepared statement.
|
protected List |
Loader.doList(SessionImplementor session,
QueryParameters queryParameters)
Actually execute a query, ignoring the query cache
|
protected void |
Loader.extractKeysFromResultSet(Loadable[] persisters,
QueryParameters queryParameters,
ResultSet resultSet,
SessionImplementor session,
EntityKey[] keys,
LockMode[] lockModes,
List hydratedObjects) |
protected Object |
Loader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session)
Get the actual object that is returned in the user-visible result list.
|
protected ResultSet |
Loader.getResultSet(PreparedStatement st,
boolean autodiscovertypes,
boolean callable,
RowSelection selection,
SessionImplementor session)
Fetch a PreparedStatement, call setMaxRows and then execute it,
advance to the first result and return an SQL ResultSet
|
protected List |
Loader.list(SessionImplementor session,
QueryParameters queryParameters,
Set querySpaces,
Type[] resultTypes)
Return the query results, using the query cache, called
by subclasses that implement cacheable queries
|
void |
Loader.loadCollection(SessionImplementor session,
Serializable id,
Type type)
Called by subclasses that initialize collections
|
void |
Loader.loadCollectionBatch(SessionImplementor session,
Serializable[] ids,
Type type)
Called by wrappers that batch initialize collections
|
protected void |
Loader.loadCollectionSubselect(SessionImplementor session,
Serializable[] ids,
Object[] parameterValues,
Type[] parameterTypes,
Map namedParameters,
Type type)
Called by subclasses that batch initialize collections
|
protected List |
Loader.loadEntity(SessionImplementor session,
Object key,
Object index,
Type keyType,
Type indexType,
EntityPersister persister)
Called by subclasses that load entities
|
protected List |
Loader.loadEntity(SessionImplementor session,
Object id,
Type identifierType,
Object optionalObject,
String optionalEntityName,
Serializable optionalIdentifier,
EntityPersister persister,
LockOptions lockOptions)
Called by subclasses that load entities
|
List |
Loader.loadEntityBatch(SessionImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
Object |
Loader.loadSequentialRowsForward(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies)
Loads a single logical row from the result set moving forward.
|
Object |
Loader.loadSequentialRowsReverse(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
boolean isLogicallyAfterLast)
Loads a single logical row from the result set moving forward.
|
Object |
Loader.loadSingleRow(ResultSet resultSet,
SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies)
Loads a single row from the result set.
|
protected PreparedStatement |
Loader.prepareQueryStatement(QueryParameters queryParameters,
boolean scroll,
SessionImplementor session)
Obtain a PreparedStatement with all parameters pre-bound.
|
protected ScrollableResults |
Loader.scroll(QueryParameters queryParameters,
Type[] returnTypes,
HolderInstantiator holderInstantiator,
SessionImplementor session)
Return the query results, as an instance of ScrollableResults
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionLoader.initialize(Serializable id,
SessionImplementor session) |
void |
CollectionInitializer.initialize(Serializable id,
SessionImplementor session)
Initialize the given collection
|
void |
SubselectCollectionLoader.initialize(Serializable id,
SessionImplementor session) |
void |
SubselectOneToManyLoader.initialize(Serializable id,
SessionImplementor session) |
void |
BatchingCollectionInitializer.initialize(Serializable id,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected Object |
CriteriaLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
List |
CriteriaLoader.list(SessionImplementor session) |
ScrollableResults |
CriteriaLoader.scroll(SessionImplementor session,
ScrollMode scrollMode) |
Modifier and Type | Method and Description |
---|---|
Object |
CustomLoader.ResultRowProcessor.buildResultRow(Object[] data,
ResultSet resultSet,
boolean hasTransformer,
SessionImplementor session)
Build a logical result row.
|
Object |
CustomLoader.NonScalarResultColumnProcessor.extract(Object[] data,
ResultSet resultSet,
SessionImplementor session) |
Object |
CustomLoader.ScalarResultColumnProcessor.extract(Object[] data,
ResultSet resultSet,
SessionImplementor session) |
protected Object |
CustomLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
List |
CustomLoader.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
CustomLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
protected Object |
CollectionElementLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected Object |
AbstractEntityLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
Object |
BatchingEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session)
Load an entity instance.
|
Object |
AbstractEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session)
Load an entity instance.
|
Object |
UniqueEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session)
Deprecated.
|
Object |
BatchingEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session,
LockOptions lockOptions) |
Object |
AbstractEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
Object |
UniqueEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
protected Object |
AbstractEntityLoader.load(SessionImplementor session,
Object id,
Object optionalObject,
Serializable optionalId,
LockOptions lockOptions) |
Object |
EntityLoader.loadByUniqueKey(SessionImplementor session,
Object key) |
Object |
CollectionElementLoader.loadElement(SessionImplementor session,
Object key,
Object index) |
Modifier and Type | Method and Description |
---|---|
protected void |
QueryLoader.applyPostLoadLocks(Object[] row,
LockMode[] lockModesArray,
SessionImplementor session) |
protected int |
QueryLoader.bindParameterValues(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
We specifically override this method here, because in general we know much more
about the parameters and their appropriate bind positions here then we do in
our super because we track them explciitly here through the ParameterSpecification
interface.
|
protected Object |
QueryLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
List |
QueryLoader.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
void |
Component.ValueGenerationPlan.execute(SessionImplementor session,
Object incomingObject,
Object injectionContext)
Execute the value generation.
|
Serializable |
Component.StandardGenerationContextLocator.locateGenerationContext(SessionImplementor session,
Object incomingObject) |
Modifier and Type | Method and Description |
---|---|
Serializable |
ClassMetadata.getIdentifier(Object entity,
SessionImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
|
Object[] |
ClassMetadata.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
Return the values of the mapped properties of the object
|
Object |
ClassMetadata.instantiate(Serializable id,
SessionImplementor session)
Create a class instance initialized with the given identifier
|
void |
ClassMetadata.setIdentifier(Object entity,
Serializable id,
SessionImplementor session)
Inject the identifier value into the given entity.
|
Modifier and Type | Method and Description |
---|---|
int |
PositionalParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
ParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
VersionTypeSeedParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
DynamicFilterParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int start)
Bind the appropriate value into the given statement at the specified position.
|
int |
NamedParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
int |
CollectionFilterKeyParameterSpecification.bind(PreparedStatement statement,
QueryParameters qp,
SessionImplementor session,
int position)
Bind the appropriate value into the given statement at the specified position.
|
Modifier and Type | Method and Description |
---|---|
protected CollectionInitializer |
OneToManyPersister.createSubselectInitializer(SubselectFetch subselect,
SessionImplementor session) |
protected CollectionInitializer |
BasicCollectionPersister.createSubselectInitializer(SubselectFetch subselect,
SessionImplementor session) |
protected abstract CollectionInitializer |
AbstractCollectionPersister.createSubselectInitializer(SubselectFetch subselect,
SessionImplementor session) |
void |
AbstractCollectionPersister.deleteRows(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
void |
CollectionPersister.deleteRows(PersistentCollection collection,
Serializable key,
SessionImplementor session)
Delete the persistent state of any elements that were removed from
the collection
|
protected int |
OneToManyPersister.doUpdateRows(Serializable id,
PersistentCollection collection,
SessionImplementor session) |
protected int |
BasicCollectionPersister.doUpdateRows(Serializable id,
PersistentCollection collection,
SessionImplementor session) |
protected abstract int |
AbstractCollectionPersister.doUpdateRows(Serializable key,
PersistentCollection collection,
SessionImplementor session) |
boolean |
AbstractCollectionPersister.elementExists(Serializable key,
Object element,
SessionImplementor session) |
boolean |
CollectionPersister.elementExists(Serializable key,
Object element,
SessionImplementor session) |
protected CollectionInitializer |
AbstractCollectionPersister.getAppropriateInitializer(Serializable key,
SessionImplementor session) |
Object |
OneToManyPersister.getElementByIndex(Serializable key,
Object index,
SessionImplementor session,
Object owner) |
Object |
AbstractCollectionPersister.getElementByIndex(Serializable key,
Object index,
SessionImplementor session,
Object owner) |
Object |
CollectionPersister.getElementByIndex(Serializable key,
Object index,
SessionImplementor session,
Object owner) |
int |
AbstractCollectionPersister.getSize(Serializable key,
SessionImplementor session) |
int |
CollectionPersister.getSize(Serializable key,
SessionImplementor session) |
boolean |
AbstractCollectionPersister.indexExists(Serializable key,
Object index,
SessionImplementor session) |
boolean |
CollectionPersister.indexExists(Serializable key,
Object index,
SessionImplementor session) |
void |
NamedQueryCollectionInitializer.initialize(Serializable key,
SessionImplementor session) |
void |
AbstractCollectionPersister.initialize(Serializable key,
SessionImplementor session) |
void |
CollectionPersister.initialize(Serializable key,
SessionImplementor session)
Initialize the given collection with the given key
|
void |
AbstractCollectionPersister.insertRows(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
void |
CollectionPersister.insertRows(PersistentCollection collection,
Serializable key,
SessionImplementor session)
Insert the persistent state of any new collection elements
|
boolean |
AbstractCollectionPersister.isAffectedByEnabledFilters(SessionImplementor session) |
boolean |
CollectionPersister.isAffectedByEnabledFilters(SessionImplementor session) |
Object |
AbstractCollectionPersister.readElement(ResultSet rs,
Object owner,
String[] aliases,
SessionImplementor session) |
Object |
CollectionPersister.readElement(ResultSet rs,
Object owner,
String[] columnAliases,
SessionImplementor session)
Read the element from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readIdentifier(ResultSet rs,
String alias,
SessionImplementor session) |
Object |
CollectionPersister.readIdentifier(ResultSet rs,
String columnAlias,
SessionImplementor session)
Read the identifier from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readIndex(ResultSet rs,
String[] aliases,
SessionImplementor session) |
Object |
CollectionPersister.readIndex(ResultSet rs,
String[] columnAliases,
SessionImplementor session)
Read the index from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readKey(ResultSet rs,
String[] aliases,
SessionImplementor session) |
Object |
CollectionPersister.readKey(ResultSet rs,
String[] keyAliases,
SessionImplementor session)
Read the key from a row of the JDBC ResultSet
|
void |
AbstractCollectionPersister.recreate(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
void |
CollectionPersister.recreate(PersistentCollection collection,
Serializable key,
SessionImplementor session)
(Re)create the collection's persistent state
|
void |
AbstractCollectionPersister.remove(Serializable id,
SessionImplementor session) |
void |
CollectionPersister.remove(Serializable id,
SessionImplementor session)
Completely remove the persistent state of the collection
|
void |
AbstractCollectionPersister.updateRows(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
void |
CollectionPersister.updateRows(PersistentCollection collection,
Serializable key,
SessionImplementor session)
Update the persistent state of any elements that were modified
|
protected int |
AbstractCollectionPersister.writeElement(PreparedStatement st,
Object elt,
int i,
SessionImplementor session)
Write the element to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeElementToWhere(PreparedStatement st,
Object elt,
int i,
SessionImplementor session)
Write the element to a JDBC PreparedStatement
|
int |
AbstractCollectionPersister.writeIdentifier(PreparedStatement st,
Object id,
int i,
SessionImplementor session)
Write the identifier to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeIndex(PreparedStatement st,
Object index,
int i,
SessionImplementor session)
Write the index to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeIndexToWhere(PreparedStatement st,
Object index,
int i,
SessionImplementor session)
Write the index to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeKey(PreparedStatement st,
Serializable key,
int i,
SessionImplementor session)
Write the key to a JDBC PreparedStatement
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractEntityPersister.afterInitialize(Object entity,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session) |
void |
EntityPersister.afterInitialize(Object entity,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Called just after the entities properties have been initialized
|
void |
AbstractEntityPersister.afterReassociate(Object entity,
SessionImplementor session) |
void |
EntityPersister.afterReassociate(Object entity,
SessionImplementor session)
Called just after the entity has been reassociated with the session
|
Object |
AbstractEntityPersister.createProxy(Serializable id,
SessionImplementor session) |
Object |
EntityPersister.createProxy(Serializable id,
SessionImplementor session)
Create a new proxy instance
|
protected int |
AbstractEntityPersister.dehydrate(Serializable id,
Object[] fields,
boolean[] includeProperty,
boolean[][] includeColumns,
int j,
PreparedStatement st,
SessionImplementor session) |
protected int |
AbstractEntityPersister.dehydrate(Serializable id,
Object[] fields,
Object rowId,
boolean[] includeProperty,
boolean[][] includeColumns,
int j,
PreparedStatement ps,
SessionImplementor session,
int index)
Marshall the fields of a persistent instance to a prepared statement
|
protected void |
AbstractEntityPersister.delete(Serializable id,
Object version,
int j,
Object object,
String sql,
SessionImplementor session,
Object[] loadedState)
Perform an SQL DELETE
|
void |
AbstractEntityPersister.delete(Serializable id,
Object version,
Object object,
SessionImplementor session)
Delete an object
|
void |
EntityPersister.delete(Serializable id,
Object version,
Object object,
SessionImplementor session)
Delete a persistent instance
|
int[] |
AbstractEntityPersister.findDirty(Object[] currentState,
Object[] previousState,
Object entity,
SessionImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
int[] |
EntityPersister.findDirty(Object[] currentState,
Object[] previousState,
Object owner,
SessionImplementor session)
Compare the two snapshots to determine if they represent dirty state.
|
int[] |
AbstractEntityPersister.findModified(Object[] old,
Object[] current,
Object entity,
SessionImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
int[] |
EntityPersister.findModified(Object[] old,
Object[] current,
Object object,
SessionImplementor session)
Compare the two snapshots to determine if they represent modified state.
|
Object |
AbstractEntityPersister.forceVersionIncrement(Serializable id,
Object currentVersion,
SessionImplementor session) |
Object |
EntityPersister.forceVersionIncrement(Serializable id,
Object currentVersion,
SessionImplementor session) |
Object |
AbstractEntityPersister.getCurrentVersion(Serializable id,
SessionImplementor session)
Retrieve the version number
|
Object |
EntityPersister.getCurrentVersion(Serializable id,
SessionImplementor session)
Get the current version of the object, or return null if there is no row for
the given identifier.
|
Object[] |
AbstractEntityPersister.getDatabaseSnapshot(Serializable id,
SessionImplementor session) |
Object[] |
EntityPersister.getDatabaseSnapshot(Serializable id,
SessionImplementor session)
Get the current database state of the object, in a "hydrated" form, without
resolving identifiers
|
Serializable |
AbstractEntityPersister.getIdentifier(Object entity,
SessionImplementor session) |
Serializable |
EntityPersister.getIdentifier(Object entity,
SessionImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
|
Object[] |
AbstractEntityPersister.getNaturalIdentifierSnapshot(Serializable id,
SessionImplementor session) |
Object[] |
EntityPersister.getNaturalIdentifierSnapshot(Serializable id,
SessionImplementor session)
Retrieve the current state of the natural-id properties from the database.
|
Object[] |
AbstractEntityPersister.getPropertyValuesToInsert(Object object,
Map mergeMap,
SessionImplementor session) |
Object[] |
EntityPersister.getPropertyValuesToInsert(Object object,
Map mergeMap,
SessionImplementor session)
Return the values of the insertable properties of the object (including backrefs)
|
protected EntityTuplizer |
AbstractEntityPersister.getTuplizer(SessionImplementor session) |
Object[] |
AbstractEntityPersister.hydrate(ResultSet rs,
Serializable id,
Object object,
Loadable rootLoadable,
String[][] suffixedPropertyColumns,
boolean allProperties,
SessionImplementor session)
Unmarshall the fields of a persistent instance from a result set,
without resolving associations or collections.
|
Object[] |
Loadable.hydrate(ResultSet rs,
Serializable id,
Object object,
Loadable rootLoadable,
String[][] suffixedPropertyColumns,
boolean allProperties,
SessionImplementor session)
Retrieve property values from one row of a result set
|
Object |
AbstractEntityPersister.initializeLazyProperty(String fieldName,
Object entity,
SessionImplementor session) |
protected Serializable |
AbstractEntityPersister.insert(Object[] fields,
boolean[] notNull,
String sql,
Object object,
SessionImplementor session)
Perform an SQL INSERT, and then retrieve a generated identifier.
|
Serializable |
AbstractEntityPersister.insert(Object[] fields,
Object object,
SessionImplementor session) |
Serializable |
EntityPersister.insert(Object[] fields,
Object object,
SessionImplementor session)
Persist an instance, using a natively generated identifier (optional operation)
|
protected void |
AbstractEntityPersister.insert(Serializable id,
Object[] fields,
boolean[] notNull,
int j,
String sql,
Object object,
SessionImplementor session)
Perform an SQL INSERT.
|
void |
AbstractEntityPersister.insert(Serializable id,
Object[] fields,
Object object,
SessionImplementor session) |
void |
EntityPersister.insert(Serializable id,
Object[] fields,
Object object,
SessionImplementor session)
Persist an instance
|
Object |
AbstractEntityPersister.instantiate(Serializable id,
SessionImplementor session)
Create a class instance initialized with the given identifier
|
Object |
EntityPersister.instantiate(Serializable id,
SessionImplementor session)
Create a class instance initialized with the given identifier
|
boolean |
DiscriminatorType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
Boolean |
AbstractEntityPersister.isTransient(Object entity,
SessionImplementor session) |
Boolean |
EntityPersister.isTransient(Object object,
SessionImplementor session)
Is this a new transient instance?
|
Object |
AbstractEntityPersister.load(Serializable id,
Object optionalObject,
LockMode lockMode,
SessionImplementor session)
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
|
Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockMode lockMode,
SessionImplementor session)
Load an instance of the persistent class.
|
Object |
AbstractEntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
SessionImplementor session)
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
|
Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
SessionImplementor session)
Load an instance of the persistent class.
|
Object |
NamedQueryLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session) |
Object |
NamedQueryLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session,
LockOptions lockOptions) |
Object |
AbstractEntityPersister.loadByUniqueKey(String propertyName,
Object uniqueKey,
SessionImplementor session) |
Object |
UniqueKeyLoadable.loadByUniqueKey(String propertyName,
Object uniqueKey,
SessionImplementor session)
Load an instance of the persistent class, by a unique key other
than the primary key.
|
void |
AbstractEntityPersister.lock(Serializable id,
Object version,
Object object,
LockMode lockMode,
SessionImplementor session) |
void |
EntityPersister.lock(Serializable id,
Object version,
Object object,
LockMode lockMode,
SessionImplementor session)
Do a version check (optional operation)
|
void |
AbstractEntityPersister.lock(Serializable id,
Object version,
Object object,
LockOptions lockOptions,
SessionImplementor session) |
void |
EntityPersister.lock(Serializable id,
Object version,
Object object,
LockOptions lockOptions,
SessionImplementor session)
Do a version check (optional operation)
|
Object |
DiscriminatorType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
DiscriminatorType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
void |
DiscriminatorType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
DiscriminatorType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
AbstractEntityPersister.processInsertGeneratedProperties(Serializable id,
Object entity,
Object[] state,
SessionImplementor session) |
void |
EntityPersister.processInsertGeneratedProperties(Serializable id,
Object entity,
Object[] state,
SessionImplementor session)
Perform a select to retrieve the values of any generated properties
back from the database, injecting these generated values into the
given entity as well as writing this state to the
PersistenceContext . |
void |
AbstractEntityPersister.processUpdateGeneratedProperties(Serializable id,
Object entity,
Object[] state,
SessionImplementor session) |
void |
EntityPersister.processUpdateGeneratedProperties(Serializable id,
Object entity,
Object[] state,
SessionImplementor session)
Perform a select to retrieve the values of any generated properties
back from the database, injecting these generated values into the
given entity as well as writing this state to the
PersistenceContext . |
Object |
DiscriminatorType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
void |
AbstractEntityPersister.resetIdentifier(Object entity,
Serializable currentId,
Object currentVersion,
SessionImplementor session) |
void |
EntityPersister.resetIdentifier(Object entity,
Serializable currentId,
Object currentVersion,
SessionImplementor session)
Set the identifier and version of the given instance back to its "unsaved" value.
|
void |
AbstractEntityPersister.setIdentifier(Object entity,
Serializable id,
SessionImplementor session)
Inject the identifier value into the given entity.
|
void |
EntityPersister.setIdentifier(Object entity,
Serializable id,
SessionImplementor session)
Inject the identifier value into the given entity.
|
void |
AbstractEntityPersister.update(Serializable id,
Object[] fields,
int[] dirtyFields,
boolean hasDirtyCollection,
Object[] oldFields,
Object oldVersion,
Object object,
Object rowId,
SessionImplementor session)
Update an object
|
void |
EntityPersister.update(Serializable id,
Object[] fields,
int[] dirtyFields,
boolean hasDirtyCollection,
Object[] oldFields,
Object oldVersion,
Object object,
Object rowId,
SessionImplementor session)
Update a persistent instance
|
protected boolean |
AbstractEntityPersister.update(Serializable id,
Object[] fields,
Object[] oldFields,
Object rowId,
boolean[] includeProperty,
int j,
Object oldVersion,
Object object,
String sql,
SessionImplementor session) |
protected void |
AbstractEntityPersister.updateOrInsert(Serializable id,
Object[] fields,
Object[] oldFields,
Object rowId,
boolean[] includeProperty,
int j,
Object oldVersion,
Object object,
String sql,
SessionImplementor session)
Perform an SQL UPDATE or SQL INSERT
|
Modifier and Type | Method and Description |
---|---|
Object |
Getter.getForInsert(Object owner,
Map mergeMap,
SessionImplementor session)
Get the property value from the given owner instance.
|
Object |
IndexPropertyAccessor.IndexGetter.getForInsert(Object target,
Map mergeMap,
SessionImplementor session) |
Object |
BasicPropertyAccessor.BasicGetter.getForInsert(Object target,
Map mergeMap,
SessionImplementor session)
Get the property value from the given owner instance.
|
Object |
BackrefPropertyAccessor.BackrefGetter.getForInsert(Object target,
Map mergeMap,
SessionImplementor session)
Get the property value from the given owner instance.
|
Object |
DirectPropertyAccessor.DirectGetter.getForInsert(Object target,
Map mergeMap,
SessionImplementor session)
Get the property value from the given owner instance.
|
Object |
MapAccessor.MapGetter.getForInsert(Object target,
Map mergeMap,
SessionImplementor session)
Get the property value from the given owner instance.
|
Object |
EmbeddedPropertyAccessor.EmbeddedGetter.getForInsert(Object target,
Map mergeMap,
SessionImplementor session)
Get the property value from the given owner instance.
|
Object |
Dom4jAccessor.Dom4jGetter.getForInsert(Object owner,
Map mergeMap,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
SessionImplementor |
AbstractLazyInitializer.getSession()
Get the session to which this proxy is associated, or null if it is not attached.
|
SessionImplementor |
LazyInitializer.getSession()
Get the session to which this proxy is associated, or null if it is not attached.
|
Modifier and Type | Method and Description |
---|---|
Object |
AbstractLazyInitializer.getImplementation(SessionImplementor s)
Return the underlying persistent object in the given Session, or null,
do not initialize the proxy
|
Object |
LazyInitializer.getImplementation(SessionImplementor session)
Return the underlying persistent object in the given session, or null if not contained in this session's
persistence context.
|
HibernateProxy |
ProxyFactory.getProxy(Serializable id,
SessionImplementor session)
Create a new proxy instance
|
void |
AbstractLazyInitializer.setSession(SessionImplementor s)
Associate the proxy with the given session.
|
void |
LazyInitializer.setSession(SessionImplementor session)
Associate the proxy with the given session.
|
Constructor and Description |
---|
AbstractLazyInitializer(String entityName,
Serializable id,
SessionImplementor session)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
HibernateProxy |
Dom4jProxyFactory.getProxy(Serializable id,
SessionImplementor session)
Create a new proxy
|
Modifier and Type | Method and Description |
---|---|
HibernateProxy |
MapProxyFactory.getProxy(Serializable id,
SessionImplementor session) |
Constructor and Description |
---|
BasicLazyInitializer(String entityName,
Class persistentClass,
Serializable id,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
static HibernateProxy |
CGLIBLazyInitializer.getProxy(Class factory,
String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType,
Serializable id,
SessionImplementor session)
Deprecated.
|
HibernateProxy |
CGLIBProxyFactory.getProxy(Serializable id,
SessionImplementor session)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HibernateProxy |
JavassistLazyInitializer.getProxy(Class factory,
String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType,
Serializable id,
SessionImplementor session) |
HibernateProxy |
JavassistProxyFactory.getProxy(Serializable id,
SessionImplementor session) |
static HibernateProxy |
JavassistLazyInitializer.getProxy(String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType,
Serializable id,
SessionImplementor session) |
Constructor and Description |
---|
SessionStatisticsImpl(SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractEntityTuplizer.afterInitialize(Object entity,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session) |
void |
PojoEntityTuplizer.afterInitialize(Object entity,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Called just after the entities properties have been initialized.
|
void |
EntityTuplizer.afterInitialize(Object entity,
boolean lazyPropertiesAreUnfetched,
SessionImplementor session)
Called just after the entities properties have been initialized.
|
Object |
AbstractEntityTuplizer.createProxy(Serializable id,
SessionImplementor session) |
Object |
EntityTuplizer.createProxy(Serializable id,
SessionImplementor session)
Generates an appropriate proxy representation of this entity for this
entity-mode.
|
Serializable |
Dom4jEntityTuplizer.getIdentifier(Object entityOrId,
SessionImplementor session)
Extract the identifier value from the given entity.
|
Serializable |
AbstractEntityTuplizer.getIdentifier(Object entity,
SessionImplementor session) |
Serializable |
EntityTuplizer.getIdentifier(Object entity,
SessionImplementor session)
Extract the identifier value from the given entity.
|
Object[] |
AbstractEntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session) |
Object[] |
PojoEntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
Extract the values of the insertable properties of the entity (including backrefs)
|
Object[] |
EntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
Extract the values of the insertable properties of the entity (including backrefs)
|
Object |
AbstractEntityTuplizer.instantiate(Serializable id,
SessionImplementor session) |
Object |
EntityTuplizer.instantiate(Serializable id,
SessionImplementor session)
Create an entity instance initialized with the given identifier.
|
void |
AbstractEntityTuplizer.resetIdentifier(Object entity,
Serializable currentId,
Object currentVersion,
SessionImplementor session)
Inject the given identifier and version into the entity, in order to
"roll back" to their original values.
|
void |
EntityTuplizer.resetIdentifier(Object entity,
Serializable currentId,
Object currentVersion,
SessionImplementor session)
Inject the given identifier and version into the entity, in order to
"roll back" to their original values.
|
void |
AbstractEntityTuplizer.setIdentifier(Object entity,
Serializable id,
SessionImplementor session)
Inject the identifier value into the given entity.
|
void |
EntityTuplizer.setIdentifier(Object entity,
Serializable id,
SessionImplementor session)
Inject the identifier value into the given entity.
|
Modifier and Type | Method and Description |
---|---|
static Object[] |
TypeHelper.assemble(Serializable[] row,
Type[] types,
SessionImplementor session,
Object owner)
Apply the
Type.assemble(java.io.Serializable, org.hibernate.engine.SessionImplementor, java.lang.Object) operation across a series of values. |
Object |
AbstractType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
SpecialOneToOneType.assemble(Serializable oid,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
OneToOneType.assemble(Serializable oid,
SessionImplementor session,
Object owner) |
Object |
ManyToOneType.assemble(Serializable oid,
SessionImplementor session,
Object owner) |
Object |
CompositeCustomType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
CustomType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
AnyType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
ComponentType.assemble(Serializable object,
SessionImplementor session,
Object owner) |
Object |
CollectionType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
Type.assemble(Serializable cached,
SessionImplementor session,
Object owner)
Reconstruct the object from its cached "disassembled" state.
|
static void |
TypeHelper.beforeAssemble(Serializable[] row,
Type[] types,
SessionImplementor session)
Apply the
Type.beforeAssemble(java.io.Serializable, org.hibernate.engine.SessionImplementor) operation across a series of values. |
void |
AbstractType.beforeAssemble(Serializable cached,
SessionImplementor session) |
void |
AbstractStandardBasicType.beforeAssemble(Serializable cached,
SessionImplementor session) |
void |
ManyToOneType.beforeAssemble(Serializable oid,
SessionImplementor session) |
void |
Type.beforeAssemble(Serializable cached,
SessionImplementor session)
Called before assembling a query result set from the query cache, to allow batch fetching
of entities missing from the second-level cache.
|
boolean |
CustomCollectionType.contains(Object collection,
Object entity,
SessionImplementor session) |
boolean |
CollectionType.contains(Object collection,
Object childObject,
SessionImplementor session) |
static void |
TypeHelper.deepCopy(Object[] values,
Type[] types,
boolean[] copy,
Object[] target,
SessionImplementor session)
Deep copy a series of values from one array to another...
|
static Serializable[] |
TypeHelper.disassemble(Object[] row,
Type[] types,
boolean[] nonCacheable,
SessionImplementor session,
Object owner)
Apply the
Type.disassemble(java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object) operation across a series of values. |
Serializable |
AbstractType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
SpecialOneToOneType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
AbstractStandardBasicType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
OneToOneType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
ManyToOneType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
CompositeCustomType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
CustomType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
AnyType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
ComponentType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
CollectionType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
Type.disassemble(Object value,
SessionImplementor session,
Object owner)
Return a cacheable "disassembled" representation of the object.
|
static int[] |
TypeHelper.findDirty(StandardProperty[] properties,
Object[] currentState,
Object[] previousState,
boolean[][] includeColumns,
boolean anyUninitializedProperties,
SessionImplementor session)
Determine if any of the given field values are dirty, returning an array containing
indices of the dirty fields.
|
static int[] |
TypeHelper.findModified(StandardProperty[] properties,
Object[] currentState,
Object[] previousState,
boolean[][] includeColumns,
boolean anyUninitializedProperties,
SessionImplementor session)
Determine if any of the given field values are modified, returning an array containing
indices of the modified fields.
|
Object |
AbstractStandardBasicType.get(ResultSet rs,
String name,
SessionImplementor session) |
Object |
SingleColumnType.get(ResultSet rs,
String name,
SessionImplementor session)
Get a column value from a result set, without worrying about the possibility of null values.
|
Object |
CollectionType.getCollection(Serializable key,
SessionImplementor session,
Object owner)
instantiate a collection wrapper (called when loading an object)
|
Iterator |
CollectionType.getElementsIterator(Object collection,
SessionImplementor session)
Get an iterator over the element set of the collection, which may not yet be wrapped
|
protected Object |
EntityType.getIdentifier(Object value,
SessionImplementor session) |
Serializable |
CollectionType.getIdOfOwnerOrNull(Serializable key,
SessionImplementor session)
Get the id value from the owning entity key, usually the same as the key, but might be some
other property, in the case of property-ref
|
Serializable |
CollectionType.getKeyOfOwner(Object owner,
SessionImplementor session)
Get the key value from the owning entity instance, usually the identifier, but might be some
other unique key, in the case of property-ref
|
Object |
CompositeType.getPropertyValue(Object component,
int index,
SessionImplementor session)
Extract a particular component property value indicated by index.
|
Object |
CompositeCustomType.getPropertyValue(Object component,
int i,
SessionImplementor session) |
Object |
AnyType.getPropertyValue(Object component,
int i,
SessionImplementor session) |
Object |
ComponentType.getPropertyValue(Object component,
int i,
SessionImplementor session) |
Object[] |
CompositeType.getPropertyValues(Object component,
SessionImplementor session)
Extract the values of the component properties from the given component instance
|
Object[] |
CompositeCustomType.getPropertyValues(Object component,
SessionImplementor session) |
Object[] |
AnyType.getPropertyValues(Object component,
SessionImplementor session) |
Object[] |
ComponentType.getPropertyValues(Object component,
SessionImplementor session) |
Object |
AbstractType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
SpecialOneToOneType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
OneToOneType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
ManyToOneType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
AnyType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
ComponentType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
CollectionType.hydrate(ResultSet rs,
String[] name,
SessionImplementor session,
Object owner) |
Object |
Type.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class, or the identifier of an entity or collection,
from a JDBC resultset.
|
Object |
ComponentType.instantiate(Object parent,
SessionImplementor session) |
Object |
EmbeddedComponentType.instantiate(Object parent,
SessionImplementor session) |
PersistentCollection |
SetType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
ArrayType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
IdentifierBagType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
SortedSetType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
MapType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
CustomCollectionType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
abstract PersistentCollection |
CollectionType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key)
Instantiate an uninitialized collection wrapper or holder.
|
PersistentCollection |
ListType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
SortedMapType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
BagType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
boolean |
AbstractLobType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session)
Deprecated.
|
boolean |
AbstractStandardBasicType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
OneToOneType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
ManyToOneType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
CompositeCustomType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
CustomType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
AnyType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
ComponentType.isDirty(Object x,
Object y,
boolean[] checkable,
SessionImplementor session) |
boolean |
CollectionType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
NullableType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session)
Deprecated.
|
boolean |
MetaType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
Type.isDirty(Object oldState,
Object currentState,
boolean[] checkable,
SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean |
AbstractType.isDirty(Object old,
Object current,
SessionImplementor session) |
boolean |
AbstractStandardBasicType.isDirty(Object old,
Object current,
SessionImplementor session) |
boolean |
OneToOneType.isDirty(Object old,
Object current,
SessionImplementor session) |
boolean |
ManyToOneType.isDirty(Object old,
Object current,
SessionImplementor session) |
boolean |
ComponentType.isDirty(Object x,
Object y,
SessionImplementor session) |
boolean |
CollectionType.isDirty(Object old,
Object current,
SessionImplementor session) |
boolean |
Type.isDirty(Object old,
Object current,
SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean |
AbstractType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
AbstractStandardBasicType.isModified(Object oldHydratedState,
Object currentState,
boolean[] checkable,
SessionImplementor session) |
boolean |
OneToOneType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
ManyToOneType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
AnyType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
ComponentType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
CollectionType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
Type.isModified(Object dbState,
Object currentState,
boolean[] checkable,
SessionImplementor session)
Has the value been modified compared to the current database state? The difference between this
and the
Type.isDirty(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor) methods is that here we need to account for "partially" built values. |
protected boolean |
EntityType.isNotEmbedded(SessionImplementor session) |
protected boolean |
EntityType.isNull(Object owner,
SessionImplementor session) |
boolean |
OneToOneType.isNull(Object owner,
SessionImplementor session) |
Object |
EntityType.loadByUniqueKey(String entityName,
String uniqueKeyPropertyName,
Object key,
SessionImplementor session)
Load an instance by a unique key that is not the primary key.
|
byte[] |
BinaryType.next(byte[] current,
SessionImplementor session)
Increment the version.
|
Byte |
ByteType.next(Byte current,
SessionImplementor session) |
Calendar |
CalendarType.next(Calendar current,
SessionImplementor session) |
Date |
TimestampType.next(Date current,
SessionImplementor session) |
Integer |
IntegerType.next(Integer current,
SessionImplementor session) |
Long |
LongType.next(Long current,
SessionImplementor session) |
Object |
AbstractBynaryType.next(Object current,
SessionImplementor session)
Deprecated.
|
Object |
CustomType.next(Object current,
SessionImplementor session) |
Short |
ShortType.next(Short current,
SessionImplementor session) |
T |
VersionType.next(T current,
SessionImplementor session)
Increment the version.
|
Object |
AbstractLobType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Deprecated.
|
Object |
EntityType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
Object |
AbstractStandardBasicType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
CompositeCustomType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
CustomType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
AnyType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
ComponentType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
CollectionType.nullSafeGet(ResultSet rs,
String[] name,
SessionImplementor session,
Object owner) |
Object |
NullableType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Deprecated.
|
Object |
MetaType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
Type.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
T |
AbstractStandardBasicType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session) |
T |
SingleColumnType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session)
Get a column value from a result set by name.
|
Object |
AbstractLobType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Deprecated.
|
Object |
EntityType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
Object |
AbstractStandardBasicType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
CompositeCustomType.nullSafeGet(ResultSet rs,
String columnName,
SessionImplementor session,
Object owner) |
Object |
CustomType.nullSafeGet(ResultSet rs,
String columnName,
SessionImplementor session,
Object owner) |
Object |
AnyType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
ComponentType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
CollectionType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
NullableType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Deprecated.
|
Object |
MetaType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
Type.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
void |
AbstractLobType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Deprecated.
|
void |
OneToOneType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
ManyToOneType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
CompositeCustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
CustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
AnyType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
ComponentType.nullSafeSet(PreparedStatement st,
Object value,
int begin,
boolean[] settable,
SessionImplementor session) |
void |
CollectionType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
NullableType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Deprecated.
|
void |
AbstractSingleColumnStandardBasicType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement, ignoring some columns.
|
void |
MetaType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
Type.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement, ignoring some columns.
|
void |
AbstractLobType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated.
|
void |
AbstractStandardBasicType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
OneToOneType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
ManyToOneType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
CompositeCustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
CustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
AnyType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
ComponentType.nullSafeSet(PreparedStatement st,
Object value,
int begin,
SessionImplementor session) |
void |
CollectionType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
NullableType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated.
|
void |
MetaType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
Type.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
static Object[] |
TypeHelper.replace(Object[] original,
Object[] target,
Type[] types,
SessionImplementor session,
Object owner,
Map copyCache)
Apply the
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) operation across a series of values. |
static Object[] |
TypeHelper.replace(Object[] original,
Object[] target,
Type[] types,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection)
Apply the
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) operation across a series of values. |
Object |
ImmutableType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
Deprecated.
|
Object |
EntityType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
Object |
AbstractStandardBasicType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
MutableType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
Deprecated.
|
Object |
CompositeCustomType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
ByteArrayBlobType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
Deprecated.
|
Object |
SerializableToBlobType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
CustomType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
AnyType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
ComponentType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
CollectionType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
Object |
MetaType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
Object |
Type.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
Object |
AbstractType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
Object |
AbstractStandardBasicType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
Object |
ComponentType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
Object |
Type.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
static Object[] |
TypeHelper.replaceAssociations(Object[] original,
Object[] target,
Type[] types,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection)
Apply the
Type.replace(java.lang.Object, java.lang.Object, org.hibernate.engine.SessionImplementor, java.lang.Object, java.util.Map) operation across a series of values, as long as the corresponding
Type is an association. |
Object |
ArrayType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SessionImplementor session) |
Object |
MapType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SessionImplementor session) |
Object |
CustomCollectionType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SessionImplementor session) |
Object |
CollectionType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SessionImplementor session)
Replace the elements of a collection with the elements of another collection.
|
Object |
EntityType.resolve(Object value,
SessionImplementor session,
Object owner)
Resolve an identifier or unique key value
|
Object |
AbstractType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AnyType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
ComponentType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
CollectionType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
Type.resolve(Object value,
SessionImplementor session,
Object owner)
Map identifiers to entities or collections.
|
protected Object |
EntityType.resolveIdentifier(Serializable id,
SessionImplementor session)
Resolve an identifier via a load.
|
Date |
DbTimestampType.seed(SessionImplementor session) |
Calendar |
CalendarType.seed(SessionImplementor session) |
Short |
ShortType.seed(SessionImplementor session) |
Date |
TimestampType.seed(SessionImplementor session) |
T |
VersionType.seed(SessionImplementor session)
Generate an initial version.
|
Byte |
ByteType.seed(SessionImplementor session) |
Object |
AbstractBynaryType.seed(SessionImplementor session)
Deprecated.
|
Object |
CustomType.seed(SessionImplementor session) |
Long |
LongType.seed(SessionImplementor session) |
byte[] |
BinaryType.seed(SessionImplementor session)
Generate an initial version.
|
Integer |
IntegerType.seed(SessionImplementor session) |
Object |
AbstractType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AnyType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
ComponentType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
CollectionType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
Type.semiResolve(Object value,
SessionImplementor session,
Object owner)
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
|
protected abstract void |
AbstractLobType.set(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated.
|
protected void |
ByteArrayBlobType.set(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated.
|
void |
SerializableToBlobType.set(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
AbstractStandardBasicType.set(PreparedStatement st,
T value,
int index,
SessionImplementor session) |
void |
SingleColumnType.set(PreparedStatement st,
T value,
int index,
SessionImplementor session)
Set a parameter value without worrying about the possibility of null
values.
|
PersistentCollection |
SetType.wrap(SessionImplementor session,
Object collection) |
PersistentCollection |
ArrayType.wrap(SessionImplementor session,
Object array) |
PersistentCollection |
IdentifierBagType.wrap(SessionImplementor session,
Object collection) |
PersistentCollection |
SortedSetType.wrap(SessionImplementor session,
Object collection) |
PersistentCollection |
MapType.wrap(SessionImplementor session,
Object collection) |
PersistentCollection |
CustomCollectionType.wrap(SessionImplementor session,
Object collection) |
abstract PersistentCollection |
CollectionType.wrap(SessionImplementor session,
Object collection)
Wrap the naked collection instance in a wrapper, or instantiate a
holder.
|
PersistentCollection |
ListType.wrap(SessionImplementor session,
Object collection) |
PersistentCollection |
SortedMapType.wrap(SessionImplementor session,
Object collection) |
PersistentCollection |
BagType.wrap(SessionImplementor session,
Object collection) |
Modifier and Type | Method and Description |
---|---|
Object |
CompositeUserType.assemble(Serializable cached,
SessionImplementor session,
Object owner)
Reconstruct an object from the cacheable representation.
|
Serializable |
CompositeUserType.disassemble(Object value,
SessionImplementor session)
Transform the object into its cacheable representation.
|
PersistentCollection |
UserCollectionType.instantiate(SessionImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper
|
Object |
UserVersionType.next(Object current,
SessionImplementor session)
Increment the version.
|
Object |
CompositeUserType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
void |
CompositeUserType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
Object |
CompositeUserType.replace(Object original,
Object target,
SessionImplementor session,
Object owner)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
Object |
UserCollectionType.replaceElements(Object original,
Object target,
CollectionPersister persister,
Object owner,
Map copyCache,
SessionImplementor session)
Replace the elements of a collection with the elements of another collection
|
Object |
UserVersionType.seed(SessionImplementor session)
Generate an initial version.
|
PersistentCollection |
UserCollectionType.wrap(SessionImplementor session,
Object collection)
Wrap an instance of a collection
|
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved