|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use HibernateException | |
| org.hibernate | This package defines the central Hibernate APIs. |
| org.hibernate.action | This package defines "actions" that are scheduled for asycnchronous execution by the event listeners. |
| org.hibernate.cache | This package defines APIs and implementations for the second-level cache and query cache. |
| org.hibernate.cache.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.classic | This package implements backward-compatibility with Hibernate 2.1 APIs now deprecated in Hibernate3. |
| org.hibernate.collection | This package defines a framework for collection wrappers. |
| org.hibernate.connection | This package abstracts the mechanism for obtaining a JDBC connection. |
| org.hibernate.context | |
| 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.engine | This package contains classes that are "shared" by other packages, and implementations of some key algorithms. |
| org.hibernate.engine.query | |
| org.hibernate.engine.transaction | |
| org.hibernate.event | This package defines an event framework for Hibernate. |
| org.hibernate.event.def | This package defines a default set of event listeners that implements the default behaviors of Hibernate. |
| org.hibernate.exception | This package is a fork of Apache commons-lang nestable exceptions. |
| org.hibernate.hql | This package defines the interface between Hibernate and the HQL query parser implementation (to allow switching between the 2.x and 3.0 HQL parsers). |
| org.hibernate.hql.ast | An ANTLR-based parser for Hibernate Query Language. |
| org.hibernate.hql.ast.exec | |
| org.hibernate.hql.classic | This package contains the Hibernate 2.x query parser which is being end-of-lifed. |
| org.hibernate.id | This package contains internal implementation classes for the main API interfaces. |
| org.hibernate.impl | This package contains implementations of the central Hibernate APIs, especially the Hibernate session. |
| org.hibernate.intercept | This package implements an interception mechanism for lazy property fetching, based on CGLIB bytecode instrumentation. |
| org.hibernate.jdbc | This package abstracts the mechanism for dispatching SQL statements to the database, and implements interaction with JDBC. |
| org.hibernate.jmx | This package exposes a Hibernate instance via JMX. |
| org.hibernate.loader | This package defines functionality for processing JDBC result sets and returning complex graphs of persistent objects. |
| org.hibernate.loader.collection | This package defines collection initializers |
| org.hibernate.loader.criteria | This package defines the criteria query compiler and loader |
| org.hibernate.loader.custom | This package defines a framework for custom loaders that accept handwritten SQL |
| org.hibernate.loader.custom.sql | |
| org.hibernate.loader.entity | This package defines entity loaders |
| org.hibernate.loader.hql | This package defines a loader for the AST-based query parser |
| org.hibernate.mapping | This package defines the Hibernate configuration-time metamodel. |
| org.hibernate.metadata | This package defines an API for accessing the Hibernate runtime metamodel. |
| org.hibernate.persister | A persister defines a mapping strategy for a collection or entity. |
| 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.pretty | Classes for pretty printing things for exception and log messages. |
| org.hibernate.property | This package abstracts the notion of a "property" of an entity. |
| org.hibernate.proxy | This package defines a framework for lazy-initializing entity proxies. |
| org.hibernate.proxy.dom4j | |
| org.hibernate.proxy.map | |
| org.hibernate.proxy.pojo.cglib | |
| org.hibernate.proxy.pojo.javassist | |
| org.hibernate.secure | Declarative security for CRUD operations on entities. |
| org.hibernate.tool.hbm2ddl | The hbm2ddl tool. |
| org.hibernate.transaction | This package abstracts the underlying transaction mechanism (JTA or JDBC) and provides strategies for obtaining application server TransactionManagers. |
| org.hibernate.tuple | This package defines a runtime metamodel for entities at the object level and abstracts the differences between the various entity modes. |
| 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.usertype | Interfaces for user-defined custom types. |
| org.hibernate.util | Utility classes. |
| Uses of HibernateException in org.hibernate |
| Subclasses of HibernateException in org.hibernate | |
class |
CallbackException
Should be thrown by persistent objects from Lifecycle or Interceptor callbacks. |
class |
DuplicateMappingException
Raised whenever a duplicate for a certain type occurs. |
class |
InstantiationException
Thrown if Hibernate can't instantiate an entity or component class at runtime. |
class |
InvalidMappingException
Thrown when a mapping is found to be invalid. |
class |
JDBCException
Wraps an SQLException. |
class |
LazyInitializationException
Indicates access to unfetched data outside of a session context. |
class |
MappingException
An exception that usually occurs at configuration time, rather than runtime, as a result of something screwy in the O-R mappings. |
class |
MappingNotFoundException
Thrown when a resource for a mapping could not be found. |
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 |
PersistentObjectException
Thrown when the user passes a persistent instance to a Session method that expects a transient instance. |
class |
PropertyAccessException
A problem occurred accessing a property of an instance of a persistent class by reflection, or via CGLIB. |
class |
PropertyNotFoundException
Indicates that an expected getter or setter method could not be found on a class. |
class |
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 |
SessionException
Thrown when the user calls a method of a Session that is in an
inappropropriate state for the given call (for example, the the session
is closed or disconnected). |
class |
StaleObjectStateException
A StaleStateException that carries information about a 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 |
TypeMismatchException
Used when a user provided type does not match the expected one |
class |
UnresolvableObjectException
Thrown when Hibernate could not resolve an object by id, especially when loading an association. |
class |
WrongClassException
Thrown when Session.load() selects a row with the given primary key (identifier value) but the row's discriminator value specifies a subclass that is not assignable to the class requested by the user. |
| Methods in org.hibernate that throw HibernateException | |
void |
Transaction.begin()
Begin a new transaction. |
void |
Transaction.commit()
Flush the associated Session and end the unit of work (unless we are in FlushMode.NEVER. |
void |
Transaction.rollback()
Force the underlying transaction to roll back. |
boolean |
Transaction.wasRolledBack()
Was this transaction rolled back or set to rollback only? This only accounts for actions initiated from this local transaction. |
boolean |
Transaction.wasCommitted()
Check if this transaction was successfully committed. |
boolean |
Transaction.isActive()
Is this transaction still active? Again, this only returns information in relation to the local transaction, not the actual underlying transaction. |
void |
Transaction.registerSynchronization(Synchronization synchronization)
Register a user synchronization callback for this transaction. |
SQLQuery |
StatelessSession.createSQLQuery(String queryString)
Create a new instance of SQLQuery for the given SQL query string. |
Session |
SessionFactory.openSession(Interceptor interceptor)
Create database connection and open a Session on it, specifying an interceptor. |
Session |
SessionFactory.openSession()
Create database connection and open a Session on it. |
Session |
SessionFactory.getCurrentSession()
Obtains the current session. |
ClassMetadata |
SessionFactory.getClassMetadata(Class persistentClass)
Get the ClassMetadata associated with the given entity class |
ClassMetadata |
SessionFactory.getClassMetadata(String entityName)
Get the ClassMetadata associated with the given entity name |
CollectionMetadata |
SessionFactory.getCollectionMetadata(String roleName)
Get the CollectionMetadata associated with the named collection role |
Map |
SessionFactory.getAllClassMetadata()
Get all ClassMetadata as a Map from entityname String to metadata object |
Map |
SessionFactory.getAllCollectionMetadata()
Get all CollectionMetadata as a Map from role name to metadata object |
void |
SessionFactory.close()
Destroy this SessionFactory and release all resources (caches, connection pools, etc). |
void |
SessionFactory.evict(Class persistentClass)
Evict all entries from the second-level cache. |
void |
SessionFactory.evict(Class persistentClass,
Serializable id)
Evict an entry from the second-level cache. |
void |
SessionFactory.evictEntity(String entityName)
Evict all entries from the second-level cache. |
void |
SessionFactory.evictEntity(String entityName,
Serializable id)
Evict an entry from the second-level cache. |
void |
SessionFactory.evictCollection(String roleName)
Evict all entries from the second-level cache. |
void |
SessionFactory.evictCollection(String roleName,
Serializable id)
Evict an entry from the second-level cache. |
void |
SessionFactory.evictQueries()
Evict any query result sets cached in the default query cache region. |
void |
SessionFactory.evictQueries(String cacheRegion)
Evict any query result sets cached in the named query cache region. |
FilterDefinition |
SessionFactory.getFilterDefinition(String filterName)
Obtain the definition of a filter by name. |
void |
Session.flush()
Force this session to flush. |
Connection |
Session.connection()
Get the JDBC connection of this Session. If the session is using aggressive collection release (as in a CMT environment), it is the application's responsibility to close the connection returned by this call. |
Connection |
Session.close()
End the session by releasing the JDBC connection and cleaning up. |
void |
Session.cancelQuery()
Cancel the execution of the current query. |
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? |
Serializable |
Session.getIdentifier(Object object)
Return the identifier value of the given entity as associated with this session. |
void |
Session.evict(Object object)
Remove this instance from the session cache. |
Object |
Session.load(Class theClass,
Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode, assuming the instance exists. |
Object |
Session.load(String entityName,
Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode, assuming the instance exists. |
Object |
Session.load(Class theClass,
Serializable id)
Return the persistent instance of the given entity class with the given identifier, assuming that the instance exists. |
Object |
Session.load(String entityName,
Serializable id)
Return the persistent instance of the given entity class with the given identifier, assuming that the instance exists. |
void |
Session.load(Object object,
Serializable id)
Read the persistent state associated with the given identifier into the given transient instance. |
void |
Session.replicate(Object object,
ReplicationMode replicationMode)
Persist the state of the given detached instance, reusing the current identifier value. |
void |
Session.replicate(String entityName,
Object object,
ReplicationMode replicationMode)
Persist the state of the given detached instance, reusing the current identifier value. |
Serializable |
Session.save(Object object)
Persist the given transient instance, first assigning a generated identifier. |
Serializable |
Session.save(String entityName,
Object object)
Persist the given transient instance, first assigning a generated identifier. |
void |
Session.saveOrUpdate(Object object)
Either Session.save(Object) or Session.update(Object) the given
instance, depending upon resolution of the unsaved-value checks (see the
manual for discussion of unsaved-value checking). |
void |
Session.saveOrUpdate(String entityName,
Object object)
Either Session.save(String, Object) or Session.update(String, Object)
the given instance, depending upon resolution of the unsaved-value checks
(see the manual for discussion of unsaved-value checking). |
void |
Session.update(Object object)
Update the persistent instance with the identifier of the given detached instance. |
void |
Session.update(String entityName,
Object object)
Update the persistent instance with the identifier of the given detached instance. |
Object |
Session.merge(Object object)
Copy the state of the given object onto the persistent object with the same identifier. |
Object |
Session.merge(String entityName,
Object object)
Copy the state of the given object onto the persistent object with the same identifier. |
void |
Session.persist(Object object)
Make a transient instance persistent. |
void |
Session.persist(String entityName,
Object object)
Make a transient instance persistent. |
void |
Session.delete(Object object)
Remove a persistent instance from the datastore. |
void |
Session.delete(String entityName,
Object object)
Remove a persistent instance from the datastore. |
void |
Session.lock(Object object,
LockMode lockMode)
Obtain the specified lock level upon the given object. |
void |
Session.lock(String entityName,
Object object,
LockMode lockMode)
Obtain the specified lock level upon the given object. |
void |
Session.refresh(Object object)
Re-read the state of the given instance from the underlying database. |
void |
Session.refresh(Object object,
LockMode lockMode)
Re-read the state of the given instance from the underlying database, with the given LockMode. |
LockMode |
Session.getCurrentLockMode(Object object)
Determine the current lock mode of the given object. |
Transaction |
Session.beginTransaction()
Begin a unit of work and return the associated Transaction object. |
Query |
Session.createQuery(String queryString)
Create a new instance of Query for the given HQL query string. |
SQLQuery |
Session.createSQLQuery(String queryString)
Create a new instance of SQLQuery for the given SQL query string. |
Query |
Session.createFilter(Object collection,
String queryString)
Create a new instance of Query for the given collection and filter string. |
Query |
Session.getNamedQuery(String queryName)
Obtain an instance of Query for a named query string defined in the mapping file. |
Object |
Session.get(Class clazz,
Serializable id)
Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance. |
Object |
Session.get(Class clazz,
Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance. |
Object |
Session.get(String entityName,
Serializable id)
Return the persistent instance of the given named entity with the given identifier, or null if there is no such persistent instance. |
Object |
Session.get(String entityName,
Serializable id,
LockMode lockMode)
Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance. |
String |
Session.getEntityName(Object object)
Return the entity name for a persistent entity |
Connection |
Session.disconnect()
Disconnect the Session from the current JDBC connection. |
void |
Session.reconnect()
Deprecated. Manual reconnection is only needed in the case of application-supplied connections, in which case the Session.reconnect(java.sql.Connection) for should be used. |
void |
Session.reconnect(Connection connection)
Reconnect to the given JDBC connection. |
boolean |
ScrollableResults.next()
Advance to the next result |
boolean |
ScrollableResults.previous()
Retreat to the previous result |
boolean |
ScrollableResults.scroll(int i)
Scroll an arbitrary number of locations |
boolean |
ScrollableResults.last()
Go to the last result |
boolean |
ScrollableResults.first()
Go to the first result |
void |
ScrollableResults.beforeFirst()
Go to a location just before first result (this is the initial location) |
void |
ScrollableResults.afterLast()
Go to a location just after the last result |
boolean |
ScrollableResults.isFirst()
Is this the first result? |
boolean |
ScrollableResults.isLast()
Is this the last result? |
void |
ScrollableResults.close()
Release resources immediately. |
Object[] |
ScrollableResults.get()
Get the current row of results |
Object |
ScrollableResults.get(int i)
Get the ith object in the current row of results, without initializing any other results in the row. |
Integer |
ScrollableResults.getInteger(int col)
Convenience method to read an integer |
Long |
ScrollableResults.getLong(int col)
Convenience method to read a long |
Float |
ScrollableResults.getFloat(int col)
Convenience method to read a float |
Boolean |
ScrollableResults.getBoolean(int col)
Convenience method to read a boolean |
Double |
ScrollableResults.getDouble(int col)
Convenience method to read a double |
Short |
ScrollableResults.getShort(int col)
Convenience method to read a short |
Byte |
ScrollableResults.getByte(int col)
Convenience method to read a byte |
Character |
ScrollableResults.getCharacter(int col)
Convenience method to read a character |
byte[] |
ScrollableResults.getBinary(int col)
Convenience method to read a binary |
String |
ScrollableResults.getText(int col)
Convenience method to read text |
Blob |
ScrollableResults.getBlob(int col)
Convenience method to read a blob |
Clob |
ScrollableResults.getClob(int col)
Convenience method to read a clob |
String |
ScrollableResults.getString(int col)
Convenience method to read a string |
BigDecimal |
ScrollableResults.getBigDecimal(int col)
Convenience method to read a big_decimal |
BigInteger |
ScrollableResults.getBigInteger(int col)
Convenience method to read a big_integer |
Date |
ScrollableResults.getDate(int col)
Convenience method to read a date, time or timestamp |
Locale |
ScrollableResults.getLocale(int col)
Convenience method to read a locale |
Calendar |
ScrollableResults.getCalendar(int col)
Convenience method to read a calendar or calendar_date |
TimeZone |
ScrollableResults.getTimeZone(int col)
Convenience method to read a timezone |
int |
ScrollableResults.getRowNumber()
Get the current location in the result set. |
boolean |
ScrollableResults.setRowNumber(int rowNumber)
Set the current location in the result set, numbered from either the first row (row number 0), or the last row (row number -1). |
Type[] |
Query.getReturnTypes()
Return the Hibernate types of the query result set. |
String[] |
Query.getReturnAliases()
Return the HQL select clause aliases (if any) |
String[] |
Query.getNamedParameters()
Return the names of all named parameters of the query. |
Iterator |
Query.iterate()
Return the query results as an Iterator. |
ScrollableResults |
Query.scroll()
Return the query results as ScrollableResults. |
ScrollableResults |
Query.scroll(ScrollMode scrollMode)
Return the query results as ScrollableResults. |
List |
Query.list()
Return the query results as a List. |
Object |
Query.uniqueResult()
Convenience method to return a single instance that matches the query, or null if the query returns no results. |
int |
Query.executeUpdate()
Execute the update or delete statement. |
Query |
Query.setParameter(int position,
Object val)
Bind a value to a JDBC-style query parameter. |
Query |
Query.setParameter(String name,
Object val)
Bind a value to a named query parameter. |
Query |
Query.setParameters(Object[] values,
Type[] types)
Bind values and types to positional parameters. |
Query |
Query.setParameterList(String name,
Collection vals,
Type type)
Bind multiple values to a named query parameter. |
Query |
Query.setParameterList(String name,
Collection vals)
Bind multiple values to a named query parameter. |
Query |
Query.setParameterList(String name,
Object[] vals,
Type type)
Bind multiple values to a named query parameter. |
Query |
Query.setParameterList(String name,
Object[] vals)
Bind multiple values to a named query parameter. |
Query |
Query.setProperties(Object bean)
Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using hueristics. |
Query |
Query.setProperties(Map bean)
Bind the values of the given Map for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using hueristics. |
static Type |
Hibernate.custom(Class userTypeClass)
A Hibernate custom type. |
static Type |
Hibernate.custom(Class userTypeClass,
String[] parameterNames,
String[] parameterValues)
A Hibernate parameterizable custom type. |
static Type |
Hibernate.custom(Class userTypeClass,
Properties parameters)
A Hibernate parameterizable custom type. |
static void |
Hibernate.initialize(Object proxy)
Force initialization of a proxy or persistent collection. |
static void |
Hibernate.close(Iterator iterator)
Close an Iterator created by iterate() immediately, instead of waiting until the session is closed or disconnected. |
void |
Filter.validate()
Perform validation of the filter state. |
Criteria |
Criteria.setFetchMode(String associationPath,
FetchMode mode)
Specify an association fetching strategy for an association or a collection of values. |
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)
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)
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)
Create a new Criteria, "rooted" at the associated entity, assigning the given alias and using the specified join type. |
List |
Criteria.list()
Get the results. |
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. |
Object |
Criteria.uniqueResult()
Convenience method to return a single instance that matches the query, or null if the query returns no results. |
static ConnectionReleaseMode |
ConnectionReleaseMode.parse(String modeName)
Determine the correct ConnectionReleaseMode instance based on the given name. |
| Uses of HibernateException in org.hibernate.action |
| Methods in org.hibernate.action that throw HibernateException | |
void |
Executable.beforeExecutions()
Called before executing any actions |
void |
Executable.execute()
Execute this action |
void |
Executable.afterTransactionCompletion(boolean success)
Called after the transaction completes |
void |
EntityUpdateAction.execute()
|
void |
EntityInsertAction.execute()
|
void |
EntityInsertAction.afterTransactionCompletion(boolean success)
|
void |
EntityIdentityInsertAction.execute()
|
void |
EntityIdentityInsertAction.afterTransactionCompletion(boolean success)
|
void |
EntityDeleteAction.execute()
|
void |
EntityDeleteAction.afterTransactionCompletion(boolean success)
|
void |
CollectionUpdateAction.execute()
|
void |
CollectionRemoveAction.execute()
|
void |
CollectionRecreateAction.execute()
|
void |
BulkOperationCleanupAction.afterTransactionCompletion(boolean success)
|
void |
BulkOperationCleanupAction.beforeExecutions()
|
void |
BulkOperationCleanupAction.execute()
|
| Constructors in org.hibernate.action that throw HibernateException | |
EntityUpdateAction(Serializable id,
Object[] state,
int[] dirtyProperties,
boolean hasDirtyCollection,
Object[] previousState,
Object previousVersion,
Object nextVersion,
Object instance,
Object rowId,
EntityPersister persister,
SessionImplementor session)
|
|
EntityInsertAction(Serializable id,
Object[] state,
Object instance,
Object version,
EntityPersister persister,
SessionImplementor session)
|
|
EntityIdentityInsertAction(Object[] state,
Object instance,
EntityPersister persister,
SessionImplementor session,
boolean isDelayed)
|
|
| Uses of HibernateException in org.hibernate.cache |
| Subclasses of HibernateException in org.hibernate.cache | |
class |
CacheException
Something went wrong in the cache |
class |
NoCachingEnabledException
Implementation of NoCachingEnabledException. |
| Methods in org.hibernate.cache that throw HibernateException | |
boolean |
UpdateTimestampsCache.isUpToDate(Set spaces,
Long timestamp)
|
QueryCache |
StandardQueryCacheFactory.getQueryCache( |