public abstract class AbsConnect<T extends AbsConnect<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected io.odysz.common.dbtype |
drvName |
boolean |
enableSystemout |
protected HashMap<String,ReentrantLock> |
locks
Lock table when generating auto Id.
[table, lock] |
protected boolean |
log |
Constructor and Description |
---|
AbsConnect(io.odysz.common.dbtype drvName,
boolean log) |
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected abstract int[] |
commit(ArrayList<String> sqls,
int flags) |
abstract int[] |
commit(io.odysz.semantics.IUser usr,
ArrayList<String> sqls,
ArrayList<Clob> lobs,
int i) |
int[] |
commit(io.odysz.semantics.IUser usr,
ArrayList<String> sqls,
int flags) |
io.odysz.common.dbtype |
driverType() |
Lock |
getAutoseqLock(String target) |
static AbsConnect<?> |
initDmConnect(String xmlDir,
io.odysz.common.dbtype type,
String jdbcUrl,
String usr,
String pswd,
boolean printSql,
boolean log) |
static AbsConnect<? extends AbsConnect<?>> |
initPooledConnect(String xmlDir,
io.odysz.common.dbtype type,
String jdbcUrl,
String usr,
String pswd,
boolean printSql,
boolean log) |
String |
prop(String k) |
AbsConnect<? extends AbsConnect<?>> |
prop(String k,
String v) |
abstract AnResultset |
select(String sql,
int flags) |
protected boolean log
public boolean enableSystemout
protected io.odysz.common.dbtype drvName
protected HashMap<String,ReentrantLock> locks
public AbsConnect(io.odysz.common.dbtype drvName, boolean log)
drvName
- log
- enable logging user actionpublic io.odysz.common.dbtype driverType()
public static AbsConnect<?> initDmConnect(String xmlDir, io.odysz.common.dbtype type, String jdbcUrl, String usr, String pswd, boolean printSql, boolean log) throws SQLException, SemanticException
SQLException
SemanticException
public static AbsConnect<? extends AbsConnect<?>> initPooledConnect(String xmlDir, io.odysz.common.dbtype type, String jdbcUrl, String usr, String pswd, boolean printSql, boolean log)
protected void close() throws SQLException
SQLException
public abstract AnResultset select(String sql, int flags) throws SQLException, NamingException
SQLException
NamingException
protected abstract int[] commit(ArrayList<String> sqls, int flags) throws SQLException, NamingException
SQLException
NamingException
public final int[] commit(io.odysz.semantics.IUser usr, ArrayList<String> sqls, int flags) throws SQLException, NamingException
SQLException
NamingException
public abstract int[] commit(io.odysz.semantics.IUser usr, ArrayList<String> sqls, ArrayList<Clob> lobs, int i) throws SQLException
SQLException
public Lock getAutoseqLock(String target) throws SQLException
SQLException
public AbsConnect<? extends AbsConnect<?>> prop(String k, String v)
Copyright © 2024. All rights reserved.