All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dream.template.session.SessionHolder Maven / Gradle / Ivy

package com.dream.template.session;

import com.dream.system.core.session.Session;

/**
 * SQL操作会话获取类
 */
public interface SessionHolder {
    /**
     * 获取SQL操作会话
     *
     * @return
     */
    Session getSession();

    /**
     * 判断是否开启事务
     *
     * @param session
     * @return
     */
    boolean isSessionTransactional(Session session);

    /**
     * 关闭会话
     *
     * @param session
     */
    void closeSession(Session session);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy