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, setAccessorConfig
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addParameter, addParameter, execute, getAccessorConfig, getConnectionHolder, getExpenseTime, getParameters, getSQL, isExecuted, setAccessorConfig
public DefaultUpdateOperator(String sql, IDatabaseConnectionHolder connectionHolder)
public DefaultUpdateOperator(String sql, IDatabaseConnectionHolder connectionHolder, IAccessorConfig accessorConfig)
protected int doExecute() throws Exception
AbstractOperator
doExecute
in class AbstractOperator
Exception
- 执行过程中产生的异常public int getEffectCounts()
IUpdateOperator
getEffectCounts
in interface IUpdateOperator
Copyright © 2022. All rights reserved.