Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.action.internal |
Internals for action processing.
|
org.hibernate.action.spi |
Defines SPI hooks into the
ActionQueue . |
org.hibernate.boot.archive.spi |
Defines the SPI for support of "scanning" of "archives".
|
org.hibernate.boot.model.naming |
Represents a proposed new approach to allowing hooks into the process of determining
the name of database objects (tables, columns, constraints, etc).
|
org.hibernate.boot.model.source.internal.hbm | |
org.hibernate.boot.registry.classloading.spi |
The class loading service SPI.
|
org.hibernate.boot.registry.selector.spi |
Defines actual contract used for strategy selection :
StrategySelector . |
org.hibernate.boot.spi | |
org.hibernate.bytecode.enhance.spi |
package defining bytecode code enhancement (instrumentation) support.
|
org.hibernate.bytecode.internal.javassist |
Javassist support internals
|
org.hibernate.bytecode.spi |
Package defining bytecode code enhancement (instrumentation) support.
|
org.hibernate.cache |
This package defines API of the Hibernate second level cache service.
|
org.hibernate.cache.internal |
Internal implementations and support for second-level caching.
|
org.hibernate.cache.spi |
Defines the Hibernate second level caching SPI.
|
org.hibernate.cache.spi.access |
Defines contracts for transactional and concurrent access to cached
entity and
collection data. |
org.hibernate.cache.spi.entry |
This package defines formats for disassembled state kept in the second level cache.
|
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.collection.internal |
Internal implementations and support for persistent collections
|
org.hibernate.collection.spi |
SPI definitions for persistent collections
|
org.hibernate.context |
Defines support for "current session" feature.
|
org.hibernate.context.internal |
Internal implementations and support around "current session" handling.
|
org.hibernate.context.spi |
SPI level contracts around "current session" support.
|
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
org.hibernate.dialect |
This package abstracts the SQL dialect of the underlying database.
|
org.hibernate.dialect.lock |
Support for Dialect-specific locking strategies
|
org.hibernate.engine.internal |
Support for many of the internal workings of Hibernate.
|
org.hibernate.engine.jdbc.dialect.internal |
Internal support for Dialect resolution (from JDBC metadata) and Dialect building.
|
org.hibernate.engine.jdbc.dialect.spi |
Contracts supporting Dialect resolution (from JDBC metadata) and Dialect building.
|
org.hibernate.engine.jndi |
Support for JNDI within Hibernate
|
org.hibernate.engine.query.spi |
Defines support for query plans and stored metadata about queries
|
org.hibernate.engine.spi | |
org.hibernate.engine.transaction.internal | |
org.hibernate.engine.transaction.jta.platform.spi | |
org.hibernate.engine.transaction.spi | |
org.hibernate.envers | |
org.hibernate.envers.configuration.internal.metadata | |
org.hibernate.envers.enhanced | |
org.hibernate.envers.exception | |
org.hibernate.envers.internal.entities | |
org.hibernate.envers.internal.entities.mapper.relation.lazy | |
org.hibernate.envers.internal.reader | |
org.hibernate.event.internal |
This package defines a default set of event listeners that
implements the default behaviors of Hibernate.
|
org.hibernate.event.service.spi | |
org.hibernate.event.spi | |
org.hibernate.exception |
This package is a fork of Apache commons-lang nestable exceptions.
|
org.hibernate.exception.spi | |
org.hibernate.hql.internal | |
org.hibernate.hql.internal.ast |
An ANTLR-based parser for Hibernate Query Language.
|
org.hibernate.hql.internal.ast.exec | |
org.hibernate.hql.internal.classic |
This package contains the Hibernate 2.x query parser which
is being end-of-lifed.
|
org.hibernate.hql.spi | |
org.hibernate.id |
This package contains internal implementation classes for the
main API interfaces.
|
org.hibernate.id.enhanced |
Enhanced/improved versions of table and sequence based identifier generators targeting portability and unified
configuration
|
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
org.hibernate.internal.util |
Internal utility classes.
|
org.hibernate.internal.util.beans | |
org.hibernate.internal.util.config | |
org.hibernate.internal.util.xml | |
org.hibernate.jdbc | |
org.hibernate.jpa.internal | |
org.hibernate.jpa.internal.util | |
org.hibernate.jpa.spi | |
org.hibernate.loader |
This package defines functionality for processing JDBC
result sets and returning complex graphs of persistent
objects.
|
org.hibernate.loader.collection |
This package defines collection initializers
|
org.hibernate.loader.collection.plan | |
org.hibernate.loader.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.custom.sql | |
org.hibernate.loader.entity |
This package defines entity loaders
|
org.hibernate.loader.entity.plan | |
org.hibernate.loader.hql |
This package defines a loader for the AST-based query parser
|
org.hibernate.loader.plan.exec.internal |
Provides the internal implementations for generating the load query from the LoadPlan and the ResultSet processor.
|
org.hibernate.loader.plan.spi |
Defines the SPI for the building blocks that make up a LoadPlan.
|
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.persister.collection |
This package abstracts the persistence mechanism for collections.
|
org.hibernate.persister.entity |
This package abstracts persistence mechanisms for
entities, and defines the Hibernate runtime
metamodel.
|
org.hibernate.persister.internal | |
org.hibernate.persister.spi | |
org.hibernate.persister.walking.spi | |
org.hibernate.procedure | |
org.hibernate.procedure.internal |
Defines the internal support for implementing stored procedure calling.
|
org.hibernate.property.access.spi |
Defines strategies for accessing the persistent properties of an entity or composite.
|
org.hibernate.proxy |
This package defines a framework for lazy-initializing
entity proxies.
|
org.hibernate.proxy.map | |
org.hibernate.proxy.pojo.javassist | |
org.hibernate.resource.transaction |
Defines the resource-level transaction capabilities of Hibernate, which revolves around the
TransactionCoordinator contract. |
org.hibernate.resource.transaction.backend.jdbc.internal | |
org.hibernate.resource.transaction.backend.jta.internal | |
org.hibernate.result | |
org.hibernate.secure.spi | |
org.hibernate.service | |
org.hibernate.service.internal | |
org.hibernate.service.spi | |
org.hibernate.sql.ordering.antlr | |
org.hibernate.tool.hbm2ddl |
The hbm2ddl tool.
|
org.hibernate.tool.schema.extract.spi | |
org.hibernate.tool.schema.spi | |
org.hibernate.tuple.component | |
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.type.descriptor.java | |
org.hibernate.usertype |
Interfaces for user-defined custom types.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationException
Annotation related exception.
|
class |
CallbackException
Intended to be thrown from
Lifecycle and Interceptor callbacks. |
class |
DuplicateMappingException
Raised whenever a duplicate for a certain type occurs.
|
class |
HibernateError
Marks a group of exceptions that generally indicate an internal Hibernate error or bug.
|
class |
InstantiationException
Thrown if Hibernate can't instantiate a class at runtime.
|
class |
InvalidMappingException
Thrown when a mapping is found to be invalid.
|
class |
JDBCException
Wraps a
SQLException . |
class |
LazyInitializationException
Indicates an attempt to access not-yet-fetched data outside of a session context.
|
class |
MappingException
An exception that occurs while reading mapping sources (xml/annotations),usually as a result of something
screwy in the O-R mappings.
|
class |
MappingNotFoundException
Deprecated.
Use
MappingNotFoundException instead. |
class |
NonUniqueObjectException
This exception is thrown when an operation would break session-scoped identity.
|
class |
NonUniqueResultException
Thrown when the application calls Query.uniqueResult() and
the query returned more than one result.
|
class |
ObjectDeletedException
Thrown when the user tries to do something illegal with a deleted object.
|
class |
ObjectNotFoundException
Thrown when Session.load() fails to select a row with
the given primary key (identifier value).
|
class |
OptimisticLockException
Deprecated.
Use
OptimisticEntityLockException instead |
class |
PersistentObjectException
Thrown when the user passes a persistent instance to a Session
method that expects a transient instance.
|
class |
PessimisticLockException
Thrown when a pessimistic locking conflict occurs.
|
class |
PropertyAccessException
A problem occurred accessing a property of an instance of a
persistent class by reflection, or via CGLIB.
|
class |
PropertyNotFoundException
Indicates that an expected getter or setter method could not be
found on a class.
|
class |
PropertySetterAccessException |
class |
PropertyValueException
Thrown when the (illegal) value of a property can not be persisted.
|
class |
QueryException
A problem occurred translating a Hibernate query to SQL due to invalid query syntax, etc.
|
class |
QueryParameterException
Parameter invalid or not found in the query.
|
class |
QueryTimeoutException
Thrown when a database query timeout occurs.
|
class |
ResourceClosedException
Indicates an attempt was made to use a closed resource (Session, SessionFactory, etc).
|
class |
SessionException
Thrown when the user calls a method of a
Session that is in an inappropriate state for the given call (for
example, the the session is closed or disconnected). |
class |
StaleObjectStateException
A specialized StaleStateException that carries information about the particular entity
instance that was the source of the failure.
|
class |
StaleStateException
Thrown when a version number or timestamp check failed, indicating that the Session contained
stale data (when using long transactions with versioning).
|
class |
TransactionException
Indicates that a transaction could not be begun, committed
or rolled back.
|
class |
TransientObjectException
Thrown when the user passes a transient instance to a Session method that expects a persistent instance.
|
class |
TransientPropertyValueException
Thrown when a property cannot be persisted because it is an association
with a transient unsaved entity instance.
|
class |
TypeMismatchException
Used when a user provided type does not match the expected one.
|
class |
UnknownEntityTypeException
Indicates an attempt was made to refer to an unknown entity name/class.
|
class |
UnknownProfileException
Used to indicate a request against an unknown profile name.
|
class |
UnresolvableObjectException
Thrown when Hibernate could not resolve an object by id, especially when
loading an association.
|
class |
UnsupportedLockAttemptException
This exception is thrown when an invalid LockMode is selected for an entity.
|
class |
WrongClassException
Thrown when loading an entity (by identifier) results in a value that cannot be treated as the subclass
type requested by the caller.
|
Modifier and Type | Method and Description |
---|---|
void |
Session.cancelQuery()
Cancel the execution of the current query.
|
void |
SessionFactory.close()
Destroy this SessionFactory and release all resources (caches,
connection pools, etc).
|
void |
Session.close()
End the session by releasing the JDBC connection and cleaning up.
|
static void |
Hibernate.close(Iterator iterator)
Close an
Iterator instances obtained from Query.iterate() immediately
instead of waiting until the session is closed or disconnected. |
Criteria |
Criteria.createAlias(String associationPath,
String alias)
Join an association, assigning an alias to the joined association.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
int joinType)
Deprecated.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause)
Deprecated.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
JoinType joinType)
Join an association using the specified join-type, assigning an alias
to the joined association.
|
Criteria |
Criteria.createAlias(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Join an association using the specified join-type, assigning an alias
to the joined association.
|
Criteria |
Criteria.createCriteria(String associationPath)
Create a new Criteria, "rooted" at the associated entity.
|
Criteria |
Criteria.createCriteria(String associationPath,
int joinType)
Deprecated.
|
Criteria |
Criteria.createCriteria(String associationPath,
JoinType joinType)
Create a new Criteria, "rooted" at the associated entity, using the
specified join type.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias)
Create a new Criteria, "rooted" at the associated entity,
assigning the given alias.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
int joinType)
Deprecated.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause)
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
JoinType joinType)
Create a new Criteria, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
|
Criteria |
Criteria.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause)
Create a new Criteria, "rooted" at the associated entity,
assigning the given alias and using the specified join type.
|
<T> T |
Session.doReturningWork(ReturningWork<T> work)
Controller for allowing users to perform JDBC related work using the Connection managed by this Session.
|
void |
Session.doWork(Work work)
Controller for allowing users to perform JDBC related work using the Connection managed by this Session.
|
void |
Session.flush()
Force this session to flush.
|
Session |
SessionFactory.getCurrentSession()
Obtains the current session.
|
FilterDefinition |
SessionFactory.getFilterDefinition(String filterName)
Obtain the definition of a filter by name.
|
static void |
Hibernate.initialize(Object proxy)
Force initialization of a proxy or persistent collection.
|
boolean |
Session.isDirty()
Does this session contain any changes which must be synchronized with
the database? In other words, would any DML operations be executed if
we flushed this session?
|
List |
Criteria.list()
Get the results.
|
Session |
SessionFactory.openSession()
Open a
Session . |
void |
Transaction.registerSynchronization(Synchronization synchronization)
Register a user synchronization callback for this transaction.
|
ScrollableResults |
Criteria.scroll()
Get the results as an instance of
ScrollableResults . |
ScrollableResults |
Criteria.scroll(ScrollMode scrollMode)
Get the results as an instance of
ScrollableResults based on the
given scroll mode. |
Criteria |
Criteria.setFetchMode(String associationPath,
FetchMode mode)
Specify an association fetching strategy for an association or a
collection of values.
|
Object |
Criteria.uniqueResult()
Convenience method to return a single instance that matches
the query, or null if the query returns no results.
|
void |
Filter.validate()
Perform validation of the filter state.
|
Modifier and Type | Method and Description |
---|---|
void |
BulkOperationCleanupAction.beforeExecutions() |
void |
EntityInsertAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session) |
void |
EntityDeleteAction.doAfterTransactionCompletion(boolean success,
SessionImplementor session) |
void |
QueuedOperationCollectionAction.execute() |
void |
EntityUpdateAction.execute() |
void |
EntityInsertAction.execute() |
void |
EntityIdentityInsertAction.execute() |
void |
EntityDeleteAction.execute() |
void |
CollectionUpdateAction.execute() |
void |
CollectionRemoveAction.execute() |
void |
CollectionRecreateAction.execute() |
void |
BulkOperationCleanupAction.execute() |
Modifier and Type | Method and Description |
---|---|
void |
Executable.beforeExecutions()
Called before executing any actions.
|
void |
Executable.execute()
Execute this action.
|
Modifier and Type | Class and Description |
---|---|
class |
ArchiveException
Indicates a problem accessing or visiting the archive
|
Modifier and Type | Class and Description |
---|---|
class |
IllegalIdentifierException
Indicates an attempted use of a name that was deemed illegal
|
Modifier and Type | Method and Description |
---|---|
List<EntityHierarchySourceImpl> |
EntityHierarchyBuilder.buildHierarchies()
To be called after all mapping documents have been processed (via
EntityHierarchyBuilder.indexMappingDocument(org.hibernate.boot.model.source.internal.hbm.MappingDocument) ) |
Modifier and Type | Class and Description |
---|---|
class |
ClassLoadingException
Indicates a problem performing class loading.
|
Modifier and Type | Class and Description |
---|---|
class |
StrategySelectionException
Indicates a problem performing the selection/resolution.
|
Modifier and Type | Class and Description |
---|---|
static class |
InFlightMetadataCollector.DuplicateSecondaryTableException |
Modifier and Type | Class and Description |
---|---|
class |
EnhancementException
An exception indicating some kind of problem performing bytecode enhancement.
|
Modifier and Type | Class and Description |
---|---|
class |
BulkAccessorException
An exception thrown while generating a bulk accessor.
|
Modifier and Type | Class and Description |
---|---|
class |
NotInstrumentedException
Indicates a condition where an instrumented/enhanced class was expected, but the class was not
instrumented/enhanced.
|
Modifier and Type | Class and Description |
---|---|
class |
CacheException
Something went wrong in the cache
|
class |
NoCacheRegionFactoryAvailableException
Indicates a condition where a second-level cache implementation was expected to be to available, but
none was found on the classpath.
|
Modifier and Type | Method and Description |
---|---|
List |
StandardQueryCache.get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set<Serializable> spaces,
SessionImplementor session) |
QueryCache |
StandardQueryCacheFactory.getQueryCache(String regionName,
UpdateTimestampsCache updateTimestampsCache,
SessionFactoryOptions settings,
Properties props) |
boolean |
StandardQueryCache.put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
List |
QueryCache.get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set<Serializable> spaces,
SessionImplementor session)
Get results from the cache.
|
boolean |
QueryCache.put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session)
Put a result into the query cache.
|
Modifier and Type | Class and Description |
---|---|
class |
UnknownAccessTypeException
Indicates that an unknown AccessType external name was encountered
|
Modifier and Type | Method and Description |
---|---|
Object[] |
StandardCacheEntryImpl.assemble(Object instance,
Serializable id,
EntityPersister persister,
Interceptor interceptor,
EventSource session)
Assemble the previously disassembled state represented by this entry into the given entity instance.
|
Constructor and Description |
---|
StandardCacheEntryImpl(Object[] state,
EntityPersister persister,
Object version,
SessionImplementor session,
Object owner)
Constructs a StandardCacheEntryImpl
|
Modifier and Type | Class and Description |
---|---|
class |
CannotForceNonNullableException
Indicates an internal attempt to mark a column as non-nullable (because its part
of a PK, etc) but we cannot force that column to be non-nullable.
|
class |
NotYetImplementedException
Mapping not yet implemented
|
class |
RecoverableException
Deprecated.
Was only ever referenced in a single place, in an extremely dubious way.
|
Modifier and Type | Method and Description |
---|---|
SessionFactory |
Configuration.buildSessionFactory()
Create a
SessionFactory using the properties and mappings in this configuration. |
SessionFactory |
Configuration.buildSessionFactory(ServiceRegistry serviceRegistry)
Create a
SessionFactory using the properties and mappings in this configuration. |
Configuration |
Configuration.configure()
Use the mappings and properties specified in an application resource named hibernate.cfg.xml.
|
Configuration |
Configuration.configure(Document document)
Deprecated.
No longer supported.
|
Configuration |
Configuration.configure(File configFile)
Use the mappings and properties specified in the given application file.
|
Configuration |
Configuration.configure(String resource)
Use the mappings and properties specified in the given application resource.
|
Configuration |
Configuration.configure(URL url)
Use the mappings and properties specified in the given document.
|
Modifier and Type | Method and Description |
---|---|
void |
PersistentIdentifierBag.afterRowInsert(CollectionPersister persister,
Object entry,
int i) |
void |
AbstractPersistentCollection.afterRowInsert(CollectionPersister persister,
Object entry,
int i) |
Serializable |
PersistentSet.disassemble(CollectionPersister persister) |
Serializable |
PersistentMap.disassemble(CollectionPersister persister) |
Serializable |
PersistentList.disassemble(CollectionPersister persister) |
Serializable |
PersistentIdentifierBag.disassemble(CollectionPersister persister) |
Serializable |
PersistentBag.disassemble(CollectionPersister persister) |
Serializable |
PersistentArrayHolder.disassemble(CollectionPersister persister) |
boolean |
PersistentSet.equalsSnapshot(CollectionPersister persister) |
boolean |
PersistentMap.equalsSnapshot(CollectionPersister persister) |
boolean |
PersistentList.equalsSnapshot(CollectionPersister persister) |
boolean |
PersistentIdentifierBag.equalsSnapshot(CollectionPersister persister) |
boolean |
PersistentBag.equalsSnapshot(CollectionPersister persister) |
boolean |
PersistentArrayHolder.equalsSnapshot(CollectionPersister persister) |
void |
AbstractPersistentCollection.forceInitialization() |
Iterator |
PersistentSet.getDeletes(CollectionPersister persister,
boolean indexIsFormula) |
Iterator |
PersistentMap.getDeletes(CollectionPersister persister,
boolean indexIsFormula) |
Iterator |
PersistentList.getDeletes(CollectionPersister persister,
boolean indexIsFormula) |
Iterator |
PersistentIdentifierBag.getDeletes(CollectionPersister persister,
boolean indexIsFormula) |
Iterator |
PersistentBag.getDeletes(CollectionPersister persister,
boolean indexIsFormula) |
Iterator |
PersistentArrayHolder.getDeletes(CollectionPersister persister,
boolean indexIsFormula) |
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
|
Collection |
PersistentSet.getOrphans(Serializable snapshot,
String entityName) |
Collection |
PersistentMap.getOrphans(Serializable snapshot,
String entityName) |
Collection |
PersistentList.getOrphans(Serializable snapshot,
String entityName) |
Collection |
PersistentIdentifierBag.getOrphans(Serializable snapshot,
String entityName) |
Collection |
PersistentBag.getOrphans(Serializable snapshot,
String entityName) |
Collection |
PersistentArrayHolder.getOrphans(Serializable snapshot,
String entityName) |
abstract Collection |
AbstractPersistentCollection.getOrphans(Serializable snapshot,
String entityName) |
Serializable |
PersistentSet.getSnapshot(CollectionPersister persister) |
Serializable |
PersistentMap.getSnapshot(CollectionPersister persister) |
Serializable |
PersistentList.getSnapshot(CollectionPersister persister) |
Serializable |
PersistentIdentifierBag.getSnapshot(CollectionPersister persister) |
Serializable |
PersistentBag.getSnapshot(CollectionPersister persister) |
Serializable |
PersistentArrayHolder.getSnapshot(CollectionPersister persister) |
void |
PersistentSet.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner) |
void |
PersistentMap.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner) |
void |
PersistentList.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner) |
void |
PersistentIdentifierBag.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner) |
void |
PersistentBag.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner) |
void |
PersistentArrayHolder.initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner) |
boolean |
PersistentSet.needsInserting(Object entry,
int i,
Type elemType) |
boolean |
PersistentMap.needsInserting(Object entry,
int i,
Type elemType) |
boolean |
PersistentList.needsInserting(Object entry,
int i,
Type elemType) |
boolean |
PersistentIdentifierBag.needsInserting(Object entry,
int i,
Type elemType) |
boolean |
PersistentBag.needsInserting(Object entry,
int i,
Type elemType) |
boolean |
PersistentArrayHolder.needsInserting(Object entry,
int i,
Type elemType) |
boolean |
PersistentMap.needsUpdating(Object entry,
int i,
Type elemType) |
boolean |
PersistentList.needsUpdating(Object entry,
int i,
Type elemType) |
boolean |
PersistentIdentifierBag.needsUpdating(Object entry,
int i,
Type elemType) |
boolean |
PersistentArrayHolder.needsUpdating(Object entry,
int i,
Type elemType) |
void |
PersistentIdentifierBag.preInsert(CollectionPersister persister) |
void |
AbstractPersistentCollection.preInsert(CollectionPersister persister) |
Object |
PersistentSet.readFrom(ResultSet rs,
CollectionPersister persister,
CollectionAliases descriptor,
Object owner) |
Object |
PersistentMap.readFrom(ResultSet rs,
CollectionPersister persister,
CollectionAliases descriptor,
Object owner) |
Object |
PersistentList.readFrom(ResultSet rs,
CollectionPersister persister,
CollectionAliases descriptor,
Object owner) |
Object |
PersistentIdentifierBag.readFrom(ResultSet rs,
CollectionPersister persister,
CollectionAliases descriptor,
Object owner) |
Object |
PersistentBag.readFrom(ResultSet rs,
CollectionPersister persister,
CollectionAliases descriptor,
Object owner) |
Object |
PersistentArrayHolder.readFrom(ResultSet rs,
CollectionPersister persister,
CollectionAliases descriptor,
Object owner) |
boolean |
AbstractPersistentCollection.setCurrentSession(SessionImplementor session) |
protected Serializable |
PersistentSortedSet.snapshot(BasicCollectionPersister persister,
EntityMode entityMode) |
protected Serializable |
PersistentSortedMap.snapshot(BasicCollectionPersister persister,
EntityMode entityMode) |
Modifier and Type | Method and Description |
---|---|
Object |
PersistentCollection.readFrom(ResultSet rs,
CollectionPersister role,
CollectionAliases descriptor,
Object owner)
Read a row from the JDBC result set
|
boolean |
PersistentCollection.setCurrentSession(SessionImplementor session)
Associate the collection with the given session.
|
Modifier and Type | Class and Description |
---|---|
class |
TenantIdentifierMismatchException
Indicates that tenant identifiers did not match in cases where
CurrentTenantIdentifierResolver.validateExistingCurrentSessions() returns
true and there is a mismatch found. |
Modifier and Type | Method and Description |
---|---|
Session |
ThreadLocalSessionContext.currentSession() |
Session |
JTASessionContext.currentSession() |
Modifier and Type | Method and Description |
---|---|
Session |
CurrentSessionContext.currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
Modifier and Type | Method and Description |
---|---|
String[] |
CriteriaQuery.findColumns(String propertyPath,
Criteria criteria)
Get the names of the columns mapped by a property path; if the property path is not found in criteria, try
the "outer" query.
|
String |
CriteriaQuery.getColumn(Criteria criteria,
String propertyPath)
Resolve a property path to the name of the column it maps to.
|
String[] |
CriteriaQuery.getColumns(String propertyPath,
Criteria criteria)
Resolve a property path to the names of the columns it maps to.
|
String[] |
CriteriaQuery.getColumnsUsingProjection(Criteria criteria,
String propertyPath)
Get the names of the columns mapped by a property path.
|
protected QueryableCollection |
AbstractEmptinessExpression.getQueryableCollection(String entityName,
String propertyName,
SessionFactoryImplementor factory) |
Type |
CriteriaQuery.getType(Criteria criteria,
String propertyPath)
Get the type of a property path.
|
TypedValue |
CriteriaQuery.getTypedValue(Criteria criteria,
String propertyPath,
Object value)
Build a typed-value for the property/value combo.
|
TypedValue[] |
SubqueryExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SizeExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SimpleSubqueryExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SimpleExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NullExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NotNullExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NotExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NaturalIdentifier.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
Junction.getTypedValues(Criteria crit,
CriteriaQuery criteriaQuery) |
TypedValue[] |
Criterion.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
TypedValue[] |
BetweenExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
AbstractEmptinessExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
RowCountProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
PropertyProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
ProjectionList.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Projection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery)
Types returned by the rendered SQL
fragment . |
Type[] |
AliasedProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
AggregateProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Projection.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the return types for a particular user-visible alias.
|
Type[] |
AliasedProjection.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery) |
Type |
CriteriaQuery.getTypeUsingProjection(Criteria criteria,
String propertyPath)
Get the type of a property path.
|
String |
PropertyProjection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
ProjectionList.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Projection.toGroupSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the GROUP BY clause
|
String |
SubqueryExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SizeExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SimpleExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
PropertyExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NullExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NotNullExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NotExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NaturalIdentifier.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Junction.toSqlString(Criteria crit,
CriteriaQuery criteriaQuery) |
String |
Criterion.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
BetweenExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
AbstractEmptinessExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
RowCountProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
PropertyProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
ProjectionList.toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery) |
String |
Projection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the SELECT clause.
|
String |
AliasedProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
AggregateProjection.toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery) |
Modifier and Type | Method and Description |
---|---|
static Dialect |
Dialect.getDialect()
Get an instance of the dialect specified by the current System properties.
|
static Dialect |
Dialect.getDialect(Properties props)
Get an instance of the dialect specified by the given properties or by
the current System properties.
|
String |
Dialect.getHibernateTypeName(int code)
|
String |
Dialect.getHibernateTypeName(int code,
int length,
int precision,
int scale)
|
String |
Dialect.getTypeName(int code)
Get the name of the database type associated with the given
Types typecode. |
String |
TeradataDialect.getTypeName(int code,
int length,
int precision,
int scale)
Get the name of the database type associated with the given
java.sql.Types typecode.
|
String |
Teradata14Dialect.getTypeName(int code,
int length,
int precision,
int scale)
Get the name of the database type associated with the given
java.sql.Types typecode.
|
String |
Dialect.getTypeName(int code,
long length,
int precision,
int scale)
Get the name of the database type associated with the given
Types typecode with the given storage specification
parameters. |
Modifier and Type | Class and Description |
---|---|
class |
LockingStrategyException
Represents an error trying to apply a
LockingStrategy to an entity |
class |
OptimisticEntityLockException
Represents an error trying to apply an optimistic
LockingStrategy to an entity |
class |
PessimisticEntityLockException
Represents an error trying to apply a pessimistic
LockingStrategy to an entity |
Modifier and Type | Method and Description |
---|---|
CollectionEntry |
StatefulPersistenceContext.addInitializedCollection(CollectionPersister persister,
PersistentCollection collection,
Serializable id) |
void |
StatefulPersistenceContext.addInitializedDetachedCollection(CollectionPersister collectionPersister,
PersistentCollection collection) |
void |
StatefulPersistenceContext.addNewCollection(CollectionPersister persister,
PersistentCollection collection) |
static int |
ParameterBinder.bindQueryParameters(PreparedStatement st,
QueryParameters queryParameters,
int start,
ParameterBinder.NamedParameterSource source,
SessionImplementor session)
Perform parameter binding
|
static void |
Cascade.cascade(CascadingAction action,
CascadePoint cascadePoint,
EventSource eventSource,
EntityPersister persister,
Object parent)
Cascade an action from the parent entity instance to all its children.
|
static void |
Cascade.cascade(CascadingAction action,
CascadePoint cascadePoint,
EventSource eventSource,
EntityPersister persister,
Object parent,
Object anything)
Cascade an action from the parent entity instance to all its children.
|
void |
Nullability.checkNullability(Object[] values,
EntityPersister persister,
boolean isUpdate)
Check nullability of the class persister properties
|
void |
StatefulPersistenceContext.checkUniqueness(EntityKey key,
Object object) |
Object[] |
StatefulPersistenceContext.getDatabaseSnapshot(Serializable id,
EntityPersister persister)
Get the current state of the entity as known to the underlying
database, or null if there is no corresponding row
Get the current state of the entity as known to the underlying database, or null if there is no
corresponding row
|
Object[] |
StatefulPersistenceContext.getNaturalIdSnapshot(Serializable id,
EntityPersister persister) |
void |
StatefulPersistenceContext.initializeNonLazyCollections() |
Object |
StatefulPersistenceContext.narrowProxy(Object proxy,
EntityPersister persister,
EntityKey key,
Object object) |
Object |
StatefulPersistenceContext.proxyFor(EntityPersister persister,
EntityKey key,
Object impl) |
Object |
StatefulPersistenceContext.proxyFor(Object impl) |
Object |
StatefulPersistenceContext.unproxy(Object maybeProxy) |
Object |
StatefulPersistenceContext.unproxyAndReassociate(Object maybeProxy) |
Modifier and Type | Method and Description |
---|---|
Dialect |
DialectFactoryImpl.buildDialect(Map configValues,
DialectResolutionInfoSource resolutionInfoSource) |
Modifier and Type | Method and Description |
---|---|
Dialect |
DialectFactory.buildDialect(Map configValues,
DialectResolutionInfoSource resolutionInfoSource)
Builds an appropriate Dialect instance.
|
Modifier and Type | Class and Description |
---|---|
class |
JndiException
An exception indicating trouble accessing JNDI
|
class |
JndiNameException
Indicates a problem with a given JNDI name being deemed as not valid.
|
Modifier and Type | Method and Description |
---|---|
int |
NativeSQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session)
Performs the execute query
|
int |
HQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session)
Coordinates the efforts to perform an execution across all the included query translators.
|
Iterator |
HQLQueryPlan.performIterate(QueryParameters queryParameters,
EventSource session)
Coordinates the efforts to perform an iterate across all the included query translators.
|
List |
HQLQueryPlan.performList(QueryParameters queryParameters,
SessionImplementor session)
Coordinates the efforts to perform a list across all the included query translators.
|
ScrollableResults |
HQLQueryPlan.performScroll(QueryParameters queryParameters,
SessionImplementor session)
Coordinates the efforts to perform a scroll across all the included query translators.
|
Modifier and Type | Method and Description |
---|---|
CollectionEntry |
PersistenceContext.addInitializedCollection(CollectionPersister persister,
PersistentCollection collection,
Serializable id)
add a collection we just pulled out of the cache (does not need initializing)
|
void |
PersistenceContext.addInitializedDetachedCollection(CollectionPersister collectionPersister,
PersistentCollection collection)
add an (initialized) collection that was created by another session and passed
into update() (ie.
|
void |
PersistenceContext.addNewCollection(CollectionPersister persister,
PersistentCollection collection)
Add a new collection (ie.
|
void |
SessionDelegatorBaseImpl.cancelQuery() |
void |
CascadingAction.cascade(EventSource session,
Object child,
String entityName,
Object anything,
boolean isCascadeDeleteEnabled)
Cascade the action to the child object.
|
void |
PersistenceContext.checkUniqueness(EntityKey key,
Object object)
Attempts to check whether the given key represents an entity already loaded within the
current session.
|
void |
SessionFactoryDelegatingImpl.close() |
void |
SessionDelegatorBaseImpl.close() |
<T> T |
SessionDelegatorBaseImpl.doReturningWork(ReturningWork<T> work) |
void |
SessionDelegatorBaseImpl.doWork(Work work) |
void |
CacheImplementor.evictQueries()
Clean up the default
QueryCache . |
void |
ActionQueue.executeActions()
Perform all currently queued actions.
|
void |
ActionQueue.executeInserts()
Perform all currently queued entity-insertion actions.
|
int |
SessionImplementor.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters)
Execute a native SQL update or delete query
|
int |
SessionDelegatorBaseImpl.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters) |
int |
SessionImplementor.executeUpdate(String query,
QueryParameters queryParameters)
Execute a HQL update or delete query
|
int |
SessionDelegatorBaseImpl.executeUpdate(String query,
QueryParameters queryParameters) |
Session |
SessionFactoryDelegatingImpl.getCurrentSession() |
EntityPersister |
SessionImplementor.getEntityPersister(String entityName,
Object object)
Get the EntityPersister for any instance
|
EntityPersister |
SessionDelegatorBaseImpl.getEntityPersister(String entityName,
Object object) |
Object |
SessionImplementor.getEntityUsingInterceptor(EntityKey key)
Get the entity instance associated with the given Key,
calling the Interceptor if necessary
|
Object |
SessionDelegatorBaseImpl.getEntityUsingInterceptor(EntityKey key) |
FilterDefinition |
SessionFactoryDelegatingImpl.getFilterDefinition(String filterName) |
Collection |
CollectionEntry.getOrphans(String entityName,
PersistentCollection collection)
Get the collection orphans (entities which were removed from the collection)
|
QueryCache |
SessionFactoryImplementor.getQueryCache(String regionName)
Get a particular named query cache, or the default cache
|
QueryCache |
SessionFactoryDelegatingImpl.getQueryCache(String regionName) |
QueryCache |
CacheImplementor.getQueryCache(String regionName)
Get query cache by region name or create a new one if none exist.
|
String[] |
SessionFactoryImplementor.getReturnAliases(String queryString)
Get the return aliases of a query
|
String[] |
SessionFactoryDelegatingImpl.getReturnAliases(String queryString) |
Type[] |
SessionFactoryImplementor.getReturnTypes(String queryString)
Get the return types of a query
|
Type[] |
SessionFactoryDelegatingImpl.getReturnTypes(String queryString) |
String |
SessionImplementor.guessEntityName(Object entity)
The guessed entity name for an entity not in an association
|
String |
SessionDelegatorBaseImpl.guessEntityName(Object entity) |
Object |
SessionImplementor.immediateLoad(String entityName,
Serializable id)
Load an instance immediately.
|
Object |
SessionDelegatorBaseImpl.immediateLoad(String entityName,
Serializable id) |
void |
SessionImplementor.initializeCollection(PersistentCollection collection,
boolean writing)
Initialize the collection (if not already initialized)
|
void |
SessionDelegatorBaseImpl.initializeCollection(PersistentCollection collection,
boolean writing) |
void |
PersistenceContext.initializeNonLazyCollections()
Force initialization of all non-lazy collections encountered during
the current two-phase load (actually, this is a no-op, unless this
is the "outermost" load)
|
Object |
SessionImplementor.instantiate(String entityName,
Serializable id)
Instantiate the entity class, initializing with the given identifier
|
Object |
SessionDelegatorBaseImpl.instantiate(String entityName,
Serializable id) |
Object |
SessionImplementor.internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable)
Load an instance without checking if it was deleted.
|
Object |
SessionDelegatorBaseImpl.internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable) |
boolean |
SessionDelegatorBaseImpl.isDirty() |
Iterator |
SessionImplementor.iterate(String query,
QueryParameters queryParameters)
Execute an iterate() query
|
Iterator |
SessionDelegatorBaseImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImplementor.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters)
Iterate a filter
|
Iterator |
SessionDelegatorBaseImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
SessionImplementor.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a fully built list.
|
List |
SessionDelegatorBaseImpl.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
SessionImplementor.list(String query,
QueryParameters queryParameters)
Execute a find() query
|
List |
SessionDelegatorBaseImpl.list(String query,
QueryParameters queryParameters) |
List |
SessionImplementor.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
List |
SessionDelegatorBaseImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
SessionImplementor.listFilter(Object collection,
String filter,
QueryParameters queryParameters)
Execute a filter
|
List |
SessionDelegatorBaseImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
Object |
PersistenceContext.narrowProxy(Object proxy,
EntityPersister persister,
EntityKey key,
Object object)
If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy
and overwrite the registration of the old one.
|
Session |
SessionFactoryDelegatingImpl.openSession() |
Session |
SessionFactoryImplementor.openTemporarySession()
Get a non-transactional "current" session for Hibernate EntityManager
|
Session |
SessionFactoryDelegatingImpl.openTemporarySession() |
void |
CollectionEntry.postFlush(PersistentCollection collection)
Called after a successful flush
|
void |
CollectionEntry.postInitialize(PersistentCollection collection) |
void |
CollectionEntry.preFlush(PersistentCollection collection) |
void |
ActionQueue.prepareActions()
Prepares the internal action queues for execution.
|
Object |
PersistenceContext.proxyFor(EntityPersister persister,
EntityKey key,
Object impl)
Return the existing proxy associated with the given EntityKey, or the
third argument (the entity associated with the key) if no proxy exists.
|
Object |
PersistenceContext.proxyFor(Object impl)
Return the existing proxy associated with the given EntityKey, or the
argument (the entity associated with the key) if no proxy exists.
|
ScrollableResults |
SessionDelegatorBaseImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
SessionImplementor.scroll(String query,
QueryParameters queryParameters)
Execute a scroll() query
|
ScrollableResults |
SessionDelegatorBaseImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
SessionImplementor.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
ScrollableResults |
SessionDelegatorBaseImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
void |
QueryParameters.traceParameters(SessionFactoryImplementor factory) |
Object |
PersistenceContext.unproxy(Object maybeProxy)
Get the entity instance underlying the given proxy, throwing
an exception if the proxy is uninitialized.
|
Object |
PersistenceContext.unproxyAndReassociate(Object maybeProxy)
Possibly unproxy the given reference and reassociate it with the current session.
|
Modifier and Type | Class and Description |
---|---|
class |
NullSynchronizationException
Indicates an attempt to register a null synchronization.
|
Modifier and Type | Method and Description |
---|---|
void |
TransactionImpl.registerSynchronization(Synchronization synchronization) |
Modifier and Type | Class and Description |
---|---|
class |
JtaPlatformException
Indicates a problem interacting with the underlying JTA platform.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
IsolationDelegate.delegateCallable(Callable<T> callable,
boolean transacted)
Invoke the given callable in isolation from current transaction.
|
<T> T |
IsolationDelegate.delegateWork(WorkExecutorVisitable<T> work,
boolean transacted)
Perform the given work in isolation from current transaction.
|
Modifier and Type | Method and Description |
---|---|
String |
AuditReader.getEntityName(Object primaryKey,
Number revision,
Object entity) |
Modifier and Type | Class and Description |
---|---|
class |
FormulaNotSupportedException
Exception indicating that a formula mapping was encountered where it is not currently supported
|
Modifier and Type | Method and Description |
---|---|
String[] |
OrderedSequenceGenerator.sqlCreateStrings(Dialect dialect) |
Modifier and Type | Class and Description |
---|---|
class |
AuditException |
class |
NotAuditedException |
class |
RevisionDoesNotExistException |
Modifier and Type | Method and Description |
---|---|
Object |
RevisionTypeType.assemble(Serializable cached,
Object owner) |
Object |
RevisionTypeType.deepCopy(Object value) |
Serializable |
RevisionTypeType.disassemble(Object value) |
boolean |
RevisionTypeType.equals(Object x,
Object y) |
int |
RevisionTypeType.hashCode(Object x) |
RevisionType |
RevisionTypeType.nullSafeGet(ResultSet resultSet,
String[] names,
SessionImplementor session,
Object owner) |
void |
RevisionTypeType.nullSafeSet(PreparedStatement preparedStatement,
Object value,
int index,
SessionImplementor session) |
Object |
RevisionTypeType.replace(Object original,
Object target,
Object owner) |
Modifier and Type | Method and Description |
---|---|
Object |
ToOneDelegateSessionImplementor.doImmediateLoad(String entityName) |
Object |
AbstractDelegateSessionImplementor.immediateLoad(String entityName,
Serializable id) |
Modifier and Type | Method and Description |
---|---|
String |
AuditReaderImpl.getEntityName(Object primaryKey,
Number revision,
Object entity) |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultDeleteEventListener.cascadeAfterDelete(EventSource session,
EntityPersister persister,
Object entity,
Set transientEntities) |
protected void |
DefaultMergeEventListener.cascadeAfterSave(EventSource source,
EntityPersister persister,
Object entity,
Object anything)
Cascade behavior is redefined by this subclass, disable superclass behavior
|
protected void |
DefaultDeleteEventListener.cascadeBeforeDelete(EventSource session,
EntityPersister persister,
Object entity,
EntityEntry entityEntry,
Set transientEntities) |
protected void |
DefaultMergeEventListener.cascadeBeforeSave(EventSource source,
EntityPersister persister,
Object entity,
Object anything)
Cascade behavior is redefined by this subclass, disable superclass behavior
|
void |
DefaultFlushEntityEventListener.checkId(Object object,
EntityPersister persister,
Serializable id,
SessionImplementor session)
make sure user didn't mangle the id
|
protected void |
DefaultFlushEntityEventListener.dirtyCheck(FlushEntityEvent event)
Perform a dirty check, and attach the results to the event
|
protected void |
DefaultEvictEventListener.doEvict(Object object,
EntityKey key,
EntityPersister persister,
EventSource session) |
protected Serializable |
DefaultSaveOrUpdateEventListener.entityIsPersistent(SaveOrUpdateEvent event) |
protected void |
AbstractFlushingEventListener.flushEverythingToExecutions(FlushEvent event)
Coordinates the processing necessary to get things ready for executions
as db calls by preping the session caches and moving the appropriate
entities and collections to their respective execution queues.
|
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.isUpdateNecessary(FlushEntityEvent event)
Performs all necessary checking to determine if an entity needs an SQL update
to synchronize its state to the database.
|
protected Object |
DefaultLoadEventListener.loadFromSessionCache(LoadEvent event,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Attempts to locate the entity in the session-level cache.
|
void |
DefaultAutoFlushEventListener.onAutoFlush(AutoFlushEvent event)
Handle the given auto-flush event.
|
void |
DefaultDeleteEventListener.onDelete(DeleteEvent event)
Handle the given delete event.
|
void |
DefaultDeleteEventListener.onDelete(DeleteEvent event,
Set transientEntities)
Handle the given delete event.
|
void |
DefaultDirtyCheckEventListener.onDirtyCheck(DirtyCheckEvent event)
Handle the given dirty-check event.
|
void |
DefaultEvictEventListener.onEvict(EvictEvent event)
Handle the given evict event.
|
void |
DefaultFlushEventListener.onFlush(FlushEvent event)
Handle the given flush event.
|
void |
DefaultFlushEntityEventListener.onFlushEntity(FlushEntityEvent event)
Flushes a single entity's state to the database, by scheduling
an update action, if necessary
|
void |
DefaultInitializeCollectionEventListener.onInitializeCollection(InitializeCollectionEvent event)
called by a collection that wants to initialize itself
|
void |
DefaultLoadEventListener.onLoad(LoadEvent event,
LoadEventListener.LoadType loadType)
Handle the given load event.
|
void |
DefaultLockEventListener.onLock(LockEvent event)
Handle the given lock event.
|
void |
DefaultMergeEventListener.onMerge(MergeEvent event)
Handle the given merge event.
|
void |
DefaultMergeEventListener.onMerge(MergeEvent event,
Map copiedAlready)
Handle the given merge event.
|
void |
DefaultPersistEventListener.onPersist(PersistEvent event)
Handle the given create event.
|
void |
DefaultPersistEventListener.onPersist(PersistEvent event,
Map createCache)
Handle the given create event.
|
void |
DefaultRefreshEventListener.onRefresh(RefreshEvent event) |
void |
DefaultResolveNaturalIdEventListener.onResolveNaturalId(ResolveNaturalIdEvent event) |
protected void |
DefaultSaveOrUpdateEventListener.performUpdate(SaveOrUpdateEvent event,
Object entity,
EntityPersister persister) |
protected void |
AbstractFlushingEventListener.postFlush(SessionImplementor session)
1.
|
Object |
OnReplicateVisitor.processCollection(Object collection,
CollectionType type) |
Object |
OnLockVisitor.processCollection(Object collection,
CollectionType type) |
void |
AbstractVisitor.processEntityPropertyValues(Object[] values,
Type[] types)
Dispatch each property value to processValue().
|
protected void |
ProxyVisitor.reattachCollection(PersistentCollection collection,
CollectionType type)
Reattach a detached (disassociated) initialized or uninitialized
collection wrapper, using a snapshot carried with the collection
wrapper
|
Modifier and Type | Class and Description |
---|---|
class |
EventListenerRegistrationException
Indicates a problem registering an event listener.
|
Modifier and Type | Method and Description |
---|---|
void |
EventSource.forceFlush(EntityEntry e)
Force an immediate flush
|
Object |
EventSource.instantiate(EntityPersister persister,
Serializable id)
Instantiate an entity instance, using either an interceptor,
or the given persister
|
void |
EventSource.merge(String entityName,
Object object,
Map copiedAlready)
Cascade merge an entity instance
|
void |
AutoFlushEventListener.onAutoFlush(AutoFlushEvent event)
Handle the given auto-flush event.
|
void |
DeleteEventListener.onDelete(DeleteEvent event)
Handle the given delete event.
|
void |
DeleteEventListener.onDelete(DeleteEvent event,
Set transientEntities) |
void |
DirtyCheckEventListener.onDirtyCheck(DirtyCheckEvent event)
Handle the given dirty-check event.
|
void |
EvictEventListener.onEvict(EvictEvent event)
Handle the given evict event.
|
void |
FlushEventListener.onFlush(FlushEvent event)
Handle the given flush event.
|
void |
FlushEntityEventListener.onFlushEntity(FlushEntityEvent event) |
void |
InitializeCollectionEventListener.onInitializeCollection(InitializeCollectionEvent event) |
void |
LoadEventListener.onLoad(LoadEvent event,
LoadEventListener.LoadType loadType)
Handle the given load event.
|
void |
LockEventListener.onLock(LockEvent event)
Handle the given lock event.
|
void |
MergeEventListener.onMerge(MergeEvent event)
Handle the given merge event.
|
void |
MergeEventListener.onMerge(MergeEvent event,
Map copiedAlready)
Handle the given merge event.
|
void |
PersistEventListener.onPersist(PersistEvent event)
Handle the given create event.
|
void |
PersistEventListener.onPersist(PersistEvent event,
Map createdAlready)
Handle the given create event.
|
void |
RefreshEventListener.onRefresh(RefreshEvent event)
Handle the given refresh event.
|
void |
RefreshEventListener.onRefresh(RefreshEvent event,
Map refreshedAlready) |
void |
ReplicateEventListener.onReplicate(ReplicateEvent event)
Handle the given replicate event.
|
void |
ResolveNaturalIdEventListener.onResolveNaturalId(ResolveNaturalIdEvent event)
Handle the given resolve natural id event.
|
void |
SaveOrUpdateEventListener.onSaveOrUpdate(SaveOrUpdateEvent event)
Handle the given update event.
|
void |
EventSource.persist(String entityName,
Object object,
Map createdAlready)
Cascade persist an entity instance
|
void |
EventSource.refresh(String entityName,
Object object,
Map refreshedAlready)
Cascade refresh an entity instance
|
Modifier and Type | Class and Description |
---|---|
class |
ConstraintViolationException
Implementation of JDBCException indicating that the requested DML operation
resulted in a violation of a defined integrity constraint.
|
class |
DataException
Implementation of JDBCException indicating that evaluation of the
valid SQL statement against the given data resulted in some
illegal operation, mismatched types or incorrect cardinality.
|
class |
GenericJDBCException
Generic, non-specific JDBCException.
|
class |
JDBCConnectionException
Implementation of JDBCException indicating problems with communicating with the
database (can also include incorrect JDBC setup).
|
class |
LockAcquisitionException
Implementation of JDBCException indicating a problem acquiring lock
on the database.
|
class |
LockTimeoutException |
class |
SQLGrammarException
Implementation of JDBCException indicating that the SQL sent to the database
server was invalid (syntax error, invalid object references, etc).
|
Modifier and Type | Method and Description |
---|---|
static SQLExceptionConverter |
SQLExceptionConverterFactory.buildSQLExceptionConverter(Dialect dialect,
Properties properties)
Build a SQLExceptionConverter instance.
|
void |
Configurable.configure(Properties properties)
Configure the component, using the given settings and properties.
|
Modifier and Type | Class and Description |
---|---|
class |
QueryExecutionRequestException
Expecting to execute an illegal operation regarding the query type
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidWithClauseException
Indicates an issue with the encountered with-clause.
|
class |
QuerySyntaxException
Exception thrown when there is a syntax error in the HQL.
|
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslatorImpl.executeUpdate(QueryParameters queryParameters,
SessionImplementor session) |
Iterator |
QueryTranslatorImpl.iterate(QueryParameters queryParameters,
EventSource session)
Return the query results as an iterator
|
List |
QueryTranslatorImpl.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryTranslatorImpl.scroll(QueryParameters queryParameters,
SessionImplementor session)
Return the query results, as an instance of ScrollableResults
|
void |
QueryTranslatorImpl.validateScrollability() |
Modifier and Type | Method and Description |
---|---|
protected int |
BasicExecutor.doExecute(QueryParameters parameters,
SessionImplementor session,
String sql,
List parameterSpecifications) |
int |
StatementExecutor.execute(QueryParameters parameters,
SessionImplementor session)
Execute the sql managed by this executor using the given parameters.
|
int |
MultiTableUpdateExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
MultiTableDeleteExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
DeleteExecutor.execute(QueryParameters parameters,
SessionImplementor session) |
int |
BasicExecutor.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) |
protected Object[] |
QueryTranslatorImpl.getResultRow(Object[] row,
ResultSet rs,
SessionImplementor session) |
Iterator |
QueryTranslatorImpl.iterate(QueryParameters queryParameters,
EventSource session)
Return the query results as an iterator
|
List |
QueryTranslatorImpl.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryTranslatorImpl.scroll(QueryParameters queryParameters,
SessionImplementor session) |
void |
QueryTranslatorImpl.validateScrollability() |
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslator.executeUpdate(QueryParameters queryParameters,
SessionImplementor session)
Perform a bulk update/delete operation given the underlying query definition.
|
Iterator |
QueryTranslator.iterate(QueryParameters queryParameters,
EventSource session)
Perform an iterate 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.
|
void |
QueryTranslator.validateScrollability()
Validate the scrollability of the translated query.
|
Modifier and Type | Class and Description |
---|---|
class |
IdentifierGenerationException
Thrown by IdentifierGenerator implementation class when
ID generation fails.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
UUIDGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
IncrementGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
IdentifierGenerator.generate(SessionImplementor session,
Object object)
Generate a new identifier.
|
Serializable |
GUIDGenerator.generate(SessionImplementor session,
Object obj) |
Serializable |
CompositeNestedGeneratedValueGenerator.generate(SessionImplementor session,
Object object) |
Serializable |
Assigned.generate(SessionImplementor session,
Object obj) |
static Serializable |
IdentifierGeneratorHelper.getGeneratedIdentity(ResultSet rs,
String identifier,
Type type,
Dialect dialect)
Get the generated identifier when using identity columns
|
InsertGeneratedIdentifierDelegate |
SequenceIdentityGenerator.getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled)
Deprecated.
|
InsertGeneratedIdentifierDelegate |
SelectGenerator.getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled) |
InsertGeneratedIdentifierDelegate |
PostInsertIdentifierGenerator.getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled) |
InsertGeneratedIdentifierDelegate |
IdentityGenerator.getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled) |
String[] |
SequenceGenerator.sqlCreateStrings(Dialect dialect)
Deprecated.
|
String[] |
PersistentIdentifierGenerator.sqlCreateStrings(Dialect dialect)
Deprecated.
Utilize the ExportableProducer contract instead
|
String[] |
MultipleHiLoPerTableGenerator.sqlCreateStrings(Dialect dialect)
Deprecated.
|
String[] |
SequenceGenerator.sqlDropStrings(Dialect dialect)
Deprecated.
|
String[] |
PersistentIdentifierGenerator.sqlDropStrings(Dialect dialect)
Deprecated.
Utilize the ExportableProducer contract instead
|
String[] |
MultipleHiLoPerTableGenerator.sqlDropStrings(Dialect dialect)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
SequenceStyleGenerator.generate(SessionImplementor session,
Object object) |
String[] |
TableStructure.sqlCreateStrings(Dialect dialect) |
String[] |
TableGenerator.sqlCreateStrings(Dialect dialect) |
String[] |
SequenceStyleGenerator.sqlCreateStrings(Dialect dialect) |
String[] |
SequenceStructure.sqlCreateStrings(Dialect dialect) |
String[] |
TableStructure.sqlDropStrings(Dialect dialect) |
String[] |
TableGenerator.sqlDropStrings(Dialect dialect) |
String[] |
SequenceStyleGenerator.sqlDropStrings(Dialect dialect) |
String[] |
SequenceStructure.sqlDropStrings(Dialect dialect) |
Modifier and Type | Method and Description |
---|---|
HibernateException |
CoreMessageLogger.usingStoppedClassLoaderService() |
Modifier and Type | Method and Description |
---|---|
Map<String,HibernateException> |
NamedQueryRepository.checkNamedQueries(QueryPlanCache queryPlanCache) |
Modifier and Type | Method and Description |
---|---|
void |
CoreMessageLogger.namedQueryError(String queryName,
HibernateException e) |
void |
CoreMessageLogger.unableToCloseSession(HibernateException e) |
void |
CoreMessageLogger.unableToCloseSessionButSwallowingError(HibernateException e) |
void |
CoreMessageLogger.unableToConfigureSqlExceptionConverter(HibernateException e) |
void |
CoreMessageLogger.unableToCreateProxyFactory(String entityName,
HibernateException e) |
void |
CoreMessageLogger.unableToLoadCommand(HibernateException e) |
void |
CoreMessageLogger.unableToSynchronizeDatabaseStateWithSession(HibernateException he) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
SessionImpl.autoFlushIfRequired(Set querySpaces)
detect in-memory changes, determine if the changes are to tables
named in the query and, if so, complete execution the flush
|
Transaction |
StatelessSessionImpl.beginTransaction() |
Transaction |
SessionImpl.beginTransaction() |
void |
SessionImpl.cancelQuery() |
void |
SessionImpl.close() |
void |
SessionFactoryImpl.close()
Closes the session factory, releasing all held resources.
|
Connection |
SessionImpl.connection() |
Criteria |
CriteriaImpl.createAlias(String associationPath,
String alias,
int joinType) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(String associationPath,
String alias,
int joinType) |
Criteria |
CriteriaImpl.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(String associationPath,
String alias,
JoinType joinType) |
Criteria |
CriteriaImpl.Subcriteria.createAlias(String associationPath,
String alias,
JoinType joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.createCriteria(String associationPath,
int joinType) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
int joinType) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
JoinType joinType) |
Criteria |
CriteriaImpl.createCriteria(String associationPath,
String alias,
int joinType) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
String alias,
int joinType) |
Criteria |
CriteriaImpl.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
String alias,
int joinType,
Criterion withClause) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
String alias,
JoinType joinType) |
Criteria |
CriteriaImpl.Subcriteria.createCriteria(String associationPath,
String alias,
JoinType joinType,
Criterion withClause) |
void |
SessionImpl.delete(Object object) |
void |
SessionImpl.delete(String entityName,
Object object) |
void |
SessionImpl.delete(String entityName,
Object object,
boolean isCascadeDeleteEnabled,
Set transientEntities) |
protected Type |
AbstractQueryImpl.determineType(int paramPosition,
Object paramValue) |
protected Type |
AbstractQueryImpl.determineType(String paramName,
Class clazz) |
protected Type |
AbstractQueryImpl.determineType(String paramName,
Object paramValue) |
Connection |
SessionImpl.disconnect() |
<T> T |
SessionImpl.doReturningWork(ReturningWork<T> work) |
void |
SessionImpl.doWork(Work work) |
void |
SessionFactoryImpl.evict(Class persistentClass) |
void |
SessionFactoryImpl.evict(Class persistentClass,
Serializable id) |
void |
SessionImpl.evict(Object object)
remove any hard references to the entity that are held by the infrastructure
(references held by application or other persistent instances are okay)
|
void |
SessionFactoryImpl.evictCollection(String roleName) |
void |
SessionFactoryImpl.evictCollection(String roleName,
Serializable id) |
void |
SessionFactoryImpl.evictEntity(String entityName) |
void |
SessionFactoryImpl.evictEntity(String entityName,
Serializable id) |
void |
SessionFactoryImpl.evictQueries() |
void |
CacheImpl.evictQueries() |
void |
SessionFactoryImpl.evictQueries(String regionName) |
int |
StatelessSessionImpl.executeNativeUpdate(NativeSQLQuerySpecification nativeSQLQuerySpecification,
QueryParameters queryParameters) |
int |
SessionImpl.executeNativeUpdate(NativeSQLQuerySpecification nativeQuerySpecification,
QueryParameters queryParameters) |
int |
SQLQueryImpl.executeUpdate() |
int |
QueryImpl.executeUpdate() |
int |
StatelessSessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
int |
SessionImpl.executeUpdate(String query,
QueryParameters queryParameters) |
void |
SessionImpl.flush() |
void |
SessionImpl.forceFlush(EntityEntry entityEntry) |
Object[] |
AbstractScrollableResults.get() |
<T> T |
SessionImpl.get(Class<T> entityClass,
Serializable id) |
<T> T |
SessionImpl.get(Class<T> entityClass,
Serializable id,
LockMode lockMode) |
<T> T |
SessionImpl.get(Class<T> entityClass,
Serializable id,
LockOptions lockOptions) |
Object |
AbstractScrollableResults.get(int col) |
Object |
SessionImpl.get(String entityName,
Serializable id) |
Object |
SessionImpl.get(String entityName,
Serializable id,
LockMode lockMode) |
Object |
SessionImpl.get(String entityName,
Serializable id,
LockOptions lockOptions) |
Map<String,ClassMetadata> |
SessionFactoryImpl.getAllClassMetadata() |
Map |
SessionFactoryImpl.getAllCollectionMetadata() |
BigDecimal |
AbstractScrollableResults.getBigDecimal(int col) |
BigInteger |
AbstractScrollableResults.getBigInteger(int col) |
byte[] |
AbstractScrollableResults.getBinary(int col) |
Blob |
AbstractScrollableResults.getBlob(int col) |
Boolean |
AbstractScrollableResults.getBoolean(int col) |
Byte |
AbstractScrollableResults.getByte(int col) |
Calendar |
AbstractScrollableResults.getCalendar(int col) |
Character |
AbstractScrollableResults.getCharacter(int col) |
ClassMetadata |
SessionFactoryImpl.getClassMetadata(Class persistentClass) |
ClassMetadata |
SessionFactoryImpl.getClassMetadata(String entityName) |
Clob |
AbstractScrollableResults.getClob(int col) |
CollectionMetadata |
SessionFactoryImpl.getCollectionMetadata(String roleName) |
LockMode |
SessionImpl.getCurrentLockMode(Object object) |
Session |
SessionFactoryImpl.getCurrentSession() |
Date |
AbstractScrollableResults.getDate(int col) |
Double |
AbstractScrollableResults.getDouble(int col) |
EntityPersister |
StatelessSessionImpl.getEntityPersister(String entityName,
Object object) |
Object |
StatelessSessionImpl.getEntityUsingInterceptor(EntityKey key) |
Object |
SessionImpl.getEntityUsingInterceptor(EntityKey key) |
FilterDefinition |
SessionFactoryImpl.getFilterDefinition(String filterName) |
protected Object |
AbstractScrollableResults.getFinal(int col,
Type returnType)
Check that the requested type is compatible with the result type, and
return the column value.
|
Float |
AbstractScrollableResults.getFloat(int col) |
protected HQLQueryPlan |
AbstractSessionImpl.getHQLQueryPlan(String query,
boolean shallow) |
Serializable |
SessionImpl.getIdentifier(Object object) |
Integer |
AbstractScrollableResults.getInteger(int col) |
Locale |
AbstractScrollableResults.getLocale(int col) |
Long |
AbstractScrollableResults.getLong(int col) |
String[] |
AbstractQueryImpl.getNamedParameters()
Returns an array representing all named parameter names encountered
during (intial) parsing of the query.
|
protected NativeSQLQueryPlan |
AbstractSessionImpl.getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) |
protected Object |
AbstractScrollableResults.getNonFinal(int col,
Type returnType)
Check that the requested type is compatible with the result type, and
return the column value.
|
QueryCache |
SessionFactoryImpl.getQueryCache(String regionName) |
QueryCache |
CacheImpl.getQueryCache(String regionName) |
String[] |
SQLQueryImpl.getReturnAliases() |
String[] |
AbstractQueryImpl.getReturnAliases() |
String[] |
SessionFactoryImpl.getReturnAliases(String queryString) |
Type[] |
SQLQueryImpl.getReturnTypes() |
Type[] |
AbstractQueryImpl.getReturnTypes() |
Type[] |
SessionFactoryImpl.getReturnTypes(String queryString) |
int |
ScrollableResultsImpl.getRowNumber() |
Short |
AbstractScrollableResults.getShort(int col) |
String |
AbstractScrollableResults.getString(int col) |
String |
AbstractScrollableResults.getText(int col) |
TimeZone |
AbstractScrollableResults.getTimeZone(int col) |
Transaction |
AbstractSessionImpl.getTransaction() |
String |
StatelessSessionImpl.guessEntityName(Object entity) |
String |
SessionImpl.guessEntityName(Object object) |
Type |
AbstractQueryImpl.guessType(Class clazz) |
Object |
StatelessSessionImpl.immediateLoad(String entityName,
Serializable id) |
Object |
SessionImpl.immediateLoad(String entityName,
Serializable id)
Load the data for the object with the specified id into a newly created object.
|
void |
StatelessSessionImpl.initializeCollection(PersistentCollection collection,
boolean writing) |
void |
SessionImpl.initializeCollection(PersistentCollection collection,
boolean writing) |
Object |
SessionImpl.instantiate(EntityPersister persister,
Serializable id)
give the interceptor an opportunity to override the default instantiation
|
Object |
StatelessSessionImpl.instantiate(String entityName,
Serializable id) |
Object |
SessionImpl.instantiate(String entityName,
Serializable id) |
Object |
StatelessSessionImpl.internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable) |
Object |
SessionImpl.internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable) |
boolean |
SessionImpl.isDirty() |
Iterator |
SQLQueryImpl.iterate() |
Iterator |
QueryImpl.iterate() |
Iterator |
CollectionFilterImpl.iterate() |
Iterator |
StatelessSessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
SessionImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
StatelessSessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
Iterator |
SessionImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
SQLQueryImpl.list() |
List |
QueryImpl.list() |
List |
CriteriaImpl.list() |
List |
CriteriaImpl.Subcriteria.list() |
List |
CollectionFilterImpl.list() |
List |
StatelessSessionImpl.list(Criteria criteria) |
List |
SessionImpl.list(Criteria criteria) |
List |
AbstractSessionImpl.list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.list(String query,
QueryParameters queryParameters) |
List |
SessionImpl.list(String query,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
SessionImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
StatelessSessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
SessionImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
<T> T |
SessionImpl.load(Class<T> entityClass,
Serializable id) |
<T> T |
SessionImpl.load(Class<T> entityClass,
Serializable id,
LockMode lockMode) |
<T> T |
SessionImpl.load(Class<T> entityClass,
Serializable id,
LockOptions lockOptions) |
void |
SessionImpl.load(Object object,
Serializable id) |
Object |
SessionImpl.load(String entityName,
Serializable id) |
Object |
SessionImpl.load(String entityName,
Serializable id,
LockMode lockMode) |
Object |
SessionImpl.load(String entityName,
Serializable id,
LockOptions lockOptions) |
void |
SessionImpl.lock(Object object,
LockMode lockMode) |
void |
SessionImpl.lock(String entityName,
Object object,
LockMode lockMode) |
Object |
SessionImpl.merge(Object object) |
Object |
SessionImpl.merge(String entityName,
Object object) |
void |
SessionImpl.merge(String entityName,
Object object,
Map copiedAlready) |
Object |
IteratorImpl.next() |
Session |
SessionFactoryImpl.openSession() |
Session |
SessionFactoryImpl.openTemporarySession() |
void |
SessionImpl.persist(Object object) |
void |
SessionImpl.persist(String entityName,
Object object) |
void |
SessionImpl.persist(String entityName,
Object object,
Map copiedAlready) |
void |
SessionImpl.persistOnFlush(Object object) |
void |
SessionImpl.persistOnFlush(String entityName,
Object object) |
void |
SessionImpl.persistOnFlush(String entityName,
Object object,
Map copiedAlready) |
void |
SessionImpl.reconnect(Connection conn) |
void |
SessionImpl.refresh(Object object) |
void |
SessionImpl.refresh(Object object,
LockMode lockMode) |
void |
SessionImpl.refresh(Object object,
LockOptions lockOptions) |
void |
SessionImpl.refresh(String entityName,
Object object) |
void |
SessionImpl.refresh(String entityName,
Object object,
LockOptions lockOptions) |
void |
SessionImpl.refresh(String entityName,
Object object,
Map refreshedAlready) |
void |
SessionImpl.replicate(Object obj,
ReplicationMode replicationMode) |
void |
SessionImpl.replicate(String entityName,
Object obj,
ReplicationMode replicationMode) |
Serializable |
SessionImpl.save(Object obj) |
Serializable |
SessionImpl.save(String entityName,
Object object) |
void |
SessionImpl.saveOrUpdate(Object object) |
void |
SessionImpl.saveOrUpdate(String entityName,
Object obj) |
ScrollableResults |
SQLQueryImpl.scroll() |
ScrollableResults |
QueryImpl.scroll() |
ScrollableResults |
CriteriaImpl.Subcriteria.scroll() |
ScrollableResults |
CollectionFilterImpl.scroll() |
ScrollableResults |
AbstractSessionImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResults |
SQLQueryImpl.scroll(ScrollMode scrollMode) |
ScrollableResults |
QueryImpl.scroll(ScrollMode scrollMode) |
ScrollableResults |
CriteriaImpl.Subcriteria.scroll(ScrollMode scrollMode) |
ScrollableResults |
StatelessSessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
SessionImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResults |
StatelessSessionImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
ScrollableResults |
SessionImpl.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
void |
StatelessSessionImpl.setDefaultReadOnly(boolean readOnly) |
Query |
AbstractQueryImpl.setParameter(int position,
Object val) |
Query |
AbstractQueryImpl.setParameter(String name,
Object val) |
Filter |
FilterImpl.setParameterList(String name,
Collection values)
Set the named parameter's value list for this filter.
|
Query |
AbstractQueryImpl.setParameterList(String name,
Collection vals) |
Query |
AbstractQueryImpl.setParameterList(String name,
Collection vals,
Type type) |
Query |
AbstractQueryImpl.setParameterList(String name,
Object[] values) |
Query |
AbstractQueryImpl.setParameterList(String name,
Object[] vals,
Type type) |
Query |
AbstractQueryImpl.setProperties(Map map) |
Query |
AbstractQueryImpl.setProperties(Object bean) |
boolean |
ScrollableResultsImpl.setRowNumber(int rowNumber) |
Object |
CriteriaImpl.uniqueResult() |
Object |
CriteriaImpl.Subcriteria.uniqueResult() |
Object |
AbstractQueryImpl.uniqueResult() |
void |
SessionImpl.update(Object obj) |
void |
SessionImpl.update(String entityName,
Object object) |
void |
FilterImpl.validate()
Perform validation of the filter state.
|
protected void |
AbstractQueryImpl.verifyParameters(boolean reserveFirstParameter)
Perform parameter validation.
|
Constructor and Description |
---|
IteratorImpl(ResultSet rs,
PreparedStatement ps,
EventSource sess,
boolean readOnly,
Type[] types,
String[][] columnNames,
HolderInstantiator holderInstantiator) |
Modifier and Type | Method and Description |
---|---|
static InputStream |
ConfigHelper.getConfigStream(String path)
Deprecated.
Open an InputStream to the URL represented by the incoming path.
|
void |
EntityPrinter.toString(Iterable<Map.Entry<EntityKey,Object>> entitiesByEntityKey) |
String |
EntityPrinter.toString(Map<String,TypedValue> namedTypedValues) |
String |
EntityPrinter.toString(String entityName,
Object entity)
Renders an entity to a string.
|
String |
EntityPrinter.toString(Type[] types,
Object[] values) |
void |
Cloneable.validate()
Checks to ensure the SessionEventListenerConfig is fully
configured (basically, that none of the listeners is null).
|
Modifier and Type | Class and Description |
---|---|
class |
BeanIntrospectionException
Indicates a problem dealing with
BeanInfo via the BeanInfoHelper delegate. |
Modifier and Type | Class and Description |
---|---|
class |
ConfigurationException
TODO : javadoc
|
Modifier and Type | Class and Description |
---|---|
class |
UnsupportedOrmXsdVersionException
Deprecated.
Migrating to boot package; all usages will eventually be replaced by
UnsupportedOrmXsdVersionException |
class |
XmlInfrastructureException
An error using XML infrastructure (jaxp, stax, etc).
|
class |
XsdException
Indicates an issue finding or loading an XSD schema.
|
Modifier and Type | Class and Description |
---|---|
class |
BatchedTooManyRowsAffectedException
Much like
TooManyRowsAffectedException , indicates that more
rows than what we were expcecting were affected. |
class |
BatchFailedException
Indicates a failed batch entry (-3 return).
|
class |
TooManyRowsAffectedException
Indicates that more rows were affected then we were expecting to be.
|
Modifier and Type | Method and Description |
---|---|
int |
Expectations.BasicExpectation.prepare(PreparedStatement statement) |
int |
Expectations.BasicParamExpectation.prepare(PreparedStatement statement) |
int |
Expectation.prepare(PreparedStatement statement)
Perform any special statement preparation.
|
void |
Expectation.verifyOutcome(int rowCount,
PreparedStatement statement,
int batchPosition)
Perform verification of the outcome of the RDBMS operation based on
the type of expectation defined.
|
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
EntityManagerFactoryRegistry.getNamedEntityManagerFactory(String name)
Lookup the specified entity manager factory by name
|
void |
EntityManagerFactoryRegistry.removeEntityManagerFactory(String name,
EntityManagerFactory entityManagerFactory)
remove the specified entity manager factory from the EntityManagerFactoryRegistry
|
Modifier and Type | Class and Description |
---|---|
static class |
PersistenceUtilHelper.AttributeExtractionException |
Modifier and Type | Method and Description |
---|---|
RuntimeException |
HibernateEntityManagerImplementor.convert(HibernateException e)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use
of exceptions outside its exception hierarchy, though they are all runtime exceptions.
|
RuntimeException |
AbstractEntityManagerImpl.convert(HibernateException e) |
RuntimeException |
HibernateEntityManagerImplementor.convert(HibernateException e,
LockOptions lockOptions)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use
of exceptions outside its exception hierarchy, though they are all runtime exceptions.
|
RuntimeException |
AbstractEntityManagerImpl.convert(HibernateException e,
LockOptions lockOptions) |
void |
HibernateEntityManagerImplementor.throwPersistenceException(HibernateException e)
Delegates to
HibernateEntityManagerImplementor.convert(org.hibernate.HibernateException, org.hibernate.LockOptions) and then throws the given exception. |
void |
AbstractEntityManagerImpl.throwPersistenceException(HibernateException e) |
PersistenceException |
AbstractEntityManagerImpl.wrapLockException(HibernateException e,
LockOptions lockOptions) |
Modifier and Type | Class and Description |
---|---|
class |
MultipleBagFetchException
Exception used to indicate that a query is attempting to simultaneously fetch multiple
bags |
Modifier and Type | Method and Description |
---|---|
protected String |
Loader.applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<AfterLoadAction> afterLoadActions)
Append FOR UPDATE OF clause, if necessary.
|
protected int |
Loader.bindNamedParameters(PreparedStatement statement,
Map<String,TypedValue> namedParams,
int startIndex,
SessionImplementor session)
Bind named parameters to the JDBC prepared statement.
|
protected int |
Loader.bindPositionalParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
Bind positional parameter values to the JDBC prepared statement.
|
protected void |
Loader.checkScrollability()
Check whether the current loader can support returning ScrollableResults.
|
protected List |
Loader.doList(SessionImplementor session,
QueryParameters queryParameters)
Actually execute a query, ignoring the query cache
|
List |
Loader.doQueryAndInitializeNonLazyCollections(SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies)
Execute an SQL query and attempt to instantiate instances of the class mapped by the given
persister from each row of the ResultSet.
|
List |
Loader.doQueryAndInitializeNonLazyCollections(SessionImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
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 Object[] |
Loader.getResultRow(Object[] row,
ResultSet rs,
SessionImplementor session) |
protected ResultSet |
Loader.getResultSet(PreparedStatement st,
RowSelection selection,
LimitHandler limitHandler,
boolean autodiscovertypes,
SessionImplementor session)
Execute given PreparedStatement, advance to the first result and return SQL ResultSet.
|
protected List |
Loader.list(SessionImplementor session,
QueryParameters queryParameters,
Set<Serializable> 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<String,TypedValue> 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(String sql,
QueryParameters queryParameters,
LimitHandler limitHandler,
boolean scroll,
SessionImplementor session)
Obtain a PreparedStatement with all parameters pre-bound.
|
protected String |
Loader.preprocessSQL(String sql,
QueryParameters parameters,
Dialect dialect,
List<AfterLoadAction> afterLoadActions)
Modify the SQL, adding lock hints and comments, if necessary
|
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 |
SubselectOneToManyLoader.initialize(Serializable id,
SessionImplementor session) |
void |
SubselectCollectionLoader.initialize(Serializable id,
SessionImplementor session) |
void |
LegacyBatchingCollectionInitializerBuilder.LegacyBatchingCollectionInitializer.initialize(Serializable id,
SessionImplementor session) |
void |
DynamicBatchingCollectionInitializerBuilder.DynamicBatchingCollectionInitializer.initialize(Serializable id,
SessionImplementor session) |
void |
CollectionLoader.initialize(Serializable id,
SessionImplementor session) |
void |
CollectionInitializer.initialize(Serializable id,
SessionImplementor session)
Initialize the given collection
|
Modifier and Type | Method and Description |
---|---|
void |
LegacyBatchingCollectionInitializerBuilder.LegacyBatchingCollectionInitializer.initialize(Serializable id,
SessionImplementor session) |
void |
AbstractLoadPlanBasedCollectionInitializer.initialize(Serializable id,
SessionImplementor session) |
Modifier and Type | Method and Description |
---|---|
String[] |
CriteriaQueryTranslator.findColumns(String propertyName,
Criteria subcriteria)
Get the names of the columns mapped by a property path; if the
property path is not found in subcriteria, try the "outer" query.
|
String[] |
CriteriaQueryTranslator.getColumns(String propertyName,
Criteria subcriteria) |
String[] |
CriteriaQueryTranslator.getColumnsUsingProjection(Criteria subcriteria,
String propertyName)
Get the names of the columns constrained
by this criterion.
|
protected Object |
CriteriaLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected Object[] |
CriteriaLoader.getResultRow(Object[] row,
ResultSet rs,
SessionImplementor session) |
Type |
CriteriaQueryTranslator.getType(Criteria subcriteria,
String propertyName) |
TypedValue |
CriteriaQueryTranslator.getTypedValue(Criteria subcriteria,
String propertyName,
Object value)
Get the a typed value for the given property value.
|
Type |
CriteriaQueryTranslator.getTypeUsingProjection(Criteria subcriteria,
String propertyName) |
List |
CriteriaLoader.list(SessionImplementor session) |
ScrollableResults |
CriteriaLoader.scroll(SessionImplementor session,
ScrollMode scrollMode) |
Constructor and Description |
---|
CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers) |
CriteriaQueryTranslator(SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias) |
CriteriaQueryTranslator(SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias,
CriteriaQuery outerQuery) |
Modifier and Type | Class and Description |
---|---|
class |
NonUniqueDiscoveredSqlAliasException |
Modifier and Type | Method and Description |
---|---|
Object |
ResultRowProcessor.buildResultRow(Object[] data,
ResultSet resultSet,
boolean hasTransformer,
SessionImplementor session)
Build a logical result row.
|
Object[] |
ResultRowProcessor.buildResultRow(Object[] data,
ResultSet resultSet,
SessionImplementor session) |
Object |
ScalarResultColumnProcessor.extract(Object[] data,
ResultSet resultSet,
SessionImplementor session) |
Object |
NonScalarResultColumnProcessor.extract(Object[] data,
ResultSet resultSet,
SessionImplementor session) |
Object |
ConstructorResultColumnProcessor.extract(Object[] data,
ResultSet resultSet,
SessionImplementor session) |
protected Object |
CustomLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected Object[] |
CustomLoader.getResultRow(Object[] row,
ResultSet rs,
SessionImplementor session) |
List |
CustomLoader.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
CustomLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
Constructor and Description |
---|
SQLCustomQuery(String sqlQuery,
NativeSQLQueryReturn[] queryReturns,
Collection additionalQuerySpaces,
SessionFactoryImplementor factory) |
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 |
UniqueEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session)
Deprecated.
|
Object |
CollectionElementLoader.loadElement(SessionImplementor session,
Object key,
Object index) |
Modifier and Type | Method and Description |
---|---|
Object |
AbstractLoadPlanBasedEntityLoader.load(Serializable id,
Object optionalObject,
SessionImplementor session) |
List |
AbstractLoadPlanBasedEntityLoader.loadEntityBatch(SessionImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session) |
protected Object[] |
QueryLoader.getResultRow(Object[] row,
ResultSet rs,
SessionImplementor session) |
Iterator |
QueryLoader.iterate(QueryParameters queryParameters,
EventSource session) |
List |
QueryLoader.list(SessionImplementor session,
QueryParameters queryParameters) |
ScrollableResults |
QueryLoader.scroll(QueryParameters queryParameters,
SessionImplementor session) |
void |
QueryLoader.validateScrollability() |
Modifier and Type | Method and Description |
---|---|
protected int |
AbstractLoadPlanBasedLoader.bindNamedParameters(PreparedStatement statement,
Map namedParams,
int startIndex,
SessionImplementor session)
Bind named parameters to the JDBC prepared statement.
|
protected int |
AbstractLoadPlanBasedLoader.bindPositionalParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SessionImplementor session)
Bind positional parameter values to the JDBC prepared statement.
|
protected ResultSet |
AbstractLoadPlanBasedLoader.getResultSet(PreparedStatement st,
RowSelection selection,
LimitHandler limitHandler,
boolean autodiscovertypes,
SessionImplementor session)
Execute given PreparedStatement, advance to the first result and return SQL ResultSet.
|
protected PreparedStatement |
AbstractLoadPlanBasedLoader.prepareQueryStatement(String sql,
QueryParameters queryParameters,
LimitHandler limitHandler,
boolean scroll,
SessionImplementor session)
Obtain a PreparedStatement with all parameters pre-bound.
|
Modifier and Type | Class and Description |
---|---|
class |
QuerySpaceUidNotRegisteredException
Indicates an attempt to lookup a QuerySpace by its uid, when no registration has been made under that uid.
|
Modifier and Type | Method and Description |
---|---|
String |
Column.getSqlType(Dialect dialect,
Mapping mapping) |
Iterator |
Table.sqlAlterStrings(Dialect dialect,
Mapping p,
TableInformation tableInfo,
String defaultCatalog,
String defaultSchema) |
String |
RelationalModel.sqlCreateString(Dialect dialect,
Mapping p,
String defaultCatalog,
String defaultSchema) |
String |
Index.sqlCreateString(Dialect dialect,
Mapping mapping,
String defaultCatalog,
String defaultSchema) |
Modifier and Type | Method and Description |
---|---|
Serializable |
ClassMetadata.getIdentifier(Object object)
Deprecated.
|
Type |
ClassMetadata.getPropertyType(String propertyName)
Get the type of a particular (named) property
|
Object |
ClassMetadata.getPropertyValue(Object object,
String propertyName)
Get the value of a particular (named) property
|
Object[] |
ClassMetadata.getPropertyValues(Object entity)
Extract the property values from the given entity.
|
Object[] |
ClassMetadata.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
Return the values of the mapped properties of the object
|
Object |
ClassMetadata.getVersion(Object object)
Get the version number (or timestamp) from the object's version property
(or return null if not versioned)
|
void |
ClassMetadata.setPropertyValue(Object object,
String propertyName,
Object value)
Set the value of a particular (named) property
|
void |
ClassMetadata.setPropertyValues(Object object,
Object[] values)
Set the given values to the mapped properties of the given object
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionPersister.deleteRows(PersistentCollection collection,
Serializable key,
SessionImplementor session)
Delete the persistent state of any elements that were removed from
the collection
|
void |
AbstractCollectionPersister.deleteRows(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
protected void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable key,
int nextIndex,
SessionImplementor session)
|
protected void |
OneToManyPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
protected void |
BasicCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
protected abstract void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable key,
SessionImplementor session) |
protected int |
BasicCollectionPersister.doUpdateRows(Serializable id,
PersistentCollection collection,
SessionImplementor session) |
protected abstract int |
AbstractCollectionPersister.doUpdateRows(Serializable key,
PersistentCollection collection,
SessionImplementor session) |
void |
NamedQueryCollectionInitializer.initialize(Serializable key,
SessionImplementor session) |
void |
CollectionPersister.initialize(Serializable key,
SessionImplementor session)
Initialize the given collection with the given key
|
void |
AbstractCollectionPersister.initialize(Serializable key,
SessionImplementor session) |
void |
OneToManyPersister.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
|
void |
AbstractCollectionPersister.insertRows(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
void |
CollectionPersister.processQueuedOps(PersistentCollection collection,
Serializable key,
SessionImplementor session)
Process queued operations within the PersistentCollection.
|
void |
AbstractCollectionPersister.processQueuedOps(PersistentCollection collection,
Serializable key,
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.readElement(ResultSet rs,
Object owner,
String[] aliases,
SessionImplementor session) |
Object |
CollectionPersister.readIdentifier(ResultSet rs,
String columnAlias,
SessionImplementor session)
Read the identifier from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readIdentifier(ResultSet rs,
String alias,
SessionImplementor session) |
Object |
CollectionPersister.readIndex(ResultSet rs,
String[] columnAliases,
SessionImplementor session)
Read the index from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readIndex(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
|
Object |
AbstractCollectionPersister.readKey(ResultSet rs,
String[] aliases,
SessionImplementor session) |
void |
OneToManyPersister.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.recreate(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
void |
CollectionPersister.remove(Serializable id,
SessionImplementor session)
Completely remove the persistent state of the collection
|
void |
AbstractCollectionPersister.remove(Serializable id,
SessionImplementor session) |
void |
CollectionPersister.updateRows(PersistentCollection collection,
Serializable key,
SessionImplementor session)
Update the persistent state of any elements that were modified
|
void |
AbstractCollectionPersister.updateRows(PersistentCollection collection,
Serializable id,
SessionImplementor session) |
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 |
---|---|
protected boolean |
AbstractEntityPersister.check(int rows,
Serializable id,
int tableNumber,
Expectation expectation,
PreparedStatement statement) |
Object |
EntityPersister.createProxy(Serializable id,
SessionImplementor session)
Create a new proxy instance
|
Object |
AbstractEntityPersister.createProxy(Serializable id,
SessionImplementor session) |
Object |
DiscriminatorType.deepCopy(Object value,
SessionFactoryImplementor factory) |
protected int |
AbstractEntityPersister.dehydrate(Serializable id,
Object[] fields,
boolean[] includeProperty,
boolean[][] includeColumns,
int j,
PreparedStatement st,
SessionImplementor session,
boolean isUpdate) |
protected int |
AbstractEntityPersister.dehydrate(Serializable id,
Object[] fields,
Object rowId,
boolean[] includeProperty,
boolean[][] includeColumns,
int j,
PreparedStatement ps,
SessionImplementor session,
int index,
boolean isUpdate)
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 |
EntityPersister.delete(Serializable id,
Object version,
Object object,
SessionImplementor session)
Delete a persistent instance
|
void |
AbstractEntityPersister.delete(Serializable id,
Object version,
Object object,
SessionImplementor session)
Delete an object
|
int[] |
AbstractEntityPersister.findDirty(Object[] currentState,
Object[] previousState,
Object entity,
SessionImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
int[] |
AbstractEntityPersister.findModified(Object[] old,
Object[] current,
Object entity,
SessionImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
Object |
EntityPersister.forceVersionIncrement(Serializable id,
Object currentVersion,
SessionImplementor session) |
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.getCurrentVersion(Serializable id,
SessionImplementor session)
Retrieve the version number
|
Object[] |
EntityPersister.getDatabaseSnapshot(Serializable id,
SessionImplementor session)
Get the current database state of the object, in a "hydrated" form, without
resolving identifiers
|
Object[] |
AbstractEntityPersister.getDatabaseSnapshot(Serializable id,
SessionImplementor session) |
Serializable |
AbstractEntityPersister.getIdByUniqueKey(Serializable key,
String uniquePropertyName,
SessionImplementor session) |
Serializable |
EntityPersister.getIdentifier(Object object)
Deprecated.
|
IdentifierGenerator |
AbstractEntityPersister.getIdentifierGenerator() |
Object[] |
AbstractEntityPersister.getNaturalIdentifierSnapshot(Serializable id,
SessionImplementor session) |
Object |
EntityPersister.getPropertyValue(Object object,
int i)
Get the value of a particular property
|
Object[] |
EntityPersister.getPropertyValuesToInsert(Object object,
Map mergeMap,
SessionImplementor session)
Return the values of the insertable properties of the object (including backrefs)
|
Object[] |
AbstractEntityPersister.getPropertyValuesToInsert(Object object,
Map mergeMap,
SessionImplementor session) |
Object |
EntityPersister.getVersion(Object object)
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
|
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.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.
|
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 |
EntityPersister.insert(Object[] fields,
Object object,
SessionImplementor session)
Persist an instance, using a natively generated identifier (optional operation)
|
Serializable |
AbstractEntityPersister.insert(Object[] fields,
Object object,
SessionImplementor session) |
protected void |
AbstractEntityPersister.insert(Serializable id,
Object[] fields,
boolean[] notNull,
int j,
String sql,
Object object,
SessionImplementor session)
Perform an SQL INSERT.
|
void |
EntityPersister.insert(Serializable id,
Object[] fields,
Object object,
SessionImplementor session)
Persist an instance
|
boolean |
DiscriminatorType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
Boolean |
EntityPersister.isTransient(Object object,
SessionImplementor session)
Is this a new transient instance?
|
Boolean |
AbstractEntityPersister.isTransient(Object entity,
SessionImplementor session) |
Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockMode lockMode,
SessionImplementor session)
Load an instance of the persistent class.
|
Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
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 |
UniqueKeyLoadable.loadByUniqueKey(String propertyName,
Object uniqueKey,
SessionImplementor session)
Load an instance of the persistent class, by a unique key other
than the primary key.
|
Object |
AbstractEntityPersister.loadByUniqueKey(String propertyName,
Object uniqueKey,
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,
LockMode lockMode,
SessionImplementor session) |
void |
EntityPersister.lock(Serializable id,
Object version,
Object object,
LockOptions lockOptions,
SessionImplementor session)
Do a version check (optional operation)
|
void |
AbstractEntityPersister.lock(Serializable id,
Object version,
Object object,
LockOptions lockOptions,
SessionImplementor session) |
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) |
Object |
DiscriminatorType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
String |
DiscriminatorType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
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
|
void |
AbstractEntityPersister.update(Serializable id,
Object[] fields,
int[] dirtyFields,
boolean hasDirtyCollection,
Object[] oldFields,
Object oldVersion,
Object object,
Object rowId,
SessionImplementor session)
Update an object
|
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
|
Constructor and Description |
---|
AbstractEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
JoinedSubclassEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
SingleTableEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
UnionSubclassEntityPersister(PersistentClass persistentClass,
EntityRegionAccessStrategy cacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
PersisterFactoryImpl.createCollectionPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext) |
EntityPersister |
PersisterFactoryImpl.createEntityPersister(PersistentClass entityBinding,
EntityRegionAccessStrategy entityCacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdCacheAccessStrategy,
PersisterCreationContext creationContext) |
Modifier and Type | Class and Description |
---|---|
class |
UnknownPersisterException
Indicates that the persister to use is not known and couyld not be determined.
|
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
PersisterFactory.createCollectionPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext)
Create a collection persister instance.
|
EntityPersister |
PersisterFactory.createEntityPersister(PersistentClass entityBinding,
EntityRegionAccessStrategy entityCacheAccessStrategy,
NaturalIdRegionAccessStrategy naturalIdCacheAccessStrategy,
PersisterCreationContext creationContext)
Create an entity persister instance.
|
Modifier and Type | Class and Description |
---|---|
class |
WalkingException
Indicates a problem walking the domain tree.
|
Modifier and Type | Class and Description |
---|---|
class |
NamedParametersNotSupportedException
Thrown to indicate that an attempt was made to register a stored procedure named parameter, but the underlying
database reports to not support named parameters.
|
class |
NoSuchParameterException |
class |
ParameterMisuseException
Thrown to indicate a misuse of a
ParameterRegistration |
class |
ParameterStrategyException |
class |
UnknownSqlResultSetMappingException |
Modifier and Type | Method and Description |
---|---|
Type[] |
ProcedureCallImpl.getReturnTypes() |
Modifier and Type | Class and Description |
---|---|
class |
PropertyAccessBuildingException
Indicates a problem while building a PropertyAccess
|
class |
PropertyAccessSerializationException |
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
AbstractLazyInitializer.getImplementation(SessionImplementor s) |
HibernateProxy |
ProxyFactory.getProxy(Serializable id,
SessionImplementor session)
Create a new proxy instance
|
void |
LazyInitializer.initialize()
Initialize the proxy, fetching the target entity if necessary.
|
void |
AbstractLazyInitializer.initialize() |
void |
ProxyFactory.postInstantiate(String entityName,
Class persistentClass,
Set<Class> interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType)
Called immediately after instantiation of this factory.
|
void |
LazyInitializer.setSession(SessionImplementor session)
Associate the proxy with the given session.
|
void |
AbstractLazyInitializer.setSession(SessionImplementor s) |
Modifier and Type | Method and Description |
---|---|
HibernateProxy |
MapProxyFactory.getProxy(Serializable id,
SessionImplementor session) |
void |
MapProxyFactory.postInstantiate(String entityName,
Class persistentClass,
Set interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType) |
Modifier and Type | Method and Description |
---|---|
HibernateProxy |
JavassistProxyFactory.getProxy(Serializable id,
SessionImplementor session) |
void |
JavassistProxyFactory.postInstantiate(String entityName,
Class persistentClass,
Set<Class> interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType) |
Modifier and Type | Class and Description |
---|---|
class |
LocalSynchronizationException
Wraps an exception thrown from a "local synchronization" (one registered in the SynchronizationRegistry).
|
class |
TransactionRequiredForJoinException
Indicates a call to
TransactionCoordinator.explicitJoin() that requires an
active transaction where there currently is none. |
Modifier and Type | Method and Description |
---|---|
<T> T |
JdbcIsolationDelegate.delegateCallable(Callable<T> callable,
boolean transacted) |
<T> T |
JdbcIsolationDelegate.delegateWork(WorkExecutorVisitable<T> work,
boolean transacted) |
Modifier and Type | Class and Description |
---|---|
class |
JtaPlatformInaccessibleException
Indicates problems accessing TransactionManager or UserTransaction through the JtaPlatform
|
Modifier and Type | Method and Description |
---|---|
<T> T |
JtaIsolationDelegate.delegateCallable(Callable<T> callable,
boolean transacted) |
<T> T |
JtaIsolationDelegate.delegateWork(WorkExecutorVisitable<T> work,
boolean transacted) |
Modifier and Type | Class and Description |
---|---|
class |
NoMoreReturnsException |
Modifier and Type | Class and Description |
---|---|
class |
IntegrationException |
Modifier and Type | Class and Description |
---|---|
class |
UnknownServiceException
Indicates that an unkown service was requested from the registry.
|
class |
UnknownUnwrapTypeException |
Modifier and Type | Class and Description |
---|---|
class |
ServiceDependencyException
Indictes a problem processing service dependencies.
|
class |
ServiceProxyGenerationException
Indicates a problem generating a service proxy
|
Modifier and Type | Class and Description |
---|---|
class |
ServiceException
Indicates a problem with a service.
|
Modifier and Type | Method and Description |
---|---|
SqlValueReference[] |
ColumnMapper.map(String reference)
Resolve the property reference to its underlying columns.
|
Modifier and Type | Class and Description |
---|---|
class |
ImportScriptException
Deprecated.
Everything in this package has been replaced with
SchemaManagementTool and friends. |
Modifier and Type | Class and Description |
---|---|
class |
SchemaExtractionException |
Modifier and Type | Class and Description |
---|---|
class |
CommandAcceptanceException
Indicates a problem accepting/executing a schema management command.
|
class |
SchemaManagementException
Indicates a problem in performing schema management.
|
Modifier and Type | Method and Description |
---|---|
Object |
AbstractComponentTuplizer.getPropertyValue(Object component,
int i) |
Object[] |
PojoComponentTuplizer.getPropertyValues(Object component) |
Object[] |
AbstractComponentTuplizer.getPropertyValues(Object component) |
Object |
AbstractComponentTuplizer.instantiate()
This method does not populate the component parent
|
void |
PojoComponentTuplizer.setPropertyValues(Object component,
Object[] values) |
void |
AbstractComponentTuplizer.setPropertyValues(Object component,
Object[] values) |
Modifier and Type | Class and Description |
---|---|
static class |
EntityMetamodel.ValueGenerationStrategyException |
Modifier and Type | Method and Description |
---|---|
Object |
EntityTuplizer.createProxy(Serializable id,
SessionImplementor session)
Generates an appropriate proxy representation of this entity for this
entity-mode.
|
Object |
AbstractEntityTuplizer.createProxy(Serializable id,
SessionImplementor session) |
Serializable |
EntityTuplizer.getIdentifier(Object entity)
Deprecated.
|
Serializable |
AbstractEntityTuplizer.getIdentifier(Object entity) |
Object |
AbstractEntityTuplizer.getPropertyValue(Object entity,
int i) |
Object |
EntityTuplizer.getPropertyValue(Object entity,
String propertyName)
Extract the value of a particular property from the given entity.
|
Object |
AbstractEntityTuplizer.getPropertyValue(Object entity,
String propertyPath) |
Object[] |
PojoEntityTuplizer.getPropertyValues(Object entity) |
Object[] |
AbstractEntityTuplizer.getPropertyValues(Object entity) |
Object[] |
PojoEntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session) |
Object[] |
EntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
Extract the values of the insertable properties of the entity (including backrefs)
|
Object[] |
AbstractEntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session) |
Object |
EntityTuplizer.getVersion(Object entity)
Extract the value of the version property from the given entity.
|
Object |
AbstractEntityTuplizer.getVersion(Object entity) |
Object |
AbstractEntityTuplizer.instantiate() |
Object |
EntityTuplizer.instantiate(Serializable id)
Deprecated.
|
Object |
AbstractEntityTuplizer.instantiate(Serializable id) |
void |
EntityTuplizer.setIdentifier(Object entity,
Serializable id)
Deprecated.
|
void |
AbstractEntityTuplizer.setIdentifier(Object entity,
Serializable id) |
void |
EntityTuplizer.setPropertyValue(Object entity,
int i,
Object value)
Inject the value of a particular property.
|
void |
AbstractEntityTuplizer.setPropertyValue(Object entity,
int i,
Object value) |
void |
EntityTuplizer.setPropertyValue(Object entity,
String propertyName,
Object value)
Inject the value of a particular property.
|
void |
AbstractEntityTuplizer.setPropertyValue(Object entity,
String propertyName,
Object value) |
void |
PojoEntityTuplizer.setPropertyValues(Object entity,
Object[] values) |
void |
AbstractEntityTuplizer.setPropertyValues(Object entity,
Object[] values) |
Modifier and Type | Class and Description |
---|---|
class |
SerializationException
Thrown when a property cannot be serializaed/deserialized
|
Modifier and Type | Method and Description |
---|---|
Object |
EnumType.assemble(Serializable cached,
Object owner) |
Object |
Type.assemble(Serializable cached,
SessionImplementor session,
Object owner)
Reconstruct the object from its disassembled state.
|
Object |
SpecialOneToOneType.assemble(Serializable oid,
SessionImplementor session,
Object owner) |
Object |
OneToOneType.assemble(Serializable oid,
SessionImplementor session,
Object owner) |
Object |
ManyToOneType.assemble(Serializable oid,
SessionImplementor session,
Object owner) |
Object |
CustomType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
CompositeCustomType.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 |
AnyType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
AbstractType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.assemble(Serializable cached,
SessionImplementor session,
Object owner) |
Object |
EnumType.deepCopy(Object value) |
Object |
Type.deepCopy(Object value,
SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at collections.
|
Object |
MetaType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Object |
CustomType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Object |
CompositeCustomType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Object |
ComponentType.deepCopy(Object component,
SessionFactoryImplementor factory) |
Object |
CollectionType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Serializable |
EnumType.disassemble(Object value) |
Serializable |
Type.disassemble(Object value,
SessionImplementor session,
Object owner)
Return a disassembled representation of the object.
|
Serializable |
SpecialOneToOneType.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 |
CustomType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
CompositeCustomType.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 |
AnyType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
AbstractType.disassemble(Object value,
SessionImplementor session,
Object owner) |
Serializable |
AbstractStandardBasicType.disassemble(Object value,
SessionImplementor session,
Object owner) |
boolean |
EnumType.equals(Object x,
Object y) |
Date |
TimestampType.fromStringValue(String xml) |
T |
StringRepresentableType.fromStringValue(String string)
Consume the given string representation back into this types java form.
|
T |
SingleColumnType.fromStringValue(String xml) |
Object |
CustomType.fromStringValue(String string) |
T |
AbstractStandardBasicType.fromStringValue(String xml) |
Object |
MetaType.fromXMLString(String xml,
Mapping factory) |
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 |
AbstractStandardBasicType.get(ResultSet rs,
String name,
SessionImplementor session) |
int |
Type.getHashCode(Object x)
Get a hash code, consistent with persistence "equality".
|
int |
Type.getHashCode(Object x,
SessionFactoryImplementor factory)
Get a hash code, consistent with persistence "equality".
|
protected Object |
EntityType.getIdentifier(Object value,
SessionImplementor session) |
Object |
CompositeCustomType.getPropertyValue(Object component,
int i) |
Object |
ComponentType.getPropertyValue(Object component,
int i) |
Object |
ComponentType.getPropertyValue(Object component,
int i,
EntityMode entityMode) |
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 |
ComponentType.getPropertyValue(Object component,
int i,
SessionImplementor session) |
Object |
AnyType.getPropertyValue(Object component,
int i,
SessionImplementor session) |
Object[] |
CompositeType.getPropertyValues(Object component,
EntityMode entityMode)
Extract the values of the component properties from the given component instance without access to the
session.
|
Object[] |
CompositeCustomType.getPropertyValues(Object component,
EntityMode entityMode) |
Object[] |
ComponentType.getPropertyValues(Object component,
EntityMode entityMode) |
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[] |
ComponentType.getPropertyValues(Object component,
SessionImplementor session) |
Object[] |
AnyType.getPropertyValues(Object component,
SessionImplementor session) |
int |
EnumType.hashCode(Object x) |
Object |
Type.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Extract a value from the JDBC result set.
|
Object |
SpecialOneToOneType.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 |
ComponentType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
AnyType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
AbstractType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.hydrate(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
ComponentType.instantiate(EntityMode entityMode)
This method does not populate the component parent
|
Object |
EmbeddedComponentType.instantiate(Object parent,
SessionImplementor session) |
Object |
ComponentType.instantiate(Object parent,
SessionImplementor session) |
PersistentCollection |
IdentifierBagType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
CustomCollectionType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
BagType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
ArrayType.instantiate(SessionImplementor session,
CollectionPersister persister,
Serializable key) |
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 |
MetaType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
ManyToOneType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
CustomType.isDirty(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
CompositeCustomType.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 |
AnyType.isDirty(Object old,
Object current,
boolean[] checkable,
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 |
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 |
AbstractType.isDirty(Object old,
Object current,
SessionImplementor session) |
boolean |
Type.isEqual(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
boolean |
CustomType.isEqual(Object x,
Object y) |
boolean |
CompositeCustomType.isEqual(Object x,
Object y) |
boolean |
ComponentType.isEqual(Object x,
Object y) |
boolean |
Type.isEqual(Object x,
Object y,
SessionFactoryImplementor factory)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
boolean |
ComponentType.isEqual(Object x,
Object y,
SessionFactoryImplementor factory) |
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.spi.SessionImplementor) methods is that here we need to account for "partially" built values. |
boolean |
ManyToOneType.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 |
AnyType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
AbstractType.isModified(Object old,
Object current,
boolean[] checkable,
SessionImplementor session) |
boolean |
Type.isSame(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state) taking a shortcut for entity references.
|
boolean |
ComponentType.isSame(Object x,
Object y) |
boolean |
AnyType.isSame(Object x,
Object y) |
boolean |
AbstractType.isSame(Object x,
Object y) |
Object |
EntityType.loadByUniqueKey(String entityName,
String uniqueKeyPropertyName,
Object key,
SessionImplementor session)
Load an instance by a unique key that is not the primary key.
|
Object |
Type.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Extract a value of the
mapped class from the JDBC result set. |
Object |
MetaType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
EntityType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
CustomType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
Object |
CompositeCustomType.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 |
AnyType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner) |
T |
SingleColumnType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session)
Get a column value from a result set by name.
|
Object |
Type.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Extract a value of the
mapped class from the JDBC result set. |
Object |
MetaType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
EntityType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
Object |
CustomType.nullSafeGet(ResultSet rs,
String columnName,
SessionImplementor session,
Object owner) |
Object |
CompositeCustomType.nullSafeGet(ResultSet rs,
String columnName,
SessionImplementor session,
Object owner) |
Object |
ComponentType.nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner) |
void |
Type.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session)
Bind a value represented by an instance of the
mapped class to the JDBC prepared
statement, ignoring some columns as dictated by the 'settable' parameter. |
void |
MetaType.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 |
CustomType.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 |
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 |
AnyType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
AbstractSingleColumnStandardBasicType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SessionImplementor session) |
void |
Type.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Bind a value represented by an instance of the
mapped class to the JDBC prepared
statement. |
void |
MetaType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
ManyToOneType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
EnumType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
CustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
void |
CompositeCustomType.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 |
AnyType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session) |
protected String |
CustomCollectionType.renderLoggableString(Object value,
SessionFactoryImplementor factory) |
protected String |
CollectionType.renderLoggableString(Object value,
SessionFactoryImplementor factory) |
Object |
EnumType.replace(Object original,
Object target,
Object owner) |
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 |
EntityType.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 |
CompositeCustomType.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) |
Object |
AnyType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache) |
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.
|
Object |
ComponentType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
Object |
AbstractType.replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
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 |
ArrayType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SessionImplementor session) |
Object |
Type.resolve(Object value,
SessionImplementor session,
Object owner)
The second phase of 2-phase loading.
|
Object |
EntityType.resolve(Object value,
SessionImplementor session,
Object owner)
Resolve an identifier or unique key value
|
Object |
ComponentType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
CollectionType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AnyType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AbstractType.resolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.resolve(Object value,
SessionImplementor session,
Object owner) |
protected Object |
EntityType.resolveIdentifier(Serializable id,
SessionImplementor session)
Resolve an identifier via a load.
|
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.
|
Object |
ComponentType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
CollectionType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AbstractType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
Object |
AbstractStandardBasicType.semiResolve(Object value,
SessionImplementor session,
Object owner) |
void |
SingleColumnType.set(PreparedStatement st,
T value,
int index,
SessionImplementor session)
Set a parameter value without worrying about the possibility of null
values.
|
void |
AbstractStandardBasicType.set(PreparedStatement st,
T value,
int index,
SessionImplementor session) |
void |
CompositeType.setPropertyValues(Object component,
Object[] values,
EntityMode entityMode)
Inject property values onto the given component instance
An optional operation
|
void |
CompositeCustomType.setPropertyValues(Object component,
Object[] values,
EntityMode entityMode) |
void |
ComponentType.setPropertyValues(Object component,
Object[] values,
EntityMode entityMode) |
String |
Type.toLoggableString(Object value,
SessionFactoryImplementor factory)
Generate a representation of the value for logging purposes.
|
String |
MetaType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CustomType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CompositeCustomType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
ComponentType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CollectionType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
ArrayType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
AnyType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CustomType.toString(Object value) |
String |
StringRepresentableType.toString(T value)
Render the value to the string representation.
|
String |
SingleColumnType.toString(T value) |
String |
MetaType.toXMLString(Object value,
SessionFactoryImplementor factory) |
Modifier and Type | Method and Description |
---|---|
protected HibernateException |
AbstractTypeDescriptor.unknownUnwrap(Class conversionType) |
protected HibernateException |
AbstractTypeDescriptor.unknownWrap(Class conversionType) |
Modifier and Type | Method and Description |
---|---|
Object |
UserType.assemble(Serializable cached,
Object owner)
Reconstruct an object from the cacheable representation.
|
Object |
CompositeUserType.assemble(Serializable cached,
SessionImplementor session,
Object owner)
Reconstruct an object from the cacheable representation.
|
Object |
UserType.deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
Object |
CompositeUserType.deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at collections.
|
Serializable |
UserType.disassemble(Object value)
Transform the object into its cacheable representation.
|
Serializable |
CompositeUserType.disassemble(Object value,
SessionImplementor session)
Transform the object into its cacheable representation.
|
boolean |
UserType.equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality".
|
boolean |
CompositeUserType.equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality".
|
Object |
CompositeUserType.getPropertyValue(Object component,
int property)
Get the value of a property.
|
int |
UserType.hashCode(Object x)
Get a hashcode for the instance, consistent with persistence "equality"
|
int |
CompositeUserType.hashCode(Object x)
Get a hashcode for the instance, consistent with persistence "equality"
|
PersistentCollection |
UserCollectionType.instantiate(SessionImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper
|
Object |
UserType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
Object |
CompositeUserType.nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
void |
UserType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
void |
CompositeUserType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
Object |
UserType.replace(Object original,
Object target,
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 |
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
|
void |
CompositeUserType.setPropertyValue(Object component,
int property,
Object value)
Set the value of a property.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.