public class MsSqlFunctions extends DefFunctions
MsSqlDriver
DEFAULT_FUNCTION, SCENARIO_VARIABLE_ATTR, SCRIPT_FUNCTION, START_ATTR
Constructor and Description |
---|
MsSqlFunctions() |
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 |
getAutoInc(LoadFunctionContext context)
Gets the auto increment value.
|
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 |
getValue(LoadFunctionContext context)
Gets the current field value.
|
assignVar, getGlobalVarValue, getSeq, getSql, getSqlType, getValueFromRecordOrVar, getVariableValue, getVarSql, getVarSql, script
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 getAutoInc(LoadFunctionContext context) throws Exception
context
- the contextException
- the exceptionpublic 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) throws Exception
DefFunctions
getFk
in class DefFunctions
context
- the contextException
- in case of any errorpublic String getPk(LoadFunctionContext context) throws Exception
DefFunctions
getPk
in class DefFunctions
context
- the contextException
- in case of any errorpublic String[] getRuntimeFunctions()
Function
getRuntimeFunctions
in interface Function
getRuntimeFunctions
in class DefFunctions
public 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.