public abstract class BatchDMLConfig extends DMLConfig
限定符和类型 | 类和说明 |
---|---|
static class |
BatchDMLConfig.BatchDMLColumnValues |
DMLConfig.DMLColumnValues, DMLConfig.SimpleDataModel
限定符和类型 | 字段和说明 |
---|---|
static int |
BATCH_SIZE |
static java.lang.String |
XML_TAG |
columnConfigList, condition, dialect, evaledTable, KEY, P_TAG, submitJobList, table
构造器和说明 |
---|
BatchDMLConfig() |
限定符和类型 | 方法和说明 |
---|---|
protected int |
calSuccessCount(int[] result)
计算result数组中大于等于0的个数
|
protected abstract int |
dmlSubmitBatchNew(java.sql.Connection conn,
Calculator ca,
java.util.List<ColumnValuesEntry> columnValuesList) |
void |
execute(java.sql.Connection conn,
Calculator ca)
提交入库,但不需要返回数据库记录的更新
|
DBFeedback |
executeAndFeedback(java.sql.Connection conn,
Calculator ca)
计算并返回受影响的数据记录 暂时只处理Insert
|
BatchDMLConfig.BatchDMLColumnValues[] |
extractByValues2ColumnBatch(java.lang.Object[] values2Column) |
protected java.util.Map<java.lang.String,ListMap<java.lang.Integer,ColumnValuesEntry>> |
generateColumnValuesEntryMapByWhere(java.sql.Connection conn,
java.util.List<ColumnValuesEntry> columnValuesList) |
protected Where |
generateWhereNew(java.sql.Connection conn,
java.lang.Object[] columnValues) |
int |
getTotalTimes() |
void |
setColumnConfigList(java.util.List<ColumnConfig> columnConfigList) |
void |
setSubmitJobList(java.util.List<NameSubmitJob> submitJobList) |
void |
setTotalTimes(int totalTimes) |
addColumnConfig, addSubmitJob, clearColumnConfigs, clearSubmitJobs, clone, closeStatement, dealWithException, dealWithIllegal, dmlSubmit, dmlSubmitBatch, extractByValues2Column, generateWhere, getColumnConfig, getColumnConfigCount, getColumnDefValue, getColumnName, getColumnType, getCondition, getDialect, getOriTable, getRelatedColumnRows, getRelatedColumnRows, getSubmitJob, getSubmitJobCount, getTable, getTable, isIgnoreUpdate, isUpdateSelected, readXML, setCondition, setDialect, setTable, setUpdateSelected, toString, writeXML
public static final java.lang.String XML_TAG
public static final int BATCH_SIZE
public int getTotalTimes()
getTotalTimes
在类中 DMLConfig
public void setTotalTimes(int totalTimes)
setTotalTimes
在类中 DMLConfig
public void setColumnConfigList(java.util.List<ColumnConfig> columnConfigList)
public void setSubmitJobList(java.util.List<NameSubmitJob> submitJobList)
protected abstract int dmlSubmitBatchNew(java.sql.Connection conn, Calculator ca, java.util.List<ColumnValuesEntry> columnValuesList) throws java.sql.SQLException
java.sql.SQLException
public void execute(java.sql.Connection conn, Calculator ca) throws java.lang.Exception
DMLConfig
public DBFeedback executeAndFeedback(java.sql.Connection conn, Calculator ca) throws java.lang.Exception
DMLConfig
executeAndFeedback
在类中 DMLConfig
conn
- 数据库连接对象ca
- 算子java.lang.Exception
- 异常public BatchDMLConfig.BatchDMLColumnValues[] extractByValues2ColumnBatch(java.lang.Object[] values2Column) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
protected int calSuccessCount(int[] result)
protected Where generateWhereNew(java.sql.Connection conn, java.lang.Object[] columnValues)
protected java.util.Map<java.lang.String,ListMap<java.lang.Integer,ColumnValuesEntry>> generateColumnValuesEntryMapByWhere(java.sql.Connection conn, java.util.List<ColumnValuesEntry> columnValuesList)