接口 HibernateOperations

    • 方法概要

      所有方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型方法说明
      intbulkUpdate​(String queryString)
      已过时。
      Update/delete all objects according to the given query.
      intbulkUpdate​(String queryString, Object value)
      已过时。
      Update/delete all objects according to the given query, binding one value to a "?"
      intbulkUpdate​(String queryString, Object... values)
      已过时。
      Update/delete all objects according to the given query, binding a number of values to "?"
      voidclear()
      已过时。
      Remove all objects from the Session cache, and cancel all pending saves, updates and deletes.
      voidcloseIterator​(Iterator<?> it)
      已过时。
      Immediately close an Iterator created by any of the various iterate(..) operations, instead of waiting until the session is closed or disconnected.
      booleancontains​(Object entity)
      已过时。
      Check whether the given object is in the Session cache.
      voiddelete​(Object entity)
      已过时。
      Delete the given persistent instance.
      voiddelete​(Object entity, LockMode lockMode)
      已过时。
      Delete the given persistent instance.
      voiddelete​(String entityName, Object entity)
      已过时。
      Delete the given persistent instance.
      voiddelete​(String entityName, Object entity, LockMode lockMode)
      已过时。
      Delete the given persistent instance.
      voiddeleteAll​(Collection<?> entities)
      已过时。
      Delete all given persistent instances.
      FilterenableFilter​(String filterName)
      已过时。
      Return an enabled Hibernate Filter for the given filter name.
      voidevict​(Object entity)
      已过时。
      Remove the given object from the Session cache.
      <T> Texecute​(HibernateCallback<T> action)
      已过时。
      Execute the action specified by the given action object within a Session.
      List<?>executeFind​(HibernateCallback<?> action)
      已过时。
      as of Spring 3.2.7, in favor of using a regular execute(org.springframework.orm.hibernate3.HibernateCallback<T>) call with a generic List type declared
      List<?>find​(String queryString)
      已过时。
      Execute an HQL query.
      List<?>find​(String queryString, Object value)
      已过时。
      Execute an HQL query, binding one value to a "?"
      List<?>find​(String queryString, Object... values)
      已过时。
      Execute an HQL query, binding a number of values to "?"
      List<?>findByCriteria​(DetachedCriteria criteria)
      已过时。
      Execute a query based on a given Hibernate criteria object.
      List<?>findByCriteria​(DetachedCriteria criteria, int firstResult, int maxResults)
      已过时。
      Execute a query based on the given Hibernate criteria object.
      <T> List<T>findByExample​(String entityName, T exampleEntity)
      已过时。
      Execute a query based on the given example entity object.
      <T> List<T>findByExample​(String entityName, T exampleEntity, int firstResult, int maxResults)
      已过时。
      Execute a query based on a given example entity object.
      <T> List<T>findByExample​(T exampleEntity)
      已过时。
      Execute a query based on the given example entity object.
      <T> List<T>findByExample​(T exampleEntity, int firstResult, int maxResults)
      已过时。
      Execute a query based on a given example entity object.
      List<?>findByNamedParam​(String queryString, String[] paramNames, Object[] values)
      已过时。
      Execute an HQL query, binding a number of values to ":" named parameters in the query string.
      List<?>findByNamedParam​(String queryString, String paramName, Object value)
      已过时。
      Execute an HQL query, binding one value to a ":" named parameter in the query string.
      List<?>findByNamedQuery​(String queryName)
      已过时。
      Execute a named query.
      List<?>findByNamedQuery​(String queryName, Object value)
      已过时。
      Execute a named query, binding one value to a "?"
      List<?>findByNamedQuery​(String queryName, Object... values)
      已过时。
      Execute a named query binding a number of values to "?"
      List<?>findByNamedQueryAndNamedParam​(String queryName, String[] paramNames, Object[] values)
      已过时。
      Execute a named query, binding a number of values to ":" named parameters in the query string.
      List<?>findByNamedQueryAndNamedParam​(String queryName, String paramName, Object value)
      已过时。
      Execute a named query, binding one value to a ":" named parameter in the query string.
      List<?>findByNamedQueryAndValueBean​(String queryName, Object valueBean)
      已过时。
      Execute a named query, binding the properties of the given bean to ":" named parameters in the query string.
      List<?>findByValueBean​(String queryString, Object valueBean)
      已过时。
      Execute an HQL query, binding the properties of the given bean to named parameters in the query string.
      voidflush()
      已过时。
      Flush all pending saves, updates and deletes to the database.
      <T> Tget​(Class<T> entityClass, Serializable id)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, or null if not found.
      <T> Tget​(Class<T> entityClass, Serializable id, LockMode lockMode)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, or null if not found.
      Objectget​(String entityName, Serializable id)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, or null if not found.
      Objectget​(String entityName, Serializable id, LockMode lockMode)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, or null if not found.
      voidinitialize​(Object proxy)
      已过时。
      Force initialization of a Hibernate proxy or persistent collection.
      Iterator<?>iterate​(String queryString)
      已过时。
      Execute a query for persistent instances.
      Iterator<?>iterate​(String queryString, Object value)
      已过时。
      Execute a query for persistent instances, binding one value to a "?"
      Iterator<?>iterate​(String queryString, Object... values)
      已过时。
      Execute a query for persistent instances, binding a number of values to "?"
      <T> Tload​(Class<T> entityClass, Serializable id)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, throwing an exception if not found.
      <T> Tload​(Class<T> entityClass, Serializable id, LockMode lockMode)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, throwing an exception if not found.
      voidload​(Object entity, Serializable id)
      已过时。
      Load the persistent instance with the given identifier into the given object, throwing an exception if not found.
      Objectload​(String entityName, Serializable id)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, throwing an exception if not found.
      Objectload​(String entityName, Serializable id, LockMode lockMode)
      已过时。
      Return the persistent instance of the given entity class with the given identifier, throwing an exception if not found.
      <T> List<T>loadAll​(Class<T> entityClass)
      已过时。
      Return all persistent instances of the given entity class.
      voidlock​(Object entity, LockMode lockMode)
      已过时。
      Obtain the specified lock level upon the given object, implicitly checking whether the corresponding database entry still exists.
      voidlock​(String entityName, Object entity, LockMode lockMode)
      已过时。
      Obtain the specified lock level upon the given object, implicitly checking whether the corresponding database entry still exists.
      <T> Tmerge​(String entityName, T entity)
      已过时。
      Copy the state of the given object onto the persistent object with the same identifier.
      <T> Tmerge​(T entity)
      已过时。
      Copy the state of the given object onto the persistent object with the same identifier.
      voidpersist​(Object entity)
      已过时。
      Persist the given transient instance.
      voidpersist​(String entityName, Object entity)
      已过时。
      Persist the given transient instance.
      voidrefresh​(Object entity)
      已过时。
      Re-read the state of the given persistent instance.
      voidrefresh​(Object entity, LockMode lockMode)
      已过时。
      Re-read the state of the given persistent instance.
      voidreplicate​(Object entity, ReplicationMode replicationMode)
      已过时。
      Persist the state of the given detached instance according to the given replication mode, reusing the current identifier value.
      voidreplicate​(String entityName, Object entity, ReplicationMode replicationMode)
      已过时。
      Persist the state of the given detached instance according to the given replication mode, reusing the current identifier value.
      Serializablesave​(Object entity)
      已过时。
      Persist the given transient instance.
      Serializablesave​(String entityName, Object entity)
      已过时。
      Persist the given transient instance.
      voidsaveOrUpdate​(Object entity)
      已过时。
      Save or update the given persistent instance, according to its id (matching the configured "unsaved-value"?).
      voidsaveOrUpdate​(String entityName, Object entity)
      已过时。
      Save or update the given persistent instance, according to its id (matching the configured "unsaved-value"?).
      voidupdate​(Object entity)
      已过时。
      Update the given persistent instance, associating it with the current Hibernate Session.
      voidupdate​(Object entity, LockMode lockMode)
      已过时。
      Update the given persistent instance, associating it with the current Hibernate Session.
      voidupdate​(String entityName, Object entity)
      已过时。
      Update the given persistent instance, associating it with the current Hibernate Session.
      voidupdate​(String entityName, Object entity, LockMode lockMode)
      已过时。
      Update the given persistent instance, associating it with the current Hibernate Session.