public class DefaultUpdateOperator extends AbstractOperator implements IUpdateOperator
executed, expenseTime, sql| Constructor and Description |
|---|
DefaultUpdateOperator(String sql,
IDatabaseConnectionHolder connectionHolder) |
DefaultUpdateOperator(String sql,
IDatabaseConnectionHolder connectionHolder,
IAccessorConfig accessorConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
doExecute()
执行具体的操作过程
|
int |
getEffectCounts()
获取更新操作执行后影响的记录行数,不支持批量更新语句;
对于 INSERT、UPDATE 或 DELETE 语句,返回行数; 对于无返回结果的SQL语句,返回 0
|
addParameter, addParameter, doAppendStackTraces, doSetParameters, execute, getAccessorConfig, getConnectionHolder, getExpenseTime, getParameters, getSQL, isExecuted, serializeParameters, setAccessorConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddParameter, addParameter, execute, getAccessorConfig, getConnectionHolder, getExpenseTime, getParameters, getSQL, isExecuted, setAccessorConfigpublic DefaultUpdateOperator(String sql, IDatabaseConnectionHolder connectionHolder)
public DefaultUpdateOperator(String sql, IDatabaseConnectionHolder connectionHolder, IAccessorConfig accessorConfig)
protected int doExecute()
throws Exception
AbstractOperatordoExecute in class AbstractOperatorException - 执行过程中产生的异常public int getEffectCounts()
IUpdateOperatorgetEffectCounts in interface IUpdateOperatorCopyright © 2022. All rights reserved.