Package solutions.a2.cdc.oracle.utils
Class TargetDbSqlUtils
java.lang.Object
solutions.a2.cdc.oracle.utils.TargetDbSqlUtils
- Author:
- averemee
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTableSql(String tableName, int dbType, Map<String, OraColumn> pkColumns, List<OraColumn> allColumns, Map<String, Object> lobColumns) generateSinkSql(String tableName, int dbType, Map<String, OraColumn> pkColumns, List<OraColumn> allColumns, Map<String, Object> lobColumns)
-
Field Details
-
INSERT
- See Also:
-
UPDATE
- See Also:
-
DELETE
- See Also:
-
UPSERT
- See Also:
-
-
Constructor Details
-
TargetDbSqlUtils
public TargetDbSqlUtils()
-
-
Method Details
-
createTableSql
public static List<String> createTableSql(String tableName, int dbType, Map<String, OraColumn> pkColumns, List<OraColumn> allColumns, Map<String, Object> lobColumns) - Parameters:
tableName-dbType-pkColumns-allColumns-lobColumns-- Returns:
- List with at least one element for PostgreSQL and exactly one element for others RDBMS Element at index 0 is always CREATE TABLE, at other indexes (PostgreSQL only) SQL text script for creation of lo trigger (Ref.: https://www.postgresql.org/docs/current/lo.html)
-
generateSinkSql
-