Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.action.spi |
Defines SPI hooks into the
ActionQueue . |
org.hibernate.boot |
This package contains the contracts that make up the Hibernate native
bootstrapping API (building a SessionFactory).
|
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.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.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.spi |
Defines the integration aspect of Hibernate's second-level
caching allowing "caching back ends" to be plugged in as
a caching provider.
|
org.hibernate.cache.spi.access |
Defines contracts for transactional and concurrent access to cached
entity and
collection data. |
org.hibernate.cache.spi.entry |
This package defines formats for disassembled state kept in the second level cache.
|
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
org.hibernate.collection.spi |
SPI definitions for persistent collections
|
org.hibernate.context |
Defines support for "current session" feature.
|
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.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 | |
org.hibernate.engine.query.spi |
Defines support for query plans and stored metadata about queries
|
org.hibernate.engine.spi | |
org.hibernate.engine.transaction.jta.platform.spi | |
org.hibernate.engine.transaction.spi | |
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.graph |
Hibernate's (extended) support for JPA's entity graphs
|
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.jdbc | |
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 |
Support for entity loaders built on top of the
org.hibernate.loader.plan
API to apply entity-graphs |
org.hibernate.loader.hql |
This package defines a loader for the AST-based query parser
|
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.metamodel.model.domain | |
org.hibernate.persister.collection |
This package abstracts the persistence mechanism for collections.
|
org.hibernate.persister.entity |
This package abstracts persistence mechanisms for
entities, and defines the Hibernate runtime
metamodel.
|
org.hibernate.persister.spi | |
org.hibernate.persister.walking.spi | |
org.hibernate.procedure | |
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.bytebuddy | |
org.hibernate.proxy.pojo.javassist | |
org.hibernate.query.spi | |
org.hibernate.resource.transaction |
Defines the resource-level transaction capabilities of Hibernate, which revolves around the
TransactionCoordinator contract. |
org.hibernate.result | |
org.hibernate.secure.spi | |
org.hibernate.service | |
org.hibernate.service.spi | |
org.hibernate.sql.ordering.antlr | |
org.hibernate.tool.hbm2ddl |
The hbm2ddl tool.
|
org.hibernate.tool.schema.ast | |
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 |
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 |
SharedSessionContract.close()
End the session by releasing the JDBC connection and cleaning up.
|
void |
SessionFactory.close()
Destroy this SessionFactory and release all resources (caches,
connection pools, etc).
|
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.
|
default <T> T |
SharedSessionContract.doReturningWork(ReturningWork<T> work)
Controller for allowing users to perform JDBC related work using the Connection managed by this Session.
|
default void |
SharedSessionContract.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 |
Executable.beforeExecutions()
Called before executing any actions.
|
void |
Executable.execute()
Execute this action.
|
Modifier and Type | Class and Description |
---|---|
class |
UnsupportedOrmXsdVersionException |
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 | 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 |
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 available, but
none was found on the classpath.
|
Modifier and Type | Method and Description |
---|---|
default void |
CacheImplementor.evictQueries()
Clean up the default query cache
|
List |
QueryResultsCache.get(QueryKey key,
Set<Serializable> spaces,
Type[] returnTypes,
SharedSessionContractImplementor session)
Get results from the cache.
|
List |
QueryResultsCache.get(QueryKey key,
String[] spaces,
Type[] returnTypes,
SharedSessionContractImplementor session)
Get results from the cache.
|
default QueryCache |
CacheImplementor.getQueryCache(String regionName)
Deprecated.
Use
CacheImplementor.getQueryResultsCache(String) instead, but using unqualified name |
boolean |
QueryResultsCache.put(QueryKey key,
List result,
Type[] returnTypes,
SharedSessionContractImplementor 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
or that an AccessType was requested that the underlying cache provider
does not support.
|
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,
SharedSessionContractImplementor 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 |
---|---|
Object |
PersistentCollection.readFrom(ResultSet rs,
CollectionPersister role,
CollectionAliases descriptor,
Object owner)
Read a row from the JDBC result set
|
boolean |
PersistentCollection.setCurrentSession(SharedSessionContractImplementor 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 |
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[] |
Junction.getTypedValues(Criteria crit,
CriteriaQuery criteriaQuery) |
TypedValue[] |
BetweenExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SizeExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NotNullExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
AbstractEmptinessExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SimpleSubqueryExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NaturalIdentifier.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SubqueryExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
SimpleExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NotExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
NullExpression.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery) |
TypedValue[] |
Criterion.getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
Type[] |
AggregateProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
RowCountProjection.getTypes(Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
AliasedProjection.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(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery) |
Type[] |
Projection.getTypes(String alias,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the return types for a particular user-visible alias.
|
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 |
Junction.toSqlString(Criteria crit,
CriteriaQuery criteriaQuery) |
String |
BetweenExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SizeExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NotNullExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
AbstractEmptinessExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NaturalIdentifier.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SubqueryExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
SimpleExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
PropertyExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NotExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
NullExpression.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery) |
String |
Criterion.toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
AggregateProjection.toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery) |
String |
RowCountProjection.toSqlString(Criteria criteria,
int position,
CriteriaQuery criteriaQuery) |
String |
AliasedProjection.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.
|
Modifier and Type | Method and Description |
---|---|
static Dialect |
Dialect.getDialect()
Deprecated.
this static method will be removed.
|
static Dialect |
Dialect.getDialect(Properties props)
Deprecated.
this static method will be removed.
|
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 |
---|---|
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 | Class and Description |
---|---|
class |
ParameterRecognitionException
Indicates a problem during parameter recognition via
ParamLocationRecognizer |
Modifier and Type | Method and Description |
---|---|
int |
HQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SharedSessionContractImplementor session)
Coordinates the efforts to perform an execution across all the included query translators.
|
int |
NativeSQLQueryPlan.performExecuteUpdate(QueryParameters queryParameters,
SharedSessionContractImplementor session)
Performs the execute query
|
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,
SharedSessionContractImplementor session)
Coordinates the efforts to perform a list across all the included query translators.
|
ScrollableResultsImplementor |
HQLQueryPlan.performScroll(QueryParameters queryParameters,
SharedSessionContractImplementor session)
Coordinates the efforts to perform a scroll across all the included query translators.
|
Modifier and Type | Method and Description |
---|---|
RuntimeException |
ExceptionConverter.convert(HibernateException e)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use
of exceptions outside its exception hierarchy, though they are all runtime exceptions.
|
RuntimeException |
ExceptionConverter.convert(HibernateException e,
LockOptions lockOptions)
Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA specification makes use
of exceptions outside its exception hierarchy, though they are all runtime exceptions.
|
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) |
default void |
CacheImplementor.evictQueries()
Deprecated.
Clean up the default query cache
|
void |
ActionQueue.executeActions()
Perform all currently queued actions.
|
void |
ActionQueue.executeInserts()
Perform all currently queued entity-insertion actions.
|
int |
SharedSessionContractImplementor.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters)
Execute a native SQL update or delete query
|
int |
SessionDelegatorBaseImpl.executeNativeUpdate(NativeSQLQuerySpecification specification,
QueryParameters queryParameters) |
int |
SharedSessionContractImplementor.executeUpdate(String query,
QueryParameters queryParameters)
Execute a HQL update or delete query
|
int |
SessionDelegatorBaseImpl.executeUpdate(String query,
QueryParameters queryParameters) |
void |
SessionDelegatorBaseImpl.forceFlush(EntityEntry e) |
void |
SessionImplementor.forceFlush(EntityEntry e) |
Session |
SessionFactoryDelegatingImpl.getCurrentSession() |
EntityPersister |
SharedSessionContractImplementor.getEntityPersister(String entityName,
Object object)
Get the EntityPersister for any instance
|
EntityPersister |
SessionDelegatorBaseImpl.getEntityPersister(String entityName,
Object object) |
Object |
SharedSessionContractImplementor.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)
|
default QueryCache |
CacheImplementor.getQueryCache(String regionName)
Deprecated.
Use
CacheImplementor.getQueryResultsCache(String) instead, but using unqualified name |
String[] |
SessionFactoryDelegatingImpl.getReturnAliases(String queryString) |
Type[] |
SessionFactoryDelegatingImpl.getReturnTypes(String queryString) |
String |
SharedSessionContractImplementor.guessEntityName(Object entity)
The guessed entity name for an entity not in an association
|
String |
SessionDelegatorBaseImpl.guessEntityName(Object entity) |
Object |
SharedSessionContractImplementor.immediateLoad(String entityName,
Serializable id)
Load an instance immediately.
|
Object |
SessionDelegatorBaseImpl.immediateLoad(String entityName,
Serializable id) |
void |
SharedSessionContractImplementor.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 |
SessionDelegatorBaseImpl.instantiate(EntityPersister persister,
Serializable id) |
Object |
SessionImplementor.instantiate(EntityPersister persister,
Serializable id) |
Object |
SharedSessionContractImplementor.instantiate(String entityName,
Serializable id)
Instantiate the entity class, initializing with the given identifier
|
Object |
SessionDelegatorBaseImpl.instantiate(String entityName,
Serializable id) |
Object |
SharedSessionContractImplementor.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 |
SharedSessionContractImplementor.iterate(String query,
QueryParameters queryParameters)
Execute an iterate() query
|
Iterator |
SessionDelegatorBaseImpl.iterate(String query,
QueryParameters queryParameters) |
Iterator |
SharedSessionContractImplementor.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters)
Iterate a filter
|
Iterator |
SessionDelegatorBaseImpl.iterateFilter(Object collection,
String filter,
QueryParameters queryParameters) |
List |
SharedSessionContractImplementor.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 |
SharedSessionContractImplementor.list(String query,
QueryParameters queryParameters)
Execute a find() query
|
List |
SessionDelegatorBaseImpl.list(String query,
QueryParameters queryParameters) |
List |
SharedSessionContractImplementor.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
List |
SessionDelegatorBaseImpl.listCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters) |
List |
SharedSessionContractImplementor.listFilter(Object collection,
String filter,
QueryParameters queryParameters)
Execute a filter
|
List |
SessionDelegatorBaseImpl.listFilter(Object collection,
String filter,
QueryParameters queryParameters) |
void |
SessionDelegatorBaseImpl.merge(String entityName,
Object object,
Map copiedAlready) |
void |
SessionImplementor.merge(String entityName,
Object object,
Map copiedAlready)
Deprecated.
OperationalContext should cover this overload I believe; Gail?
|
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 (used by hibernate-envers)
|
Session |
SessionFactoryDelegatingImpl.openTemporarySession() |
void |
SessionDelegatorBaseImpl.persist(String entityName,
Object object,
Map createdAlready) |
void |
SessionImplementor.persist(String entityName,
Object object,
Map createdAlready)
Deprecated.
OperationalContext should cover this overload I believe; Gail?
|
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.
|
void |
SessionDelegatorBaseImpl.refresh(String entityName,
Object object,
Map refreshedAlready) |
void |
SessionImplementor.refresh(String entityName,
Object object,
Map refreshedAlready)
Deprecated.
OperationalContext should cover this overload I believe; Gail?
|
ScrollableResultsImplementor |
SessionDelegatorBaseImpl.scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters) |
ScrollableResultsImplementor |
SharedSessionContractImplementor.scroll(String query,
QueryParameters queryParameters)
Execute a scroll() query
|
ScrollableResultsImplementor |
SessionDelegatorBaseImpl.scroll(String query,
QueryParameters queryParameters) |
ScrollableResultsImplementor |
SharedSessionContractImplementor.scrollCustomQuery(CustomQuery customQuery,
QueryParameters queryParameters)
Execute an SQL Query
|
ScrollableResultsImplementor |
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 |
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 | 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 |
CannotBecomeEntityGraphException
Indicates an illegal attempt to make a
Graph become
an EntityGraph via Graph.makeRootGraph(String, boolean) . |
class |
CannotContainSubGraphException
Indicates an attempt was made to add a (key)? sub-graph to an
attribute type that does not support (key)? sub-graphs.
|
class |
InvalidGraphException
Thrown by
GraphParser to indicate textual entity graph representation parsing errors. |
Modifier and Type | Method and Description |
---|---|
int |
QueryTranslator.executeUpdate(QueryParameters queryParameters,
SharedSessionContractImplementor 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(SharedSessionContractImplementor session,
QueryParameters queryParameters)
Perform a list operation given the underlying query definition.
|
ScrollableResultsImplementor |
QueryTranslator.scroll(QueryParameters queryParameters,
SharedSessionContractImplementor 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 |
IdentifierGenerator.generate(SharedSessionContractImplementor session,
Object object)
Generate a new identifier.
|
Serializable |
UUIDGenerator.generate(SharedSessionContractImplementor session,
Object object) |
Serializable |
GUIDGenerator.generate(SharedSessionContractImplementor session,
Object obj) |
Serializable |
IncrementGenerator.generate(SharedSessionContractImplementor session,
Object object) |
Serializable |
CompositeNestedGeneratedValueGenerator.generate(SharedSessionContractImplementor session,
Object object) |
Serializable |
Assigned.generate(SharedSessionContractImplementor session,
Object obj) |
static Serializable |
IdentifierGeneratorHelper.getGeneratedIdentity(ResultSet rs,
String identifier,
Type type,
Dialect dialect)
Get the generated identifier when using identity columns
|
InsertGeneratedIdentifierDelegate |
IdentityGenerator.getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister,
Dialect dialect,
boolean isGetGeneratedKeysEnabled) |
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) |
String[] |
PersistentIdentifierGenerator.sqlCreateStrings(Dialect dialect)
Deprecated.
Utilize the ExportableProducer contract instead
|
String[] |
SequenceGenerator.sqlCreateStrings(Dialect dialect)
Deprecated.
|
String[] |
MultipleHiLoPerTableGenerator.sqlCreateStrings(Dialect dialect)
Deprecated.
|
String[] |
PersistentIdentifierGenerator.sqlDropStrings(Dialect dialect)
Deprecated.
Utilize the ExportableProducer contract instead
|
String[] |
SequenceGenerator.sqlDropStrings(Dialect dialect)
Deprecated.
|
String[] |
MultipleHiLoPerTableGenerator.sqlDropStrings(Dialect dialect)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
SequenceStyleGenerator.generate(SharedSessionContractImplementor session,
Object object) |
String[] |
SequenceStructure.sqlCreateStrings(Dialect dialect) |
String[] |
TableStructure.sqlCreateStrings(Dialect dialect) |
String[] |
SequenceStyleGenerator.sqlCreateStrings(Dialect dialect) |
String[] |
TableGenerator.sqlCreateStrings(Dialect dialect) |
String[] |
SequenceStructure.sqlDropStrings(Dialect dialect) |
String[] |
TableStructure.sqlDropStrings(Dialect dialect) |
String[] |
SequenceStyleGenerator.sqlDropStrings(Dialect dialect) |
String[] |
TableGenerator.sqlDropStrings(Dialect dialect) |
Modifier and Type | Class and Description |
---|---|
class |
BatchedTooManyRowsAffectedException
Much like
TooManyRowsAffectedException , indicates that more
rows than what we were expecting 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 |
Expectation.prepare(PreparedStatement statement)
Perform any special statement preparation.
|
int |
Expectations.BasicExpectation.prepare(PreparedStatement statement) |
int |
Expectations.BasicParamExpectation.prepare(PreparedStatement statement) |
void |
Expectation.verifyOutcome(int rowCount,
PreparedStatement statement,
int batchPosition,
String statementSQL)
Perform verification of the outcome of the RDBMS operation based on
the type of expectation defined.
|
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,
SharedSessionContractImplementor session)
Bind named parameters to the JDBC prepared statement.
|
protected int |
Loader.bindPositionalParameters(PreparedStatement statement,
QueryParameters queryParameters,
int startIndex,
SharedSessionContractImplementor session)
Bind positional parameter values to the JDBC prepared statement.
|
protected PreparedStatement |
Loader.bindPreparedStatement(PreparedStatement st,
QueryParameters queryParameters,
LimitHandler limitHandler,
SharedSessionContractImplementor session) |
protected void |
Loader.checkScrollability()
Check whether the current loader can support returning ScrollableResults.
|
protected List |
Loader.doList(SharedSessionContractImplementor session,
QueryParameters queryParameters)
Actually execute a query, ignoring the query cache
|
List |
Loader.doQueryAndInitializeNonLazyCollections(SharedSessionContractImplementor 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(SharedSessionContractImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
ResultTransformer forcedResultTransformer) |
protected Object |
Loader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SharedSessionContractImplementor session)
Get the actual object that is returned in the user-visible result list.
|
protected Object[] |
Loader.getResultRow(Object[] row,
ResultSet rs,
SharedSessionContractImplementor session) |
protected ResultSet |
Loader.getResultSet(CallableStatement st,
RowSelection selection,
LimitHandler limitHandler,
boolean autodiscovertypes,
SharedSessionContractImplementor session)
Execute given CallableStatement, advance to the first result and return SQL ResultSet.
|
protected ResultSet |
Loader.getResultSet(PreparedStatement st,
RowSelection selection,
LimitHandler limitHandler,
boolean autodiscovertypes,
SharedSessionContractImplementor session)
Execute given PreparedStatement, advance to the first result and return SQL ResultSet.
|
protected void |
Loader.instanceAlreadyLoaded(ResultSet rs,
int i,
Loadable persister,
EntityKey key,
Object object,
LockMode requestedLockMode,
List hydratedObjects,
SharedSessionContractImplementor session)
The entity instance is already in the session cache
|
protected Object |
Loader.instanceNotYetLoaded(ResultSet rs,
int i,
Loadable persister,
String rowIdAlias,
EntityKey key,
LockMode lockMode,
EntityKey optionalObjectKey,
Object optionalObject,
List hydratedObjects,
SharedSessionContractImplementor session)
The entity instance is not in the session cache
|
protected List |
Loader.list(SharedSessionContractImplementor 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(SharedSessionContractImplementor session,
Serializable id,
Type type)
Called by subclasses that initialize collections
|
void |
Loader.loadCollectionBatch(SharedSessionContractImplementor session,
Serializable[] ids,
Type type)
Called by wrappers that batch initialize collections
|
protected void |
Loader.loadCollectionSubselect(SharedSessionContractImplementor session,
Serializable[] ids,
Object[] parameterValues,
Type[] parameterTypes,
Map<String,TypedValue> namedParameters,
Type type)
Called by subclasses that batch initialize collections
|
protected List |
Loader.loadEntity(SharedSessionContractImplementor session,
Object key,
Object index,
Type keyType,
Type indexType,
EntityPersister persister)
Called by subclasses that load entities
|
protected List |
Loader.loadEntity(SharedSessionContractImplementor session,
Object id,
Type identifierType,
Object optionalObject,
String optionalEntityName,
Serializable optionalIdentifier,
EntityPersister persister,
LockOptions lockOptions,
Boolean readOnly)
Called by subclasses that load entities
|
List |
Loader.loadEntityBatch(SharedSessionContractImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
List |
Loader.loadEntityBatch(SharedSessionContractImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions,
Boolean readOnly)
Called by wrappers that batch load entities
|
Object |
Loader.loadSequentialRowsForward(ResultSet resultSet,
SharedSessionContractImplementor session,
QueryParameters queryParameters,
boolean returnProxies)
Loads a single logical row from the result set moving forward.
|
Object |
Loader.loadSequentialRowsReverse(ResultSet resultSet,
SharedSessionContractImplementor session,
QueryParameters queryParameters,
boolean returnProxies,
boolean isLogicallyAfterLast)
Loads a single logical row from the result set moving forward.
|
Object |
Loader.loadSingleRow(ResultSet resultSet,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor session)
Obtain a PreparedStatement with all parameters pre-bound.
|
protected ResultSet |
Loader.preprocessResultSet(ResultSet rs,
RowSelection selection,
LimitHandler limitHandler,
boolean autodiscovertypes,
SharedSessionContractImplementor session) |
protected String |
Loader.preprocessSQL(String sql,
QueryParameters parameters,
SessionFactoryImplementor sessionFactory,
List<AfterLoadAction> afterLoadActions)
Modify the SQL, adding lock hints and comments, if necessary
|
protected ScrollableResultsImplementor |
Loader.scroll(QueryParameters queryParameters,
Type[] returnTypes,
org.hibernate.hql.internal.HolderInstantiator holderInstantiator,
SharedSessionContractImplementor session)
Return the query results, as an instance of ScrollableResults
|
Modifier and Type | Method and Description |
---|---|
void |
LegacyBatchingCollectionInitializerBuilder.LegacyBatchingCollectionInitializer.initialize(Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionInitializer.initialize(Serializable id,
SharedSessionContractImplementor session)
Initialize the given collection
|
void |
SubselectCollectionLoader.initialize(Serializable id,
SharedSessionContractImplementor session) |
void |
SubselectOneToManyLoader.initialize(Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionLoader.initialize(Serializable id,
SharedSessionContractImplementor session) |
void |
DynamicBatchingCollectionInitializerBuilder.DynamicBatchingCollectionInitializer.initialize(Serializable id,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLoadPlanBasedCollectionInitializer.initialize(Serializable id,
SharedSessionContractImplementor session) |
void |
LegacyBatchingCollectionInitializerBuilder.LegacyBatchingCollectionInitializer.initialize(Serializable id,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor session) |
protected Object[] |
CriteriaLoader.getResultRow(Object[] row,
ResultSet rs,
SharedSessionContractImplementor session) |
Type |
CriteriaQueryTranslator.getType(Criteria subcriteria,
String propertyName) |
TypedValue |
CriteriaQueryTranslator.getTypedValue(Criteria subcriteria,
String propertyName,
Object value)
Get the typed value for the given property value.
|
Type |
CriteriaQueryTranslator.getTypeUsingProjection(Criteria subcriteria,
String propertyName) |
List |
CriteriaLoader.list(SharedSessionContractImplementor session) |
ScrollableResultsImplementor |
CriteriaLoader.scroll(SharedSessionContractImplementor session,
ScrollMode scrollMode) |
Constructor and Description |
---|
CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
org.hibernate.internal.CriteriaImpl criteria,
String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers) |
CriteriaQueryTranslator(SessionFactoryImplementor factory,
org.hibernate.internal.CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias) |
CriteriaQueryTranslator(SessionFactoryImplementor factory,
org.hibernate.internal.CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias,
CriteriaQuery outerQuery) |
Modifier and Type | Class and Description |
---|---|
class |
NonUniqueDiscoveredSqlAliasException |
Constructor and Description |
---|
SQLCustomQuery(String sqlQuery,
NativeSQLQueryReturn[] queryReturns,
Collection additionalQuerySpaces,
SessionFactoryImplementor factory) |
Modifier and Type | Method and Description |
---|---|
Object |
UniqueEntityLoader.load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Deprecated.
|
default Object |
UniqueEntityLoader.load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
CollectionElementLoader.loadElement(SharedSessionContractImplementor session,
Object key,
Object index) |
CacheEntityLoaderHelper.PersistenceContextEntry |
CacheEntityLoaderHelper.loadFromSessionCache(LoadEvent event,
EntityKey keyToLoad,
LoadEventListener.LoadType options)
Attempts to locate the entity in the session-level cache.
|
Modifier and Type | Method and Description |
---|---|
Object |
AbstractLoadPlanBasedEntityLoader.load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session) |
Object |
AbstractLoadPlanBasedEntityLoader.load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
Boolean readOnly) |
List |
AbstractLoadPlanBasedEntityLoader.loadEntityBatch(SharedSessionContractImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions)
Called by wrappers that batch load entities
|
List |
AbstractLoadPlanBasedEntityLoader.loadEntityBatch(SharedSessionContractImplementor session,
Serializable[] ids,
Type idType,
Object optionalObject,
String optionalEntityName,
Serializable optionalId,
EntityPersister persister,
LockOptions lockOptions,
Boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
protected Object |
QueryLoader.getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SharedSessionContractImplementor session) |
protected Object[] |
QueryLoader.getResultRow(Object[] row,
ResultSet rs,
SharedSessionContractImplementor session) |
Iterator |
QueryLoader.iterate(QueryParameters queryParameters,
EventSource session) |
List |
QueryLoader.list(SharedSessionContractImplementor session,
QueryParameters queryParameters) |
ScrollableResultsImplementor |
QueryLoader.scroll(QueryParameters queryParameters,
SharedSessionContractImplementor session) |
void |
QueryLoader.validateScrollability() |
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<String> |
Table.sqlAlterStrings(Dialect dialect,
Metadata metadata,
TableInformation tableInfo,
Identifier defaultCatalog,
Identifier defaultSchema) |
String |
Index.sqlCreateString(Dialect dialect,
Mapping mapping,
String defaultCatalog,
String defaultSchema) |
String |
RelationalModel.sqlCreateString(Dialect dialect,
Mapping p,
String defaultCatalog,
String defaultSchema)
Deprecated.
|
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.
|
default Object[] |
ClassMetadata.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
Deprecated.
(since 5.3) Use the form accepting SharedSessionContractImplementor
instead
|
Object[] |
ClassMetadata.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SharedSessionContractImplementor 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 |
---|---|
default boolean |
BasicDomainType.areEqual(J x,
J y) |
Modifier and Type | Method and Description |
---|---|
void |
CollectionPersister.deleteRows(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Delete the persistent state of any elements that were removed from
the collection
|
void |
AbstractCollectionPersister.deleteRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
protected void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable key,
int nextIndex,
SharedSessionContractImplementor session)
|
protected void |
OneToManyPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
protected abstract void |
AbstractCollectionPersister.doProcessQueuedOps(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session) |
protected abstract int |
AbstractCollectionPersister.doUpdateRows(Serializable key,
PersistentCollection collection,
SharedSessionContractImplementor session) |
protected int |
BasicCollectionPersister.doUpdateRows(Serializable id,
PersistentCollection collection,
SharedSessionContractImplementor session) |
void |
NamedQueryCollectionInitializer.initialize(Serializable key,
SharedSessionContractImplementor session) |
void |
CollectionPersister.initialize(Serializable key,
SharedSessionContractImplementor session)
Initialize the given collection with the given key
TODO: add owner argument!!
|
void |
AbstractCollectionPersister.initialize(Serializable key,
SharedSessionContractImplementor session) |
void |
CollectionPersister.insertRows(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Insert the persistent state of any new collection elements
|
void |
OneToManyPersister.insertRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
AbstractCollectionPersister.insertRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionPersister.processQueuedOps(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Process queued operations within the PersistentCollection.
|
void |
AbstractCollectionPersister.processQueuedOps(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session) |
Object |
CollectionPersister.readElement(ResultSet rs,
Object owner,
String[] columnAliases,
SharedSessionContractImplementor session)
Read the element from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readElement(ResultSet rs,
Object owner,
String[] aliases,
SharedSessionContractImplementor session) |
Object |
CollectionPersister.readIdentifier(ResultSet rs,
String columnAlias,
SharedSessionContractImplementor session)
Read the identifier from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readIdentifier(ResultSet rs,
String alias,
SharedSessionContractImplementor session) |
Object |
CollectionPersister.readIndex(ResultSet rs,
String[] columnAliases,
SharedSessionContractImplementor session)
Read the index from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readIndex(ResultSet rs,
String[] aliases,
SharedSessionContractImplementor session) |
Object |
CollectionPersister.readKey(ResultSet rs,
String[] keyAliases,
SharedSessionContractImplementor session)
Read the key from a row of the JDBC ResultSet
|
Object |
AbstractCollectionPersister.readKey(ResultSet rs,
String[] aliases,
SharedSessionContractImplementor session) |
void |
CollectionPersister.recreate(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
(Re)create the collection's persistent state
|
void |
OneToManyPersister.recreate(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
AbstractCollectionPersister.recreate(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionPersister.remove(Serializable id,
SharedSessionContractImplementor session)
Completely remove the persistent state of the collection
|
void |
AbstractCollectionPersister.remove(Serializable id,
SharedSessionContractImplementor session) |
void |
CollectionPersister.updateRows(PersistentCollection collection,
Serializable key,
SharedSessionContractImplementor session)
Update the persistent state of any elements that were modified
|
void |
AbstractCollectionPersister.updateRows(PersistentCollection collection,
Serializable id,
SharedSessionContractImplementor session) |
protected int |
AbstractCollectionPersister.writeElement(PreparedStatement st,
Object elt,
int i,
SharedSessionContractImplementor session)
Write the element to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeElementToWhere(PreparedStatement st,
Object elt,
int i,
SharedSessionContractImplementor session)
Write the element to a JDBC PreparedStatement
|
int |
AbstractCollectionPersister.writeIdentifier(PreparedStatement st,
Object id,
int i,
SharedSessionContractImplementor session)
Write the identifier to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeIndex(PreparedStatement st,
Object index,
int i,
SharedSessionContractImplementor session)
Write the index to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeIndexToWhere(PreparedStatement st,
Object index,
int i,
SharedSessionContractImplementor session)
Write the index to a JDBC PreparedStatement
|
protected int |
AbstractCollectionPersister.writeKey(PreparedStatement st,
Serializable key,
int i,
SharedSessionContractImplementor 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,
String statementSQL) |
Object |
AbstractEntityPersister.createProxy(Serializable id,
SharedSessionContractImplementor session) |
Object |
EntityPersister.createProxy(Serializable id,
SharedSessionContractImplementor session)
Create a new proxy instance
|
Object |
DiscriminatorType.deepCopy(Object value,
SessionFactoryImplementor factory) |
int |
AbstractEntityPersister.dehydrate(Serializable id,
Object[] fields,
boolean[] includeProperty,
boolean[][] includeColumns,
int j,
PreparedStatement st,
SharedSessionContractImplementor session,
boolean isUpdate) |
int |
AbstractEntityPersister.dehydrate(Serializable id,
Object[] fields,
Object rowId,
boolean[] includeProperty,
boolean[][] includeColumns,
int j,
PreparedStatement ps,
SharedSessionContractImplementor session,
int index,
boolean isUpdate)
Marshall the fields of a persistent instance to a prepared statement
|
void |
AbstractEntityPersister.delete(Serializable id,
Object version,
int j,
Object object,
String sql,
SharedSessionContractImplementor session,
Object[] loadedState)
Perform an SQL DELETE
|
void |
AbstractEntityPersister.delete(Serializable id,
Object version,
Object object,
SharedSessionContractImplementor session)
Delete an object
|
void |
EntityPersister.delete(Serializable id,
Object version,
Object object,
SharedSessionContractImplementor session)
Delete a persistent instance
|
int[] |
AbstractEntityPersister.findDirty(Object[] currentState,
Object[] previousState,
Object entity,
SharedSessionContractImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
int[] |
AbstractEntityPersister.findModified(Object[] old,
Object[] current,
Object entity,
SharedSessionContractImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
Object |
EntityPersister.forceVersionIncrement(Serializable id,
Object currentVersion,
SharedSessionContractImplementor session) |
Object |
AbstractEntityPersister.getCurrentVersion(Serializable id,
SharedSessionContractImplementor session)
Retrieve the version number
|
Object |
EntityPersister.getCurrentVersion(Serializable id,
SharedSessionContractImplementor session)
Get the current version of the object, or return null if there is no row for
the given identifier.
|
Object[] |
AbstractEntityPersister.getDatabaseSnapshot(Serializable id,
SharedSessionContractImplementor session) |
Object[] |
EntityPersister.getDatabaseSnapshot(Serializable id,
SharedSessionContractImplementor session)
Get the current database state of the object, in a "hydrated" form, without
resolving identifiers
|
Serializable |
AbstractEntityPersister.getIdByUniqueKey(Serializable key,
String uniquePropertyName,
SharedSessionContractImplementor session) |
Serializable |
EntityPersister.getIdentifier(Object object)
Deprecated.
|
IdentifierGenerator |
AbstractEntityPersister.getIdentifierGenerator() |
Object[] |
AbstractEntityPersister.getNaturalIdentifierSnapshot(Serializable id,
SharedSessionContractImplementor session) |
Object |
EntityPersister.getPropertyValue(Object object,
int i)
Get the value of a particular property
|
Object[] |
AbstractEntityPersister.getPropertyValuesToInsert(Object object,
Map mergeMap,
SharedSessionContractImplementor session) |
Object[] |
EntityPersister.getPropertyValuesToInsert(Object object,
Map mergeMap,
SharedSessionContractImplementor session)
Return the values of the insertable properties of the object (including backrefs)
|
Object |
EntityPersister.getVersion(Object object)
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
|
Object[] |
AbstractEntityPersister.hydrate(ResultSet rs,
Serializable id,
Object object,
Loadable rootLoadable,
String[][] suffixedPropertyColumns,
boolean allProperties,
SharedSessionContractImplementor session)
Unmarshal the fields of a persistent instance from a result set,
without resolving associations or collections.
|
Object[] |
Loadable.hydrate(ResultSet rs,
Serializable id,
Object object,
Loadable rootLoadable,
String[][] suffixedPropertyColumns,
boolean allProperties,
SharedSessionContractImplementor session)
Retrieve property values from one row of a result set
|
Serializable |
AbstractEntityPersister.insert(Object[] fields,
boolean[] notNull,
String sql,
Object object,
SharedSessionContractImplementor session)
Perform an SQL INSERT, and then retrieve a generated identifier.
|
Serializable |
AbstractEntityPersister.insert(Object[] fields,
Object object,
SharedSessionContractImplementor session) |
Serializable |
EntityPersister.insert(Object[] fields,
Object object,
SharedSessionContractImplementor session)
Persist an instance, using a natively generated identifier (optional operation)
|
void |
AbstractEntityPersister.insert(Serializable id,
Object[] fields,
boolean[] notNull,
int j,
String sql,
Object object,
SharedSessionContractImplementor session)
Perform an SQL INSERT.
|
void |
EntityPersister.insert(Serializable id,
Object[] fields,
Object object,
SharedSessionContractImplementor session)
Persist an instance
|
boolean |
DiscriminatorType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
Boolean |
AbstractEntityPersister.isTransient(Object entity,
SharedSessionContractImplementor session) |
Boolean |
EntityPersister.isTransient(Object object,
SharedSessionContractImplementor session)
Is this a new transient instance?
|
Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockMode lockMode,
SharedSessionContractImplementor session)
Load an instance of the persistent class.
|
default Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockMode lockMode,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
AbstractEntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
|
Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Load an instance of the persistent class.
|
Object |
AbstractEntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session,
Boolean readOnly) |
default Object |
EntityPersister.load(Serializable id,
Object optionalObject,
LockOptions lockOptions,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
AbstractEntityPersister.loadByUniqueKey(String propertyName,
Object uniqueKey,
SharedSessionContractImplementor session) |
void |
AbstractEntityPersister.lock(Serializable id,
Object version,
Object object,
LockMode lockMode,
SharedSessionContractImplementor session) |
void |
EntityPersister.lock(Serializable id,
Object version,
Object object,
LockMode lockMode,
SharedSessionContractImplementor session)
Do a version check (optional operation)
|
void |
AbstractEntityPersister.lock(Serializable id,
Object version,
Object object,
LockOptions lockOptions,
SharedSessionContractImplementor session) |
void |
EntityPersister.lock(Serializable id,
Object version,
Object object,
LockOptions lockOptions,
SharedSessionContractImplementor session)
Do a version check (optional operation)
|
Object |
DiscriminatorType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
DiscriminatorType.nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session,
Object owner) |
void |
DiscriminatorType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
DiscriminatorType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session) |
Object |
DiscriminatorType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
String |
DiscriminatorType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
void |
AbstractEntityPersister.update(Serializable id,
Object[] fields,
int[] dirtyFields,
boolean hasDirtyCollection,
Object[] oldFields,
Object oldVersion,
Object object,
Object rowId,
SharedSessionContractImplementor session)
Update an object
|
void |
EntityPersister.update(Serializable id,
Object[] fields,
int[] dirtyFields,
boolean hasDirtyCollection,
Object[] oldFields,
Object oldVersion,
Object object,
Object rowId,
SharedSessionContractImplementor session)
Update a persistent instance
|
boolean |
AbstractEntityPersister.update(Serializable id,
Object[] fields,
Object[] oldFields,
Object rowId,
boolean[] includeProperty,
int j,
Object oldVersion,
Object object,
String sql,
SharedSessionContractImplementor session) |
void |
AbstractEntityPersister.updateOrInsert(Serializable id,
Object[] fields,
Object[] oldFields,
Object rowId,
boolean[] includeProperty,
int j,
Object oldVersion,
Object object,
String sql,
SharedSessionContractImplementor session)
Perform an SQL UPDATE or SQL INSERT
|
Constructor and Description |
---|
AbstractEntityPersister(PersistentClass persistentClass,
EntityDataAccess cacheAccessStrategy,
NaturalIdDataAccess naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
JoinedSubclassEntityPersister(PersistentClass persistentClass,
EntityDataAccess cacheAccessStrategy,
NaturalIdDataAccess naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
SingleTableEntityPersister(PersistentClass persistentClass,
EntityDataAccess cacheAccessStrategy,
NaturalIdDataAccess naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
UnionSubclassEntityPersister(PersistentClass persistentClass,
EntityDataAccess cacheAccessStrategy,
NaturalIdDataAccess naturalIdRegionAccessStrategy,
PersisterCreationContext creationContext) |
Modifier and Type | Class and Description |
---|---|
class |
UnknownPersisterException
Indicates that the persister to use is not known and could not be determined.
|
Modifier and Type | Method and Description |
---|---|
CollectionPersister |
PersisterFactory.createCollectionPersister(Collection collectionBinding,
CollectionDataAccess cacheAccessStrategy,
PersisterCreationContext creationContext)
Create a collection persister instance.
|
EntityPersister |
PersisterFactory.createEntityPersister(PersistentClass entityBinding,
EntityDataAccess entityCacheAccessStrategy,
NaturalIdDataAccess 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 | Class and Description |
---|---|
class |
PropertyAccessBuildingException
Indicates a problem while building a PropertyAccess
|
class |
PropertyAccessException
Indicates a problem reading or writing value from/to a persistent property.
|
class |
PropertyAccessSerializationException |
Modifier and Type | Method and Description |
---|---|
Object |
LazyInitializer.getImplementation(SharedSessionContractImplementor session)
Return the underlying persistent object in the given session, or null if not contained in this session's
persistence context.
|
Object |
AbstractLazyInitializer.getImplementation(SharedSessionContractImplementor s) |
HibernateProxy |
ProxyFactory.getProxy(Serializable id,
SharedSessionContractImplementor 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(SharedSessionContractImplementor session)
Associate the proxy with the given session.
|
void |
AbstractLazyInitializer.setSession(SharedSessionContractImplementor s) |
Modifier and Type | Method and Description |
---|---|
void |
MapProxyFactory.postInstantiate(String entityName,
Class persistentClass,
Set interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType) |
Modifier and Type | Method and Description |
---|---|
HibernateProxy |
ByteBuddyProxyFactory.getProxy(Serializable id,
SharedSessionContractImplementor session) |
void |
ByteBuddyProxyFactory.postInstantiate(String entityName,
Class persistentClass,
Set<Class> interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType) |
Modifier and Type | Method and Description |
---|---|
HibernateProxy |
JavassistProxyFactory.getProxy(Serializable id,
SharedSessionContractImplementor session) |
void |
JavassistProxyFactory.postInstantiate(String entityName,
Class persistentClass,
Set<Class> interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
CompositeType componentIdType) |
Modifier and Type | Method and Description |
---|---|
Map<String,HibernateException> |
NamedQueryRepository.checkNamedQueries(QueryPlanCache queryPlanCache) |
Modifier and Type | Class and Description |
---|---|
class |
LocalSynchronizationException
Wraps an exception thrown from a "local synchronization" (one registered in the SynchronizationRegistry).
|
class |
NullSynchronizationException
Indicates an attempt to register a null synchronization.
|
class |
TransactionRequiredForJoinException
Indicates a call to
TransactionCoordinator.explicitJoin() that requires an
active transaction where there currently is none. |
Modifier and Type | Class and Description |
---|---|
class |
NoMoreReturnsException |
Modifier and Type | Class and Description |
---|---|
class |
IntegrationException |
Modifier and Type | Class and Description |
---|---|
class |
NullServiceException |
class |
UnknownServiceException
Indicates that an unknown service was requested from the registry.
|
class |
UnknownUnwrapTypeException |
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 |
SqlScriptParserException |
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,
SharedSessionContractImplementor session)
Generates an appropriate proxy representation of this entity for this
entity-mode.
|
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[] |
EntityTuplizer.getPropertyValuesToInsert(Object entity,
Map mergeMap,
SharedSessionContractImplementor session)
Extract the values of the insertable properties of the entity (including backrefs)
|
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 serialized/deserialized
|
Modifier and Type | Method and Description |
---|---|
Object |
EnumType.assemble(Serializable cached,
Object owner) |
Object |
AbstractStandardBasicType.assemble(Serializable cached,
SharedSessionContractImplementor session,
Object owner) |
Object |
AnyType.assemble(Serializable cached,
SharedSessionContractImplementor session,
Object owner) |
Object |
CollectionType.assemble(Serializable cached,
SharedSessionContractImplementor session,
Object owner) |
Object |
SpecialOneToOneType.assemble(Serializable oid,
SharedSessionContractImplementor session,
Object owner) |
Object |
ManyToOneType.assemble(Serializable oid,
SharedSessionContractImplementor session,
Object owner) |
Object |
AbstractType.assemble(Serializable cached,
SharedSessionContractImplementor session,
Object owner) |
Object |
OneToOneType.assemble(Serializable oid,
SharedSessionContractImplementor session,
Object owner) |
Object |
Type.assemble(Serializable cached,
SharedSessionContractImplementor session,
Object owner)
Reconstruct the object from its disassembled state.
|
Object |
ComponentType.assemble(Serializable object,
SharedSessionContractImplementor session,
Object owner) |
Object |
CompositeCustomType.assemble(Serializable cached,
SharedSessionContractImplementor session,
Object owner) |
Object |
EnumType.deepCopy(Object value) |
Object |
CollectionType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Object |
MetaType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Object |
Type.deepCopy(Object value,
SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at collections.
|
Object |
ComponentType.deepCopy(Object component,
SessionFactoryImplementor factory) |
Object |
CustomType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Object |
CompositeCustomType.deepCopy(Object value,
SessionFactoryImplementor factory) |
Serializable |
EnumType.disassemble(Object value) |
Serializable |
AbstractStandardBasicType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
AnyType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
CollectionType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
SpecialOneToOneType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
ManyToOneType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
AbstractType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
OneToOneType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
Type.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner)
Return a disassembled representation of the object.
|
Serializable |
ComponentType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
Serializable |
CompositeCustomType.disassemble(Object value,
SharedSessionContractImplementor session,
Object owner) |
boolean |
EnumType.equals(Object x,
Object y) |
Date |
TimestampType.fromStringValue(String xml) |
T |
AbstractStandardBasicType.fromStringValue(String xml) |
T |
SingleColumnType.fromStringValue(String xml) |
T |
StringRepresentableType.fromStringValue(String string)
Consume the given string representation back into this types java form.
|
Object |
CustomType.fromStringValue(String string) |
Object |
MetaType.fromXMLString(String xml,
Mapping factory) |
Object |
AbstractStandardBasicType.get(ResultSet rs,
String name,
SharedSessionContractImplementor session) |
Object |
SingleColumnType.get(ResultSet rs,
String name,
SharedSessionContractImplementor session)
Get a column value from a result set, without worrying about the possibility of null values.
|
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,
SharedSessionContractImplementor session) |
Object |
ComponentType.getPropertyValue(Object component,
int i) |
Object |
CompositeCustomType.getPropertyValue(Object component,
int i) |
Object |
ComponentType.getPropertyValue(Object component,
int i,
EntityMode entityMode) |
Object |
CompositeType.getPropertyValue(Object component,
int index,
SharedSessionContractImplementor session)
Extract a particular component property value indicated by index.
|
Object |
AnyType.getPropertyValue(Object component,
int i,
SharedSessionContractImplementor session) |
Object |
ComponentType.getPropertyValue(Object component,
int i,
SharedSessionContractImplementor session) |
Object |
CompositeCustomType.getPropertyValue(Object component,
int i,
SharedSessionContractImplementor 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[] |
ComponentType.getPropertyValues(Object component,
EntityMode entityMode) |
Object[] |
CompositeCustomType.getPropertyValues(Object component,
EntityMode entityMode) |
Object[] |
CompositeType.getPropertyValues(Object component,
SharedSessionContractImplementor session)
Extract the values of the component properties from the given component instance
|
Object[] |
AnyType.getPropertyValues(Object component,
SharedSessionContractImplementor session) |
Object[] |
ComponentType.getPropertyValues(Object component,
SharedSessionContractImplementor session) |
Object[] |
CompositeCustomType.getPropertyValues(Object component,
SharedSessionContractImplementor session) |
int |
EnumType.hashCode(Object x) |
Object |
AbstractStandardBasicType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
AnyType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
SpecialOneToOneType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
ManyToOneType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
AbstractType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
OneToOneType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
Type.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner)
Extract a value from the JDBC result set.
|
Object |
ComponentType.hydrate(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
ComponentType.instantiate(EntityMode entityMode)
This method does not populate the component parent
|
Object |
EmbeddedComponentType.instantiate(Object parent,
SharedSessionContractImplementor session) |
Object |
ComponentType.instantiate(Object parent,
SharedSessionContractImplementor session) |
PersistentCollection |
IdentifierBagType.instantiate(SharedSessionContractImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
CustomCollectionType.instantiate(SharedSessionContractImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
ArrayType.instantiate(SharedSessionContractImplementor session,
CollectionPersister persister,
Serializable key) |
PersistentCollection |
BagType.instantiate(SharedSessionContractImplementor session,
CollectionPersister persister,
Serializable key) |
boolean |
AnyType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
CollectionType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
MetaType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
ManyToOneType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
Type.isDirty(Object oldState,
Object currentState,
boolean[] checkable,
SharedSessionContractImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean |
ComponentType.isDirty(Object x,
Object y,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
CustomType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
CompositeCustomType.isDirty(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
CollectionType.isDirty(Object old,
Object current,
SharedSessionContractImplementor session) |
boolean |
ManyToOneType.isDirty(Object old,
Object current,
SharedSessionContractImplementor session) |
boolean |
AbstractType.isDirty(Object old,
Object current,
SharedSessionContractImplementor session) |
boolean |
Type.isDirty(Object old,
Object current,
SharedSessionContractImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean |
ComponentType.isDirty(Object x,
Object y,
SharedSessionContractImplementor 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 |
ComponentType.isEqual(Object x,
Object y) |
boolean |
CustomType.isEqual(Object x,
Object y) |
boolean |
CompositeCustomType.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 |
AnyType.isModified(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
CollectionType.isModified(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
ManyToOneType.isModified(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
AbstractType.isModified(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
Type.isModified(Object dbState,
Object currentState,
boolean[] checkable,
SharedSessionContractImplementor 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.SharedSessionContractImplementor) methods is that here we need to account for "partially" built values. |
boolean |
ComponentType.isModified(Object old,
Object current,
boolean[] checkable,
SharedSessionContractImplementor session) |
boolean |
AnyType.isSame(Object x,
Object y) |
boolean |
AbstractType.isSame(Object x,
Object y) |
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) |
Object |
EntityType.loadByUniqueKey(String entityName,
String uniqueKeyPropertyName,
Object key,
SharedSessionContractImplementor session)
Load an instance by a unique key that is not the primary key.
|
Object |
AnyType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
CollectionType.nullSafeGet(ResultSet rs,
String[] name,
SharedSessionContractImplementor session,
Object owner) |
Object |
MetaType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
Type.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner)
Extract a value of the
mapped class from the JDBC result set. |
Object |
ComponentType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
CompositeCustomType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
Object |
EntityType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner) |
T |
SingleColumnType.nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session)
Get a column value from a result set by name.
|
Object |
MetaType.nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session,
Object owner) |
Object |
Type.nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session,
Object owner)
Extract a value of the
mapped class from the JDBC result set. |
Object |
ComponentType.nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session,
Object owner) |
Object |
CompositeCustomType.nullSafeGet(ResultSet rs,
String columnName,
SharedSessionContractImplementor session,
Object owner) |
Object |
EntityType.nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session,
Object owner) |
void |
AnyType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
CollectionType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
MetaType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
Type.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor 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 |
ComponentType.nullSafeSet(PreparedStatement st,
Object value,
int begin,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
AbstractSingleColumnStandardBasicType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
CompositeCustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
boolean[] settable,
SharedSessionContractImplementor session) |
void |
EnumType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session) |
void |
AnyType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session) |
void |
CollectionType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session) |
void |
MetaType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session) |
void |
Type.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session)
Bind a value represented by an instance of the
mapped class to the JDBC prepared
statement. |
void |
ComponentType.nullSafeSet(PreparedStatement st,
Object value,
int begin,
SharedSessionContractImplementor session) |
void |
CompositeCustomType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session) |
protected String |
CollectionType.renderLoggableString(Object value,
SessionFactoryImplementor factory) |
protected String |
CustomCollectionType.renderLoggableString(Object value,
SessionFactoryImplementor factory) |
Object |
EnumType.replace(Object original,
Object target,
Object owner) |
Object |
AnyType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
Object |
CollectionType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
Object |
Type.replace(Object original,
Object target,
SharedSessionContractImplementor 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 |
ComponentType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
Object |
CustomType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
Object |
CompositeCustomType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
Object |
EntityType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache) |
Object |
AbstractType.replace(Object original,
Object target,
SharedSessionContractImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
Object |
Type.replace(Object original,
Object target,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor session,
Object owner,
Map copyCache,
ForeignKeyDirection foreignKeyDirection) |
Object |
MapType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SharedSessionContractImplementor session) |
Object |
CustomCollectionType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SharedSessionContractImplementor session) |
Object |
ArrayType.replaceElements(Object original,
Object target,
Object owner,
Map copyCache,
SharedSessionContractImplementor session) |
Object |
AbstractStandardBasicType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
AnyType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
CollectionType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
AbstractType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
Type.resolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
ComponentType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
EntityType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner)
Resolve an identifier or unique key value
|
Object |
CollectionType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner,
Boolean overridingEager) |
Object |
ManyToOneType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner,
Boolean overridingEager) |
default Object |
Type.resolve(Object value,
SharedSessionContractImplementor session,
Object owner,
Boolean overridingEager)
The second phase of 2-phase loading.
|
Object |
EntityType.resolve(Object value,
SharedSessionContractImplementor session,
Object owner,
Boolean overridingEager) |
protected Object |
EntityType.resolveIdentifier(Serializable id,
SharedSessionContractImplementor session) |
protected Object |
EntityType.resolveIdentifier(Serializable id,
SharedSessionContractImplementor session,
Boolean overridingEager)
Resolve an identifier via a load.
|
Object |
AbstractStandardBasicType.semiResolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
CollectionType.semiResolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
AbstractType.semiResolve(Object value,
SharedSessionContractImplementor session,
Object owner) |
Object |
Type.semiResolve(Object value,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor session,
Object owner) |
void |
AbstractStandardBasicType.set(PreparedStatement st,
T value,
int index,
SharedSessionContractImplementor session) |
void |
SingleColumnType.set(PreparedStatement st,
T value,
int index,
SharedSessionContractImplementor session)
Set a parameter value without worrying about the possibility of null
values.
|
void |
CompositeType.setPropertyValues(Object component,
Object[] values,
EntityMode entityMode)
Inject property values onto the given component instance
An optional operation
|
void |
ComponentType.setPropertyValues(Object component,
Object[] values,
EntityMode entityMode) |
void |
CompositeCustomType.setPropertyValues(Object component,
Object[] values,
EntityMode entityMode) |
String |
AnyType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CollectionType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
MetaType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
ArrayType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
Type.toLoggableString(Object value,
SessionFactoryImplementor factory)
Generate a representation of the value for logging purposes.
|
String |
ComponentType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CustomType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CompositeCustomType.toLoggableString(Object value,
SessionFactoryImplementor factory) |
String |
CustomType.toString(Object value) |
String |
SingleColumnType.toString(T value) |
String |
StringRepresentableType.toString(T value)
Render the value to the string representation.
|
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,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor 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(SharedSessionContractImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper
|
Object |
UserType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
Object |
CompositeUserType.nullSafeGet(ResultSet rs,
String[] names,
SharedSessionContractImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
void |
UserType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor session)
Write an instance of the mapped class to a prepared statement.
|
void |
CompositeUserType.nullSafeSet(PreparedStatement st,
Object value,
int index,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor 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 © 2001-2020 Red Hat, Inc. All Rights Reserved.