com.openthinks.libs.sql.dhibernate.support.DefaultSessionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openlibs.sql Show documentation
Show all versions of openlibs.sql Show documentation
The lib of java database ORM simple implementation.
The newest version!
package com.openthinks.libs.sql.dhibernate.support;
import com.openthinks.libs.sql.dao.BaseDao;
import com.openthinks.libs.sql.lang.Configurator;
/**
* 默认实现的Session类
* Date: 17:20 2010/11/19
* @author dmj
*/
class DefaultSessionImpl extends AbstractSession {
private final BaseDao baseDao;
public DefaultSessionImpl() {
baseDao = new SessionDaoImpl();
}
public DefaultSessionImpl(Configurator configurator) {
baseDao = new SessionDaoImpl();
baseDao.setConfigurator(configurator);
}
@Override
public BaseDao getBaseDao() {
return baseDao;
}
@Override
protected void setAutoClose(Boolean autoClose) {
super.setAutoClose(autoClose);
((SessionDaoImpl) this.getBaseDao()).setAutoClose(autoClose);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy