Package io.odysz.semantic.DA.drvmnger
Class MysqlDriver
-
Field Summary
Fields inherited from class io.odysz.semantic.DA.AbsConnect
drvName, enableSystemout, flag_disableSql, flag_nothing, flag_printSql, id, locks, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]int[]protected static ConnectionIMPORTANT: Caller must close connection!static MysqlDriverinitConnection(String id, String conn, String user, String psword, boolean log, int flags) Use this to init connection without using servlet context for retrieving configured strings.
This is the typical scenario when running test from "main" thread.static AnResultsetselectStatic(String sql, int flags) Methods inherited from class io.odysz.semantic.DA.AbsConnect
close, commit, driverType, getAutoseqLock, initDmConnect, initPooledConnect, printSql, printSql, prop, prop
-
Constructor Details
-
MysqlDriver
-
-
Method Details
-
getConnection
IMPORTANT: Caller must close connection!- Returns:
- connection
- Throws:
SQLException
-
initConnection
public static MysqlDriver initConnection(String id, String conn, String user, String psword, boolean log, int flags) throws SQLException Use this to init connection without using servlet context for retrieving configured strings.
This is the typical scenario when running test from "main" thread.- Parameters:
conn-user-psword-log-flags-- Returns:
- new MysqlDriver
- Throws:
SQLException
-
selectStatic
- Throws:
SQLException
-
select
- Specified by:
selectin classAbsConnect<MysqlDriver>- Throws:
SQLException
-
commit
- Specified by:
commitin classAbsConnect<MysqlDriver>- Throws:
SQLException
-
commit
public int[] commit(io.odysz.semantics.IUser log, ArrayList<String> sqls, ArrayList<Clob> lobs, int i) throws SQLException - Specified by:
commitin classAbsConnect<MysqlDriver>- Throws:
SQLException
-