Package io.odysz.semantic.DA
Class AbsConnect<T extends AbsConnect<T>>
java.lang.Object
io.odysz.semantic.DA.AbsConnect<T>
- Direct Known Subclasses:
CpConnect
,Msql2kDriver
,MysqlDriver
,OracleDriver
,SqliteDriver2
-
Field Summary
Modifier and TypeFieldDescriptionprotected io.odysz.common.dbtype
boolean
static final int
static final int
static final int
protected String
protected HashMap<String,
ReentrantLock> Lock table when generating auto Id.
[table, lock]protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
final int[]
abstract int[]
protected abstract int[]
io.odysz.common.dbtype
getAutoseqLock
(String target) static AbsConnect<?>
initDmConnect
(String xmlDir, io.odysz.common.dbtype type, String id, String jdbcUrl, String usr, String pswd, boolean printSql, boolean log) static AbsConnect<? extends AbsConnect<?>>
initPooledConnect
(String xmlDir, io.odysz.common.dbtype type, String id, String jdbcUrl, String usr, String pswd, boolean printSql, boolean log) void
void
If printSql is true or if asking enable, then print sqls.AbsConnect<? extends AbsConnect<?>>
abstract AnResultset
-
Field Details
-
flag_nothing
public static final int flag_nothing- See Also:
-
flag_printSql
public static final int flag_printSql- See Also:
-
flag_disableSql
public static final int flag_disableSql- See Also:
-
enableSystemout
public boolean enableSystemout -
log
protected boolean log -
drvName
protected io.odysz.common.dbtype drvName -
id
-
locks
Lock table when generating auto Id.
[table, lock]
-
-
Constructor Details
-
AbsConnect
- Parameters:
drvName
-log
- enable logging user action
-
-
Method Details
-
driverType
public io.odysz.common.dbtype driverType() -
initDmConnect
public static AbsConnect<?> initDmConnect(String xmlDir, io.odysz.common.dbtype type, String id, String jdbcUrl, String usr, String pswd, boolean printSql, boolean log) throws SQLException, SemanticException - Throws:
SQLException
SemanticException
-
initPooledConnect
public static AbsConnect<? extends AbsConnect<?>> initPooledConnect(String xmlDir, io.odysz.common.dbtype type, String id, String jdbcUrl, String usr, String pswd, boolean printSql, boolean log) -
close
- Throws:
SQLException
-
select
- Throws:
SQLException
NamingException
-
commit
protected abstract int[] commit(ArrayList<String> sqls, int flags) throws SQLException, NamingException - Throws:
SQLException
NamingException
-
commit
public final int[] commit(io.odysz.semantics.IUser usr, ArrayList<String> sqls, int flags) throws SQLException, NamingException - Throws:
SQLException
NamingException
-
commit
public abstract int[] commit(io.odysz.semantics.IUser usr, ArrayList<String> sqls, ArrayList<Clob> lobs, int i) throws SQLException - Throws:
SQLException
-
getAutoseqLock
- Throws:
SQLException
-
prop
-
prop
-
printSql
If printSql is true or if asking enable, then print sqls.- Parameters:
flag
-sqls
-
-
printSql
-