public class PostgresFunctions extends DefFunctions
PostgresDriver
Modifier and Type | Field and Description |
---|---|
static String[] |
AFTER_FUNCTIONS
The AFTER_FUNCTIONS.
|
static String[] |
BEFORE_FUNCTIONS
The BEFORE_FUNCTIONS.
|
static String[] |
EXCLUDE_FUNCTIONS
The EXCLUDE_FUNCTIONS.
|
DEFAULT_FUNCTION, SCENARIO_VARIABLE_ATTR, SCRIPT_FUNCTION, START_ATTR
Constructor and Description |
---|
PostgresFunctions() |
Modifier and Type | Method and Description |
---|---|
String |
assignVar(LoadFunctionContext context,
String value)
Assigns value to variable.
|
String[] |
getAfterFunctions()
Gets the array of functions which will be executed after main etl action (insert, update, delete, merge, etc).
|
String[] |
getBeforeFunctions()
Gets the array of functions which will be executed before main etl action (insert, update, delete, merge, etc).
|
String[] |
getExcludeFunctions()
Gets the array of functions which will be executed to calculate visibility of the field.
|
String |
getFk(LoadFunctionContext context)
Gets the new value for the field from the corresponding "primary key"
field.
|
String |
getPk(LoadFunctionContext context)
Gets the new value for the field using in-memory map or other mechanism,
for example db sequence.
|
String[] |
getRuntimeFunctions()
Gets the array of functions which will be executed at run time.
|
String |
getSerial(LoadFunctionContext context)
Gets the new value for the field using dbinfo('sqlca.sqlerrd1') or
dbinfo('serial8').
|
String |
getValue(LoadFunctionContext context)
Gets the current field value.
|
assignVar, getGlobalVarValue, getSeq, getSql, getSqlType, getValueFromRecordOrVar, getVariableValue, getVarSql, getVarSql, script
public static final String[] BEFORE_FUNCTIONS
public static final String[] AFTER_FUNCTIONS
public static final String[] EXCLUDE_FUNCTIONS
public String assignVar(LoadFunctionContext context, String value) throws Exception
DefFunctions
assignVar
in class DefFunctions
context
- the contextvalue
- the valueException
- the exceptionpublic String[] getAfterFunctions()
Function
getAfterFunctions
in interface Function
getAfterFunctions
in class DefFunctions
public String[] getBeforeFunctions()
Function
getBeforeFunctions
in interface Function
getBeforeFunctions
in class DefFunctions
public String[] getExcludeFunctions()
Function
getExcludeFunctions
in interface Function
getExcludeFunctions
in class DefFunctions
public String getFk(LoadFunctionContext context)
DefFunctions
getFk
in class DefFunctions
context
- the contextpublic String getPk(LoadFunctionContext context)
DefFunctions
getPk
in class DefFunctions
context
- the contextpublic String[] getRuntimeFunctions()
Function
getRuntimeFunctions
in interface Function
getRuntimeFunctions
in class DefFunctions
public String getSerial(LoadFunctionContext context) throws Exception
context
- the contextException
- the exceptionpublic String getValue(LoadFunctionContext context) throws Exception
DefFunctions
getValue
in class DefFunctions
context
- the contextException
- in case of any errorCopyright © 2010-2020 Toolsverse. All Rights Reserved.