类的使用
risesoft.data.transfer.stream.rdbms.utils.DataBaseType
-
-
risesoft.data.transfer.stream.rdbms.out中DataBaseType的使用
声明为DataBaseType的risesoft.data.transfer.stream.rdbms.out中的字段 修饰符和类型 字段 说明 protected DataBaseTypeRdbmsDataOutputStream. dataBaseTypeprotected DataBaseTypeRdbmsDataOutputStreamFactory. dataBaseType参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.out中的构造器 构造器 说明 InsertRdbmsDataOutputStream(Connection connection, String workSql, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData, Map<String,PreparedStatementHandle> createColumnHandles, DataBaseType dataBaseType, Logger logger)RdbmsDataOutputStream(Connection connection, String workSql, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData, Map<String,PreparedStatementHandle> createColumnHandles, DataBaseType dataBaseType, Logger logger)ReplaceRdbmsDataOutputStream(Connection connection, String workSql, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData, Map<String,PreparedStatementHandle> createColumnHandles, DataBaseType dataBaseType, List<String> idField, List<String> updateField, Logger logger)UpdateRdbmsDataOutputStream(Connection connection, String workSql, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData, Map<String,PreparedStatementHandle> createColumnHandles, DataBaseType dataBaseType, List<String> idField, List<String> updateField, Logger logger) -
risesoft.data.transfer.stream.rdbms.out.columns中DataBaseType的使用
参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.out.columns中的方法 修饰符和类型 方法 说明 voidPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)设置值 -
risesoft.data.transfer.stream.rdbms.out.columns.impl中DataBaseType的使用
参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.out.columns.impl中的方法 修饰符和类型 方法 说明 voidBitPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidBlobPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidBooleanPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidBytesPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidClobPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidDatePreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidNumberPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidStringPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidTimePreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidTimeStampPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData)voidTinyintPreparedStatementHandle. fillPreparedStatementColumnType(PreparedStatement preparedStatement, int columnIndex, Column column, DataBaseType dataBaseType, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData) -
risesoft.data.transfer.stream.rdbms.out.mysql中DataBaseType的使用
参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.out.mysql中的构造器 构造器 说明 MySqlUpadateDataOutputStream(Connection connection, String workSql, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData, Map<String,PreparedStatementHandle> createColumnHandles, DataBaseType dataBaseType, Logger logger) -
risesoft.data.transfer.stream.rdbms.out.pg中DataBaseType的使用
参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.out.pg中的构造器 构造器 说明 PGUpadateDataOutputStream(Connection connection, String workSql, org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>> resultSetMetaData, Map<String,PreparedStatementHandle> createColumnHandles, DataBaseType dataBaseType, Logger logger, List<String> updateField) -
risesoft.data.transfer.stream.rdbms.utils中DataBaseType的使用
返回DataBaseType的risesoft.data.transfer.stream.rdbms.utils中的方法 修饰符和类型 方法 说明 static DataBaseTypeDataBaseType. getDataBaseTypeByJdbcUrl(String jdbcUrl)根据jdbcurl获取数据库类型 当没有的时候默认返回rdbmsstatic DataBaseTypeDataBaseType. valueOf(String name)返回带有指定名称的该类型的枚举常量。static DataBaseType[]DataBaseType. values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.utils中的方法 修饰符和类型 方法 说明 static TransferExceptionRdbmsException. asConnException(DataBaseType dataBaseType, Exception e, String userName, String dbName)static TransferExceptionRdbmsException. asDeletePriException(DataBaseType dataBaseType, String userName, String jdbcUrl)static TransferExceptionRdbmsException. asInsertPriException(DataBaseType dataBaseType, String userName, String jdbcUrl)static TransferExceptionRdbmsException. asPostSQLParserException(DataBaseType dataBaseType, Exception e, String querySql)static TransferExceptionRdbmsException. asPreSQLParserException(DataBaseType dataBaseType, Exception e, String querySql)static TransferExceptionRdbmsException. asQueryException(DataBaseType dataBaseType, Exception e, String querySql, String table, String userName)static TransferExceptionRdbmsException. asSplitPKException(DataBaseType dataBaseType, Exception e, String splitSql, String splitPkID)static TransferExceptionRdbmsException. asSqlParserException(DataBaseType dataBaseType, Exception e, String querySql)static booleanDBUtil. checkDeletePrivilege(DataBaseType dataBaseType, String jdbcURL, String userName, String password, List<String> tableList)static booleanDBUtil. checkInsertPrivilege(DataBaseType dataBaseType, String jdbcURL, String userName, String password, List<String> tableList)static StringDBUtil. chooseJdbcUrl(DataBaseType dataBaseType, List<String> jdbcUrls, String username, String password, List<String> preSql, boolean checkSlave)static StringDBUtil. chooseJdbcUrlWithoutRetry(DataBaseType dataBaseType, List<String> jdbcUrls, String username, String password, List<String> preSql, boolean checkSlave)static voidDBUtil. dealWithSessionConfig(Connection conn, Configuration config, DataBaseType databaseType, String message)static org.apache.commons.lang3.tuple.Triple<List<String>,List<Integer>,List<String>>DBUtil. getColumnMetaData(DataBaseType dataBaseType, String jdbcUrl, String user, String pass, String tableName, String column)static ConnectionDBUtil. getConnection(DataBaseType dataBaseType, String jdbcUrl, String username, String password)Get direct JDBC connectionstatic ConnectionDBUtil. getConnection(DataBaseType dataBaseType, String jdbcUrl, String username, String password, String socketTimeout)static ConnectionDBUtil. getConnectionWithoutRetry(DataBaseType dataBaseType, String jdbcUrl, String username, String password)Get direct JDBC connectionstatic ConnectionDBUtil. getConnectionWithoutRetry(DataBaseType dataBaseType, String jdbcUrl, String username, String password, String socketTimeout)static List<String>DBUtil. getTableColumns(DataBaseType dataBaseType, String jdbcUrl, String user, String pass, String tableName)static List<String>DBUtil. getTableColumnsByConn(DataBaseType dataBaseType, Connection conn, String tableName, String basicMsg)static booleanDBUtil. hasInsertPrivilege(DataBaseType dataBaseType, String jdbcURL, String userName, String password, List<String> tableList)检查表是否具有insert 权限 insert on *.* 或者 insert on database.* 时验证通过 当insert on database.tableName时,确保tableList中的所有table有insert 权限,验证通过 其它验证都不通过static List<String>RdbmsRangeSplitWrap. splitAndWrap(String left, String right, int expectSliceNumber, String columnName, String quote, DataBaseType dataBaseType)static voidDBUtil. sqlValid(String sql, DataBaseType dataBaseType)static booleanDBUtil. testConnWithoutRetry(DataBaseType dataBaseType, String url, String user, String pass, boolean checkSlave)static booleanDBUtil. testConnWithoutRetry(DataBaseType dataBaseType, String url, String user, String pass, List<String> preSql)static StringRdbmsRangeSplitWrap. wrapFirstLastPoint(String firstPoint, String lastPoint, String columnName, String quote, DataBaseType dataBaseType)static List<String>RdbmsRangeSplitWrap. wrapRange(String[] rangeResult, String columnName, String quote, DataBaseType dataBaseType)参数类型为DataBaseType的risesoft.data.transfer.stream.rdbms.utils中的构造器 构造器 说明 JdbcConnectionFactory(DataBaseType dataBaseType, String jdbcUrl, String userName, String password)
-