From b120ff61bb9dcfb21c36bee83273b8fad7c5dfe8 Mon Sep 17 00:00:00 2001 From: qinoy Date: Mon, 13 Nov 2023 10:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E6=B8=85=E5=8D=95=20?= =?UTF-8?q?=E8=A1=A5=E6=8F=90=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dao/factory/ProcessListDaoFactory.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/dao/factory/ProcessListDaoFactory.java diff --git a/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/dao/factory/ProcessListDaoFactory.java b/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/dao/factory/ProcessListDaoFactory.java new file mode 100644 index 00000000..dac81da2 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.processlist/src/com/actionsoft/apps/coe/pal/processlist/dao/factory/ProcessListDaoFactory.java @@ -0,0 +1,28 @@ +package com.actionsoft.apps.coe.pal.processlist.dao.factory; + +import com.actionsoft.apps.coe.pal.processlist.constant.ProcessListConstant; +import com.actionsoft.apps.coe.pal.processlist.dao.ProcessListExportDao; +import com.actionsoft.bpms.commons.database.DaoFactory; +import com.actionsoft.bpms.server.conf.server.AWSServerConf; +import com.actionsoft.bpms.util.ClassReflect; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class ProcessListDaoFactory extends DaoFactory { + + private static final Logger LOGGER = LoggerFactory.getLogger(ProcessListDaoFactory.class); + + private static final String DAO_ADAPTER_CLASSPATH = "com.actionsoft.apps.coe.pal.processlist.dao.adapter."; + + public static String EXPORT_DAO_ADAPTER = "ExportDaoAdapter"; + + public static ProcessListExportDao createExportDao() { + try { + Class c = ClassReflect.forName(DAO_ADAPTER_CLASSPATH + AWSServerConf.getDatabaseProvider() + "." + EXPORT_DAO_ADAPTER, ProcessListConstant.PROCESSLIST); + return (ProcessListExportDao) create(c); + } catch (ClassNotFoundException e) { + LOGGER.error(e.getMessage(), e); + } + return null; + } +}