类 ETLSyncBase
java.lang.Object
com.sh.wf.etl.sync.ETLSyncBase
- 所有已实现的接口:
ETLSync_I
Description: 同步基类
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2017年8月24日
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ObjectcheckAndSetObj(ETLContext etlContext, RowInfo rowInfo, ArrowLine line, Datastore ds, ETLColumnInfo columnInfo) 转换数据格式protected booleancheckToSourceExists(ETLContext etlContext, Datastore fromDs, RowInfo rowInfo) 判断目标表中的记录是否存在,如果存在则删除重新添加protected booleaneveryUpdateLog(ETLContext etlContext, int num1, int errorNum) protected booleaneveryUpdateLog(ETLContext etlContext, int num1, int errorNum, int pageNo) 更新日志protected String[]generateSQL(ETLContext etlContext, boolean hasTimestampCol, DataCenter toDc) 生成相应的SQLgetfromTableColByToTableCol(ETLContext etlContext, String toTableCol) protected booleaninitCommon(ETLContext etlContext) 初始化参数protected voidinsertErrorLog(ETLContext etlContext, String errorData, String errorMsg) 记录错误日志protected voidsetColType(String[] colsType, int i, ArrowLine line, List<ETLColumnInfo> columnList, Datastore ds, Datastore toDs) abstract voidsync(ETLContext etlContext) 各种条件下需要实现的同步方式voidsyncData(ETLContext etlContext) 同步数据protected booleanupdateMainLog(ETLContext etlContext, String isRun) 记录总表
-
字段详细资料
-
etlData
-
fromSDBData
-
toSDBData
-
fromSource
-
toSource
-
lineList
-
sourceTableTime
-
lastPkValue
-
isSqlServerTimestamp
protected boolean isSqlServerTimestamp -
hasRepeatWhere
protected boolean hasRepeatWhere -
pkLineList
-
lastPageNo
protected int lastPageNo
-
-
构造器详细资料
-
ETLSyncBase
public ETLSyncBase()
-
-
方法详细资料
-
sync
各种条件下需要实现的同步方式- 参数:
etlContext- ETLContext- 抛出:
Exception- 异常
-
initCommon
初始化参数- 参数:
etlContext- ETLContext
-
syncData
从接口复制的说明:ETLSync_I同步数据 -
generateSQL
生成相应的SQL- 参数:
etlContext-hasTimestampCol- true 自动检测时间戳列 false 不检查- 返回:
-
setColType
-
checkAndSetObj
protected Object checkAndSetObj(ETLContext etlContext, RowInfo rowInfo, ArrowLine line, Datastore ds, ETLColumnInfo columnInfo) 转换数据格式- 参数:
etlContext-rowInfo-line-- 返回:
-
checkToSourceExists
判断目标表中的记录是否存在,如果存在则删除重新添加- 参数:
etlContext-fromDs-- 返回:
-
everyUpdateLog
-
everyUpdateLog
更新日志- 参数:
etlContext-num1-errorNum-- 返回:
-
updateMainLog
记录总表- 参数:
etlContext-isRun-- 返回:
-
insertErrorLog
记录错误日志- 参数:
etlContext-errorData-errorMsg-
-
getfromTableColByToTableCol
-