Package com.eka.middleware.adapter
Class SQL
java.lang.Object
com.eka.middleware.adapter.SQL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
commitTransaction
(Connection myCon) static Savepoint
createSavepoint
(Connection myCon, String savePointName) static Boolean
DDL
(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) static int
DML
(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) static String[]
DML_RGKs
(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) DQL
(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) static Connection
getConnection
(String jdbcConnection, DataPipeline dp) static void
rollbackTransaction
(Connection myCon) static void
rollbackTransaction
(Connection myCon, Savepoint savepoint) static Connection
setTransactionIsolationLevel
(Connection connection, int isolationLevel) static Connection
startTransaction
(String jdbcConnection, DataPipeline dp)
-
Constructor Details
-
SQL
public SQL()
-
-
Method Details
-
DQL
public static List<Map<String,Object>> DQL(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) throws Exception- Throws:
Exception
-
DML
public static int DML(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) throws Exception- Throws:
Exception
-
DML_RGKs
public static String[] DML_RGKs(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) throws Exception- Throws:
Exception
-
DDL
public static Boolean DDL(String sqlCode, List<Map<String, Object>> sqlParameters, Connection myCon, DataPipeline dp, boolean logQuery) throws Exception- Throws:
Exception
-
startTransaction
- Throws:
Exception
-
setTransactionIsolationLevel
public static Connection setTransactionIsolationLevel(Connection connection, int isolationLevel) throws Exception - Parameters:
connection
-isolationLevel
-- Returns:
- Throws:
Exception
-
commitTransaction
- Throws:
Exception
-
rollbackTransaction
- Throws:
Exception
-
rollbackTransaction
- Throws:
SQLException
-
createSavepoint
- Throws:
SQLException
-
getConnection
- Throws:
Exception
-