public interface NormalJdbcTool
| Modifier and Type | Method and Description |
|---|---|
int |
jdbcExecute(String sql,
Object... params)
Execute an statement, including a stored procedure call, which does not
return any result sets.
|
<T> T |
jdbcQueryForObject(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 |
jdbcUpdate(String sql,
Object... params)
Executes the given INSERT, UPDATE, or DELETE SQL statement.
|
<T> T jdbcQueryForObject(String sql, Object... params)
sql - params - int jdbcUpdate(String sql, Object... params)
sql - the SQLparams - the parameters if haveint jdbcExecute(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 SQLCopyright © 2021. All rights reserved.