MSSQL2012MacroProcessor
Overview
Location
- Reference: RemObjects.DataAbstract.Server.dll
- Namespace: RemObjects.DataAbstract.Server
- Ancestry: MacroParser | SqlMacroProcessor | MSSQLMacroProcessor | MSSQL2012MacroProcessor
constructor
constructor
MSSQL2012MacroProcessor()
Sub New()
constructor (String, String, Boolean, String) protected (declared in SqlMacroProcessor)
constructor(dateFormat: String; datetimeFormat: String; doubleQuoteStrings: Boolean; parameterPrefix: String)
MSSQL2012MacroProcessor(String dateFormat, String datetimeFormat, Boolean doubleQuoteStrings, String parameterPrefix)
Sub New(dateFormat As String, datetimeFormat As String, doubleQuoteStrings As Boolean, parameterPrefix As String)
Parameters:
- dateFormat:
- datetimeFormat:
- doubleQuoteStrings:
- parameterPrefix:
AddTime protected (declared in MSSQLMacroProcessor)
method AddTime(parameters: array of String): String
String AddTime(String[] parameters)
Function AddTime(parameters As String()) As String
Parameters:
- parameters:
AddVariable (declared in MacroParser)
Creates a new macro variable and adds it to the internal macro variables list.
method AddVariable(aName: String): MacroVariable
MacroVariable AddVariable(String aName)
Function AddVariable(aName As String) As MacroVariable
Parameters:
- aName:
ClassSuffix (declared in SqlMacroProcessor)
const ClassSuffix: String = "MacroProcessor";
const String ClassSuffix = "MacroProcessor"
Dim ClassSuffix As String = "MacroProcessor"
ClearMacros (declared in MacroParser)
method ClearMacros
void ClearMacros()
Sub ClearMacros()
ClearVariables (declared in MacroParser)
Clears the internal list of registered macro variables.
method ClearVariables
void ClearVariables()
Sub ClearVariables()
ComposeMacroCall (declared in SqlMacroProcessor)
method ComposeMacroCall(macroKind: SqlMacroProcessor.MacroKind; params args: array of String): String
String ComposeMacroCall(SqlMacroProcessor.MacroKind macroKind, params String[] args)
Function ComposeMacroCall(macroKind As SqlMacroProcessor.MacroKind, ParamArray args As String()) As String
Parameters:
- macroKind:
- args:
Copy protected (declared in MSSQLMacroProcessor)
method Copy(parameters: array of String): String
String Copy(String[] parameters)
Function Copy(parameters As String()) As String
Parameters:
- parameters:
CustomMacroHandler (declared in MacroParser)
property CustomMacroHandler: CustomMacroCallback read write;
CustomMacroCallback CustomMacroHandler { get; set; }
Property CustomMacroHandler() As CustomMacroCallback
Date protected (declared in MSSQLMacroProcessor)
method Date(parameters: array of String): String
String Date(String[] parameters)
Function Date(parameters As String()) As String
Parameters:
- parameters:
DateFormat (declared in SqlMacroProcessor)
Gets the date format for the current database.
property DateFormat: String read;
String DateFormat { get; }
ReadOnly Property DateFormat() As String
DatePart protected (declared in MSSQLMacroProcessor)
method DatePart(parameters: array of String): String
String DatePart(String[] parameters)
Function DatePart(parameters As String()) As String
Parameters:
- parameters:
DateTime protected (declared in MSSQLMacroProcessor)
method DateTime(parameters: array of String): String
String DateTime(String[] parameters)
Function DateTime(parameters As String()) As String
Parameters:
- parameters:
DateTimeFormat (declared in SqlMacroProcessor)
Gets the datetime format for the current database.
property DateTimeFormat: String read;
String DateTimeFormat { get; }
ReadOnly Property DateTimeFormat() As String
DoubleQuoteStrings (declared in SqlMacroProcessor)
Gets the quote string for the date and datetime formats for the current database. If this property is true, the datetime format is represented as "datetime", otherwise as 'datetime'.
property DoubleQuoteStrings: Boolean read;
Boolean DoubleQuoteStrings { get; }
ReadOnly Property DoubleQuoteStrings() As Boolean
Eval (declared in MacroParser)
Evaluates the given expression, substituting macro tags with specific variable values or macro function results.
String constants within provided expressions can be delimited using the TextDelimiter char.
method Eval(Text: String; TextDelimiter: Char): String
String Eval(String Text, Char TextDelimiter)
Function Eval(Text As String, TextDelimiter As Char) As String
Parameters:
- Text: Expression to process
- TextDelimiter: String constants delimiter
EvalToken (declared in MacroParser)
Evaluates the provided macro token. This method calls the macro function or replaces the macro variable placeholder with its value.
method EvalToken(Text: String): String
String EvalToken(String Text)
Function EvalToken(Text As String) As String
Parameters:
- Text: Macro expression token
FindVariable (declared in MacroParser)
Gets the macro variable with the specified name from the registered variables. Search is not case-sensitive.
If there is no variable with the provided name, null is returned.
method FindVariable(aName: String): MacroVariable
MacroVariable FindVariable(String aName)
Function FindVariable(aName As String) As MacroVariable
Parameters:
- aName: Variable name
FormatDate protected (declared in SqlMacroProcessor)
method FormatDate(parameters: array of String): String
String FormatDate(String[] parameters)
Function FormatDate(parameters As String()) As String
Parameters:
- parameters:
FormatDateTime protected (declared in SqlMacroProcessor)
method FormatDateTime(parameters: array of String): String
String FormatDateTime(String[] parameters)
Function FormatDateTime(parameters As String()) As String
Parameters:
- parameters:
GetNewInstance
method GetNewInstance: SqlMacroProcessor
SqlMacroProcessor GetNewInstance()
Function GetNewInstance() As SqlMacroProcessor
Length protected (declared in MSSQLMacroProcessor)
method Length(parameters: array of String): String
String Length(String[] parameters)
Function Length(parameters As String()) As String
Parameters:
- parameters:
LowerCase protected (declared in MSSQLMacroProcessor)
method LowerCase(parameters: array of String): String
String LowerCase(String[] parameters)
Function LowerCase(parameters As String()) As String
Parameters:
- parameters:
NoLock protected (declared in MSSQLMacroProcessor)
method NoLock(parameters: array of String): String
String NoLock(String[] parameters)
Function NoLock(parameters As String()) As String
Parameters:
- parameters:
RegisterMacro (declared in MacroParser)
method RegisterMacro(name: String; callback: Func<array of String, String>; paramCount: Int32)
void RegisterMacro(String name, Func<array of String, String> callback, Int32 paramCount)
Sub RegisterMacro(name As String, callback As Func<array of String, String>, paramCount As Int32)
Parameters:
- name:
- callback:
- paramCount:
RegisterMacros protected (declared in SqlMacroProcessor)
Registers the existing standard macros: * Date * DateTime * AddTime * FormatDateTime * FormatDate * Length * LowerCase * UpperCase * TrimLeft * TrimRight * Copy * NoLock
method RegisterMacros
void RegisterMacros()
Sub RegisterMacros()
Session protected (declared in SqlMacroProcessor)
method Session(parameters: array of String): String
String Session(String[] parameters)
Function Session(parameters As String()) As String
Parameters:
- parameters:
StoredProcedurePrefix (declared in SqlMacroProcessor)
Gets the prefix for stored procedures for the current database.
property StoredProcedurePrefix: String read;
String StoredProcedurePrefix { get; }
ReadOnly Property StoredProcedurePrefix() As String
StoredProcParamPrefix (declared in SqlMacroProcessor)
Gets the prefix for stored procedure params for the current database.
property StoredProcParamPrefix: String read;
String StoredProcParamPrefix { get; }
ReadOnly Property StoredProcParamPrefix() As String
Time protected (declared in MSSQLMacroProcessor)
method Time(parameters: array of String): String
String Time(String[] parameters)
Function Time(parameters As String()) As String
Parameters:
- parameters:
Trim protected (declared in MSSQLMacroProcessor)
method Trim(parameters: array of String): String
String Trim(String[] parameters)
Function Trim(parameters As String()) As String
Parameters:
- parameters:
TrimLeft protected (declared in MSSQLMacroProcessor)
method TrimLeft(parameters: array of String): String
String TrimLeft(String[] parameters)
Function TrimLeft(parameters As String()) As String
Parameters:
- parameters:
TrimRight protected (declared in MSSQLMacroProcessor)
method TrimRight(parameters: array of String): String
String TrimRight(String[] parameters)
Function TrimRight(parameters As String()) As String
Parameters:
- parameters:
UpperCase protected (declared in MSSQLMacroProcessor)
method UpperCase(parameters: array of String): String
String UpperCase(String[] parameters)
Function UpperCase(parameters As String()) As String
Parameters:
- parameters:
ClassSuffix (declared in SqlMacroProcessor)
const ClassSuffix: String = "MacroProcessor";
const String ClassSuffix = "MacroProcessor"
Dim ClassSuffix As String = "MacroProcessor"
CustomMacroHandler (declared in MacroParser)
property CustomMacroHandler: CustomMacroCallback read write;
CustomMacroCallback CustomMacroHandler { get; set; }
Property CustomMacroHandler() As CustomMacroCallback
DateFormat (declared in SqlMacroProcessor)
Gets the date format for the current database.
property DateFormat: String read;
String DateFormat { get; }
ReadOnly Property DateFormat() As String
DateTimeFormat (declared in SqlMacroProcessor)
Gets the datetime format for the current database.
property DateTimeFormat: String read;
String DateTimeFormat { get; }
ReadOnly Property DateTimeFormat() As String
DoubleQuoteStrings (declared in SqlMacroProcessor)
Gets the quote string for the date and datetime formats for the current database. If this property is true, the datetime format is represented as "datetime", otherwise as 'datetime'.
property DoubleQuoteStrings: Boolean read;
Boolean DoubleQuoteStrings { get; }
ReadOnly Property DoubleQuoteStrings() As Boolean
StoredProcedurePrefix (declared in SqlMacroProcessor)
Gets the prefix for stored procedures for the current database.
property StoredProcedurePrefix: String read;
String StoredProcedurePrefix { get; }
ReadOnly Property StoredProcedurePrefix() As String
StoredProcParamPrefix (declared in SqlMacroProcessor)
Gets the prefix for stored procedure params for the current database.
property StoredProcParamPrefix: String read;
String StoredProcParamPrefix { get; }
ReadOnly Property StoredProcParamPrefix() As String
constructor
constructor
MSSQL2012MacroProcessor()
Sub New()
constructor (String, String, Boolean, String) protected (declared in SqlMacroProcessor)
constructor(dateFormat: String; datetimeFormat: String; doubleQuoteStrings: Boolean; parameterPrefix: String)
MSSQL2012MacroProcessor(String dateFormat, String datetimeFormat, Boolean doubleQuoteStrings, String parameterPrefix)
Sub New(dateFormat As String, datetimeFormat As String, doubleQuoteStrings As Boolean, parameterPrefix As String)
Parameters:
- dateFormat:
- datetimeFormat:
- doubleQuoteStrings:
- parameterPrefix:
AddTime protected (declared in MSSQLMacroProcessor)
method AddTime(parameters: array of String): String
String AddTime(String[] parameters)
Function AddTime(parameters As String()) As String
Parameters:
- parameters:
AddVariable (declared in MacroParser)
Creates a new macro variable and adds it to the internal macro variables list.
method AddVariable(aName: String): MacroVariable
MacroVariable AddVariable(String aName)
Function AddVariable(aName As String) As MacroVariable
Parameters:
- aName:
ClearMacros (declared in MacroParser)
method ClearMacros
void ClearMacros()
Sub ClearMacros()
ClearVariables (declared in MacroParser)
Clears the internal list of registered macro variables.
method ClearVariables
void ClearVariables()
Sub ClearVariables()
ComposeMacroCall (declared in SqlMacroProcessor)
method ComposeMacroCall(macroKind: SqlMacroProcessor.MacroKind; params args: array of String): String
String ComposeMacroCall(SqlMacroProcessor.MacroKind macroKind, params String[] args)
Function ComposeMacroCall(macroKind As SqlMacroProcessor.MacroKind, ParamArray args As String()) As String
Parameters:
- macroKind:
- args:
Copy protected (declared in MSSQLMacroProcessor)
method Copy(parameters: array of String): String
String Copy(String[] parameters)
Function Copy(parameters As String()) As String
Parameters:
- parameters:
Date protected (declared in MSSQLMacroProcessor)
method Date(parameters: array of String): String
String Date(String[] parameters)
Function Date(parameters As String()) As String
Parameters:
- parameters:
DatePart protected (declared in MSSQLMacroProcessor)
method DatePart(parameters: array of String): String
String DatePart(String[] parameters)
Function DatePart(parameters As String()) As String
Parameters:
- parameters:
DateTime protected (declared in MSSQLMacroProcessor)
method DateTime(parameters: array of String): String
String DateTime(String[] parameters)
Function DateTime(parameters As String()) As String
Parameters:
- parameters:
Eval (declared in MacroParser)
Evaluates the given expression, substituting macro tags with specific variable values or macro function results.
String constants within provided expressions can be delimited using the TextDelimiter char.
method Eval(Text: String; TextDelimiter: Char): String
String Eval(String Text, Char TextDelimiter)
Function Eval(Text As String, TextDelimiter As Char) As String
Parameters:
- Text: Expression to process
- TextDelimiter: String constants delimiter
EvalToken (declared in MacroParser)
Evaluates the provided macro token. This method calls the macro function or replaces the macro variable placeholder with its value.
method EvalToken(Text: String): String
String EvalToken(String Text)
Function EvalToken(Text As String) As String
Parameters:
- Text: Macro expression token
FindVariable (declared in MacroParser)
Gets the macro variable with the specified name from the registered variables. Search is not case-sensitive.
If there is no variable with the provided name, null is returned.
method FindVariable(aName: String): MacroVariable
MacroVariable FindVariable(String aName)
Function FindVariable(aName As String) As MacroVariable
Parameters:
- aName: Variable name
FormatDate protected (declared in SqlMacroProcessor)
method FormatDate(parameters: array of String): String
String FormatDate(String[] parameters)
Function FormatDate(parameters As String()) As String
Parameters:
- parameters:
FormatDateTime protected (declared in SqlMacroProcessor)
method FormatDateTime(parameters: array of String): String
String FormatDateTime(String[] parameters)
Function FormatDateTime(parameters As String()) As String
Parameters:
- parameters:
GetNewInstance
method GetNewInstance: SqlMacroProcessor
SqlMacroProcessor GetNewInstance()
Function GetNewInstance() As SqlMacroProcessor
Length protected (declared in MSSQLMacroProcessor)
method Length(parameters: array of String): String
String Length(String[] parameters)
Function Length(parameters As String()) As String
Parameters:
- parameters:
LowerCase protected (declared in MSSQLMacroProcessor)
method LowerCase(parameters: array of String): String
String LowerCase(String[] parameters)
Function LowerCase(parameters As String()) As String
Parameters:
- parameters:
NoLock protected (declared in MSSQLMacroProcessor)
method NoLock(parameters: array of String): String
String NoLock(String[] parameters)
Function NoLock(parameters As String()) As String
Parameters:
- parameters:
RegisterMacro (declared in MacroParser)
method RegisterMacro(name: String; callback: Func<array of String, String>; paramCount: Int32)
void RegisterMacro(String name, Func<array of String, String> callback, Int32 paramCount)
Sub RegisterMacro(name As String, callback As Func<array of String, String>, paramCount As Int32)
Parameters:
- name:
- callback:
- paramCount:
RegisterMacros protected (declared in SqlMacroProcessor)
Registers the existing standard macros: * Date * DateTime * AddTime * FormatDateTime * FormatDate * Length * LowerCase * UpperCase * TrimLeft * TrimRight * Copy * NoLock
method RegisterMacros
void RegisterMacros()
Sub RegisterMacros()
Session protected (declared in SqlMacroProcessor)
method Session(parameters: array of String): String
String Session(String[] parameters)
Function Session(parameters As String()) As String
Parameters:
- parameters:
Time protected (declared in MSSQLMacroProcessor)
method Time(parameters: array of String): String
String Time(String[] parameters)
Function Time(parameters As String()) As String
Parameters:
- parameters:
Trim protected (declared in MSSQLMacroProcessor)
method Trim(parameters: array of String): String
String Trim(String[] parameters)
Function Trim(parameters As String()) As String
Parameters:
- parameters:
TrimLeft protected (declared in MSSQLMacroProcessor)
method TrimLeft(parameters: array of String): String
String TrimLeft(String[] parameters)
Function TrimLeft(parameters As String()) As String
Parameters:
- parameters:
TrimRight protected (declared in MSSQLMacroProcessor)
method TrimRight(parameters: array of String): String
String TrimRight(String[] parameters)
Function TrimRight(parameters As String()) As String
Parameters:
- parameters:
UpperCase protected (declared in MSSQLMacroProcessor)
method UpperCase(parameters: array of String): String
String UpperCase(String[] parameters)
Function UpperCase(parameters As String()) As String
Parameters:
- parameters: