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
FieldsModifier and TypeFieldDescriptionprotected io.odysz.common.dbtypebooleanstatic final intstatic final intstatic final intprotected Stringprotected HashMap<String,ReentrantLock> Lock table when generating auto Id.
[table, lock]protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()final int[]abstract int[]protected abstract int[]io.odysz.common.dbtypegetAutoseqLock(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) voidvoidIf 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:
SQLExceptionSemanticException
-
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:
SQLExceptionNamingException
-
commit
protected abstract int[] commit(ArrayList<String> sqls, int flags) throws SQLException, NamingException - Throws:
SQLExceptionNamingException
-
commit
public final int[] commit(io.odysz.semantics.IUser usr, ArrayList<String> sqls, int flags) throws SQLException, NamingException - Throws:
SQLExceptionNamingException
-
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
-