类 RdbmsDataOutputStreamFactory
- java.lang.Object
-
- risesoft.data.transfer.stream.rdbms.out.RdbmsDataOutputStreamFactory
-
- 所有已实现的接口:
Closed,DataStreamFactory<DataOutputStream>,DataOutputStreamFactory
public class RdbmsDataOutputStreamFactory extends Object implements DataOutputStreamFactory
通用型数据库输出流工厂- 作者:
- lb
- Date:
- 2023年12月14日
-
-
字段概要
字段 修饰符和类型 字段 说明 protected List<String>columnsprotected Map<String,PreparedStatementHandle>createColumnHandlesprotected DataBaseTypedataBaseTypestatic byte[]EMPTY_CHAR_ARRAYprotected List<String>idFieldprotected StringjdbcUrlprotected Loggerloggerprotected Stringpasswordprotected org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>>resultSetMetaDataprotected StringtableNameprotected List<String>updateFieldprotected StringuserNameprotected StringworkSqlprotected StringwriterType
-
构造器概要
构造器 构造器 说明 RdbmsDataOutputStreamFactory(Configuration configuration, JobContext jobContext)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()关闭使用的链接protected voidcreateInsertSql(int size)创建insertSqlprotected voidcreateReplace(int size)创建replaceprotected voidcreateUpdate(int size)创建updateWorkSqlprotected DataOutputStreamgetInsertStream()protected DataOutputStreamgetReplaceStream()DataOutputStreamgetStream()static String[]getStrings(String merge, String pre)protected DataOutputStreamgetUpdateStream()voidinit()
-
-
-
字段详细资料
-
EMPTY_CHAR_ARRAY
public static final byte[] EMPTY_CHAR_ARRAY
-
jdbcUrl
protected String jdbcUrl
-
password
protected String password
-
userName
protected String userName
-
dataBaseType
protected DataBaseType dataBaseType
-
tableName
protected String tableName
-
writerType
protected String writerType
-
createColumnHandles
protected Map<String,PreparedStatementHandle> createColumnHandles
-
resultSetMetaData
protected org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData
-
workSql
protected String workSql
-
logger
protected Logger logger
-
-
构造器详细资料
-
RdbmsDataOutputStreamFactory
public RdbmsDataOutputStreamFactory(Configuration configuration, JobContext jobContext)
-
-
方法详细资料
-
createInsertSql
protected void createInsertSql(int size)
创建insertSql- 参数:
size-
-
createReplace
protected void createReplace(int size)
创建replace- 参数:
size-
-
createUpdate
protected void createUpdate(int size)
创建updateWorkSql- 参数:
size-
-
init
public void init()
- 指定者:
init在接口中DataStreamFactory<DataOutputStream>
-
getInsertStream
protected DataOutputStream getInsertStream()
-
getUpdateStream
protected DataOutputStream getUpdateStream()
-
getReplaceStream
protected DataOutputStream getReplaceStream()
-
getStream
public DataOutputStream getStream()
- 指定者:
getStream在接口中DataStreamFactory<DataOutputStream>
-
-