接口 HibernateCallback<T>

  • 类型参数:
    T - the result type
    函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface HibernateCallback<T>
    Callback interface for Hibernate code. To be used with HibernateTemplate's execution methods, often as anonymous classes within a method implementation. A typical implementation will call Session.load/find/update to perform some operations on persistent objects.
    从以下版本开始:
    4.2
    作者:
    Juergen Hoeller
    另请参阅:
    HibernateTemplate, HibernateTransactionManager
    • 方法详细资料