| Modifier and Type | Method and Description |
|---|---|
| public Query | createSQLQuery(String
a query expressed in SQL sql, String a table alias that appears inside {} in the SQL string returnAlias, Class<T> the returned persistent class returnClass)
Deprecated
use
Create a new instance of Query for the given SQL string.
org. or org. variants
instead to define the alias/class
|
| public Query | createSQLQuery(String
a query expressed in SQL sql, String[] an array of table aliases that appear inside {} in the SQL string returnAliases, Class<T>[] the returned persistent classes returnClasses)
Deprecated
use
Create a new instance of Query for the given SQL string.
org. or org. variants
instead to define the aliases/classes
|
| public int | |
| public int | |
| public int | Returns: the number of instances deletedthe query string query, Object[] a list of values to be written to "?" placeholders in the query. values, Type[] a list of Hibernate types of the values types)
Deprecated
consider using HQL delete statements
Delete all objects returned by the query.
|
| public Collection | Returns: Collection the resulting collectiona persistent collection to filter collection, String a filter query string filter)
Deprecated
use
Apply a filter to a persistent collection.
createFilter(Object, String).
|
| public Collection | Returns: Collectiona persistent collection to filter collection, String a filter query string filter, Object a value to be witten to a "?" placeholder in the query string value, Type the hibernate type of value type)
Deprecated
use
Apply a filter to a persistent collection.
createFilter(Object, String).setXYZ.
|
| public Collection | Returns: Collectiona persistent collection to filter collection, String a filter query string filter, Object[] a list of values to be written to "?" placeholders in the query values, Type[] a list of Hibernate types of the values types)
Deprecated
use
Apply a filter to a persistent collection.
createFilter(Object, String).setXYZ.
|
| public List | Returns: a distinct list of instances (or arrays of instances)a query expressed in Hibernate's query language query)
Deprecated
use
Execute a query.
createQuery.Query#list()
|
| public List | Returns: a distinct list of instances (or arrays of instances)the query string query, Object a value to be bound to a "?" placeholder (JDBC IN parameter). value, Type the Hibernate type of the value type)
Deprecated
use
Execute a query with bind parameters, binding a value to a "?" parameter
in the query string.
createQuery.setXYZ.Query#list()
|
| public List | Returns: a distinct list of instancesthe query string query, Object[] an array of values to be bound to the "?" placeholders (JDBC IN parameters). values, Type[] an array of Hibernate types of the values types)
Deprecated
use
Execute a query with bind parameters, binding an array of values to "?"
parameters in the query string.
createQuery.setXYZ.Query#list()
|
| public Iterator | Returns: an iteratorthe query string query)
Deprecated
use
Execute a query and return the results in an iterator.
createQuery.Query#iterate
|
| public Iterator | Returns: an iteratorthe query string query, Object a value to be witten to a "?" placeholder in the query string value, Type the hibernate type of value type)
Deprecated
use
Execute a query and return the results in an iterator.
createQuery.setXYZ.Query#iterate
|
| public Iterator | Returns: an iteratorthe query string query, Object[] a list of values to be written to "?" placeholders in the query values, Type[] a list of Hibernate types of the values types)
Deprecated
use
Execute a query and return the results in an iterator.
createQuery.setXYZ.Query#iterate
|
| public void | save(Object
a transient instance of a persistent class object, Serializable an unused valid identifier id)
Deprecated
declare identifier properties for all classes
Persist the given transient instance, using the given identifier.
|
| public void | save(String entityName, Object
a transient instance of a persistent class object, Serializable an unused valid identifier id)
Deprecated
declare identifier properties for all classes
Persist the given transient instance, using the given identifier.
|
| public Object | Returns: an updated persistent instancea transient instance with state to be copied object)
Deprecated
use
Copy the state of the given object onto the persistent object with the same
identifier.
org.
|
| public Object | Returns: an updated persistent instancea persistent or transient instance with state to be copied object, Serializable the identifier of the instance to copy to id)
Deprecated
with no replacement
Copy the state of the given object onto the persistent object with the
given identifier.
|
| public Object | Returns: an updated persistent instancea transient instance with state to be copied object)
Deprecated
use
Copy the state of the given object onto the persistent object with the same
identifier.
org.
|
| public Object | Returns: an updated persistent instancea persistent or transient instance with state to be copied object, Serializable the identifier of the instance to copy to id)
Deprecated
with no replacement
Copy the state of the given object onto the persistent object with the
given identifier.
|
| public void | update(Object
a detached instance containing updated state object, Serializable identifier of persistent instance id)
Deprecated
declare identifier properties for all classes
Update the persistent state associated with the given identifier.
|
| public void | update(String entityName, Object
a detached instance containing updated state object, Serializable identifier of persistent instance id)
Deprecated
declare identifier properties for all classes
Update the persistent state associated with the given identifier.
|
| createSQLQuery | back to summary |
|---|---|
| public Query createSQLQuery(String sql, String returnAlias, Class<T> returnClass)
Deprecated use Create a new instance of Query for the given SQL string.
Returned instances should all be
| |
| createSQLQuery | back to summary |
|---|---|
| public Query createSQLQuery(String sql, String[] returnAliases, Class<T>[] returnClasses)
Deprecated use Create a new instance of Query for the given SQL string.
Returned instances should all be
| |
| delete | back to summary |
|---|---|
| public int delete(String query) throws HibernateException
Deprecated consider using HQL delete statements Delete all objects returned by the query. Return the number of objects deleted.
Note that this is very different from the delete-statement support added in HQL
since 3.1. The functionality here is to actually peform the query and then iterate
the results calling
| |
| delete | back to summary |
|---|---|
| public int delete(String query, Object value, Type type) throws HibernateException
Deprecated consider using HQL delete statements Delete all objects returned by the query. Return the number of objects deleted.
Note that this is very different from the delete-statement support added in HQL
since 3.1. The functionality here is to actually peform the query and then iterate
the results calling | |
| delete | back to summary |
|---|---|
| public int delete(String query, Object[] values, Type[] types) throws HibernateException
Deprecated consider using HQL delete statements Delete all objects returned by the query. Return the number of objects deleted.
Note that this is very different from the delete-statement support added in HQL
since 3.1. The functionality here is to actually peform the query and then iterate
the results calling | |
| filter | back to summary |
|---|---|
| public Collection Deprecated Apply a filter to a persistent collection. A filter is a Hibernate query that may refer to this, the collection element. Filters allow efficient access to very large lazy collections. (Executing the filter does not initialize the collection.)
| |
| filter | back to summary |
|---|---|
| public Collection Deprecated use Apply a filter to a persistent collection. A filter is a Hibernate query that may refer to this, the collection element.
| |
| filter | back to summary |
|---|---|
| public Collection Deprecated use Apply a filter to a persistent collection. Bind the given parameters to "?" placeholders. A filter is a Hibernate query that may refer to this, the collection element.
| |
| find | back to summary |
|---|---|
| public List Deprecated Execute a query. | |
| find | back to summary |
|---|---|
| public List Deprecated use Execute a query with bind parameters, binding a value to a "?" parameter in the query string.
| |
| find | back to summary |
|---|---|
| public List Deprecated use Execute a query with bind parameters, binding an array of values to "?" parameters in the query string.
| |
| iterate | back to summary |
|---|---|
| public Iterator Deprecated Execute a query and return the results in an iterator. If the query has multiple
return values, values will be returned in an array of type Object[]. | |
| iterate | back to summary |
|---|---|
| public Iterator Deprecated use Execute a query and return the results in an iterator. Write the given value to "?"
in the query string. If the query has multiple return values, values will be returned
in an array of type Object[]. | |
| iterate | back to summary |
|---|---|
| public Iterator Deprecated use Execute a query and return the results in an iterator. Write the given values to "?"
in the query string. If the query has multiple return values, values will be returned
in an array of type Object[]. | |
| save | back to summary |
|---|---|
| public void save(Object object, Serializable id) throws HibernateException
Deprecated declare identifier properties for all classes Persist the given transient instance, using the given identifier. This operation cascades to associated instances if the association is mapped with cascade="save-update".
| |
| save | back to summary |
|---|---|
| public void save(String entityName, Object object, Serializable id) throws HibernateException
Deprecated declare identifier properties for all classes Persist the given transient instance, using the given identifier. This operation cascades to associated instances if the association is mapped with cascade="save-update".
| |
| saveOrUpdateCopy | back to summary |
|---|---|
| public Object saveOrUpdateCopy(Object object) throws HibernateException
Deprecated Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved or does not exist in the database, save it and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session. | |
| saveOrUpdateCopy | back to summary |
|---|---|
| public Object saveOrUpdateCopy(Object object, Serializable id) throws HibernateException
Deprecated with no replacement Copy the state of the given object onto the persistent object with the given identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If there is no database row with the given identifier, save the given instance and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session.
| |
| saveOrUpdateCopy | back to summary |
|---|---|
| public Object saveOrUpdateCopy(String entityName, Object object) throws HibernateException
Deprecated Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved or does not exist in the database, save it and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session. | |
| saveOrUpdateCopy | back to summary |
|---|---|
| public Object saveOrUpdateCopy(String entityName, Object object, Serializable id) throws HibernateException
Deprecated with no replacement Copy the state of the given object onto the persistent object with the given identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If there is no database row with the given identifier, save the given instance and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session.
| |
| update | back to summary |
|---|---|
| public void update(Object object, Serializable id) throws HibernateException
Deprecated declare identifier properties for all classes Update the persistent state associated with the given identifier. An exception is thrown if there is a persistent instance with the same identifier in the current session. This operation cascades to associated instances if the association is mapped with cascade="save-update".
| |
| update | back to summary |
|---|---|
| public void update(String entityName, Object object, Serializable id) throws HibernateException
Deprecated declare identifier properties for all classes Update the persistent state associated with the given identifier. An exception is thrown if there is a persistent instance with the same identifier in the current session. This operation cascades to associated instances if the association is mapped with cascade="save-update".
| |