|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NormalJdbcTool
Interface of Normal JDBC methods, this interface is a bridge between jDbPro and jTransactions to eliminate jar dependency, other projects need copy this interface into there source code folder but always use name "com.github.drinkjava2.jdbpro.NormalJdbcTool"
| Method Summary | ||
|---|---|---|
int |
nExecute(String sql,
Object... params)
Execute an statement, including a stored procedure call, which does not return any result sets. |
|
|
nQueryForObject(String sql,
Object... params)
Query for an Object, only return the first row and first column's value if more than one column or more than 1 rows returned, a null object may return if no result found |
|
int |
nUpdate(String sql,
Object... params)
Executes the given INSERT, UPDATE, or DELETE SQL statement. |
|
| Method Detail |
|---|
<T> T nQueryForObject(String sql,
Object... params)
sql - params -
int nUpdate(String sql,
Object... params)
sql - the SQLparams - the parameters if have
int nExecute(String sql,
Object... params)
Use this method when invoking a stored procedure with OUT parameters that
does not return any result sets. If you are not invoking a stored procedure,
or the stored procedure has no OUT parameters, consider using
#Update(java.lang.String...) . If the stored procedure returns result
sets, use
#iExecute(org.apache.commons.dbutils.ResultSetHandler, java.lang.String...) .
sql - the SQL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||