public class UpdateConfig extends BatchDMLConfig
BatchDMLConfig.BatchDMLColumnValues
DMLConfig.DMLColumnValues, DMLConfig.SimpleDataModel
BATCH_SIZE, XML_TAG
columnConfigList, condition, dialect, evaledTable, KEY, P_TAG, submitJobList, table
构造器和说明 |
---|
UpdateConfig() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
closeStatement(java.sql.Connection conn)
关闭对应conn中的statment
|
protected int |
dmlSubmit(java.sql.Connection conn,
Calculator ca,
java.lang.Object[] columnValues,
java.util.Map kvMap)
数据和数据库的交互操作
|
protected int |
dmlSubmitBatch(int index,
java.sql.Connection conn,
Calculator ca,
java.lang.Object[] columnValues,
java.util.Map kvMap)
批量提交
|
protected int |
dmlSubmitBatchNew(java.sql.Connection conn,
Calculator ca,
java.util.List<ColumnValuesEntry> columnValuesList) |
protected boolean |
isIgnoreUpdate(Calculator ca) |
int[] |
updateBatchWithDetail(java.sql.Connection conn,
Calculator ca,
java.util.List<ColumnValuesEntry> columnValuesList) |
calSuccessCount, execute, executeAndFeedback, extractByValues2ColumnBatch, generateColumnValuesEntryMapByWhere, generateWhereNew, getTotalTimes, setColumnConfigList, setSubmitJobList, setTotalTimes
addColumnConfig, addSubmitJob, clearColumnConfigs, clearSubmitJobs, clone, dealWithException, dealWithIllegal, extractByValues2Column, generateWhere, getColumnConfig, getColumnConfigCount, getColumnDefValue, getColumnName, getColumnType, getCondition, getDialect, getOriTable, getRelatedColumnRows, getRelatedColumnRows, getSubmitJob, getSubmitJobCount, getTable, getTable, isUpdateSelected, readXML, setCondition, setDialect, setTable, setUpdateSelected, toString, writeXML
protected int dmlSubmit(java.sql.Connection conn, Calculator ca, java.lang.Object[] columnValues, java.util.Map kvMap) throws java.sql.SQLException
DMLConfig
protected int dmlSubmitBatch(int index, java.sql.Connection conn, Calculator ca, java.lang.Object[] columnValues, java.util.Map kvMap) throws java.sql.SQLException
DMLConfig
dmlSubmitBatch
在类中 DMLConfig
index
- 数据索引conn
- 数据连接ca
- 算子columnValues
- 要入库的列的值kvMap
- 插入时是否需要以这个Map里的值填充java.sql.SQLException
- 操作过程中出现错误则抛出此异常protected boolean isIgnoreUpdate(Calculator ca)
isIgnoreUpdate
在类中 DMLConfig
protected int dmlSubmitBatchNew(java.sql.Connection conn, Calculator ca, java.util.List<ColumnValuesEntry> columnValuesList) throws java.sql.SQLException
dmlSubmitBatchNew
在类中 BatchDMLConfig
java.sql.SQLException
public int[] updateBatchWithDetail(java.sql.Connection conn, Calculator ca, java.util.List<ColumnValuesEntry> columnValuesList) throws java.sql.SQLException
java.sql.SQLException
protected void closeStatement(java.sql.Connection conn) throws java.sql.SQLException
DMLConfig
closeStatement
在类中 DMLConfig
java.sql.SQLException