public abstract class AbstractJdbcSessionMgr extends AbstractSessionMgr<Connection>
SessionMgr 抽象基类configFile, defaultTransIsoLevel, localSession| 构造器和说明 |
|---|
AbstractJdbcSessionMgr() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beginTransaction()
开始事务
|
void |
closeSession()
关闭数据库连接对象
|
void |
commit()
提交事务
|
protected abstract String |
getDefaultConfigFile()
获取默认配置文件
|
protected abstract Connection |
getInternalConnection()
获取内部的
Connection 对象(实际的获取工作由子类实现) |
Connection |
getSession()
获取数据库连接对象
|
protected boolean |
isXmlConfigFile() |
protected void |
loadDefalutTransIsoLevel()
|
protected void |
parseConfigFile(String configFile) |
void |
rollback()
回滚事务
|
void |
setSessionTransIsoLevel(TransIsoLevel level)
|
currentSession, getConfigFile, getDefalutTransIsoLevel, isInvoking, setInvoking, unInitializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected abstract String getDefaultConfigFile()
protected abstract Connection getInternalConnection() throws SQLException
Connection 对象(实际的获取工作由子类实现)SQLExceptionprotected void loadDefalutTransIsoLevel()
public void setSessionTransIsoLevel(TransIsoLevel level)
public void beginTransaction()
SessionMgrpublic void commit()
SessionMgrpublic void rollback()
SessionMgrpublic final Connection getSession()
public void closeSession()
SessionMgrprotected void parseConfigFile(String configFile) throws FileNotFoundException
protected boolean isXmlConfigFile()
Copyright © 2015 JessMA Open Source. All rights reserved.