use of org.eweb4j.orm.dao.config.bean.DBInfoConfigBean in project eweb4j-framework by laiweiwei.
the class DAOFactory method getSelectDAO.
public static SelectDAO getSelectDAO() {
DataSource ds = DataSourceWrapCache.get();
DBInfoConfigBean dcb = DBInfoConfigBeanCache.get();
return new SelectDAOImpl(ds, dcb.getDataBaseType());
}
use of org.eweb4j.orm.dao.config.bean.DBInfoConfigBean in project eweb4j-framework by laiweiwei.
the class DAOFactory method getDivPageDAO.
public static DivPageDAO getDivPageDAO() {
DataSource ds = DataSourceWrapCache.get();
DBInfoConfigBean dcb = DBInfoConfigBeanCache.get();
return new DivPageDAOImpl(ds, dcb.getDataBaseType());
}
use of org.eweb4j.orm.dao.config.bean.DBInfoConfigBean in project eweb4j-framework by laiweiwei.
the class CheckConfigBean method checkORMDBInfo.
/**
* Check the IOC component DBInfo part configuration
*
* @param dcb
* @return
*/
public static String checkORMDBInfo(DBInfoConfigBean dcb, String filePath) {
String error = null;
ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigBean.class.getName());
if ("true".equals(cb.getOrm().getOpen()) || "1".equals(cb.getOrm().getOpen())) {
StringBuilder sb = new StringBuilder();
if (!"".equals(sb.toString())) {
error = "\n<br /><b>" + filePath + ":</b>\n" + sb.toString();
}
}
return error;
}
Aggregations