SqlMacroProcessor Class

This is a Library topic for Data Abstract for .NET
This page is generated from external data, please do not update
Namespaces — Interfaces — Classes — Enums — Implements
Contents |
Overview
The SqlMacroProcessor provides the base for classes that can process macros in SQL queries for different databases. It is part of the Macro Processor conception.
This class allows to use the following macros in SQL queries:
|
|
Location
- Assembly: RemObjects.DataAbstract.Server.dll
- Namespace: RemObjects.DataAbstract.Server
- Ancestry: MacroParser | SqlMacroProcessor | Descendants
Properties
| DateFormat |
|---|
|
Gets the date format for the current database.
|
| DateTimeFormat |
|
Gets the datetime format for the current database.
|
| DoubleQuoteStrings |
|
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'.
|
| StoredProcedurePrefix |
|
Gets the prefix for stored procedures for the current database.
|
| StoredProcParamPrefix |
|
Gets the prefix for stored procedure params for the current database.
|
| UnknownIdentifier (declared in MacroParser) |
|
Points to the method that should be called when an unknown macro function or variable is encountered during expression parsing. The called method is able to set the value of the otherwise undefined macro variable. For example, this approach is used to provide access to Session values in the {WHERE} of SchemaDataTable statements.
|
| Variable (declared in MacroParser) |
|
Gets the macro variable at the specified index.
|
| VariableCount (declared in MacroParser) |
|
Gets the number of macro variables registered in the current MacroParser instance.
|
Instance Methods
| constructor () (declared in MacroParser) |
|---|
|
Creates a new instance of the MacroParser class.
|
| constructor (String, String, Boolean, String) |
|
|
| AddTime protected |
|
In the descendant, this method should process the AddTime macro.
|
| AddVariable (declared in MacroParser) |
|
Creates a new macro variable and adds it to the internal macro variables list.
|
| ClearProcs (declared in MacroParser) |
|
Clears the internal list of registered macro procedures.
|
| ClearVariables (declared in MacroParser) |
|
Clears the internal list of registered macro variables.
|
| ComposeLengthCall |
|
|
| ComposeToLowerCall |
|
|
| ComposeToUpperCall |
|
|
| Copy protected |
|
In the descendant, this method should process the Copy macro.
|
| Date protected |
|
In the descendant, this method should process the Date macro.
|
| DateTime protected |
|
In the descendant, this method should process the DateTime macro.
|
| DeleteVariable (declared in MacroParser) |
|
Removes the macro variable with the specified name from the internal list of registered variables.
|
| 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.
|
| EvalToken (declared in MacroParser) |
|
Evaluates the provided macro token. This method calls the macro function or replaces the macro variable placeholder with its value.
|
| 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.
|
| FormatDate protected |
|
Returns the formatted date according to the DoubleQuoteStrings and DateFormat properties.
|
| FormatDateTime protected |
|
Returns the formatted date and time according to the DoubleQuoteStrings and DateFormat properties.
|
| GetNewInstance |
|
|
| Length protected |
|
In the descendant, this method should process the Length macro.
|
| LowerCase protected |
|
In the descendant, this method should process the LowerCase macro.
|
| NoLock protected |
|
|
| RegisterMacros protected |
|
Registers the existing standard macros:
|
| RegisterProc (declared in MacroParser) |
|
Creates a new macro procedure and adds it to the internal macro procedures list.
|
| Session protected |
|
|
| Time protected |
|
In the descendant, this method should process the Time macro.
|
| TrimLeft protected |
|
In the descendant, this method should process the TrimLeft macro.
|
| TrimRight protected |
|
In the descendant, this method should process the TrimRight macro.
|
| UpperCase protected |
|
In the descendant, this method should process the UpperCase macro.
|
Descendants
- AccessMacroProcessor
- DBISAMMacroProcessor
- DefaultSqlMacroProcessor
- ElevateDBMacroProcessor
- FirebirdMacroProcessor
- InterbaseMacroProcessor
- MSSQLMacroProcessor
- MySQLMacroProcessor
- NexusDBMacroProcessor
- OracleMacroProcessor
See Also
- Lists
- Data Abstract for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects Script for .NET: Namespaces — Classes
- Data Abstract shared: Data Types – File Types
- other editions:
- Data Abstract for Xcode: Protocols — Classes — Enums — Implements
- Data Abstract for Delphi: Interfaces — Classes — Enums — Aliases — Implements
- Data Abstract for Java: Namespaces — Interfaces — Classes — Enums — Implements
- Data Abstract for JavaScript: Objects
- Data Abstract for .NET: Namespaces — Interfaces — Classes — Enums — Implements

Product: RemObjects Data Abstract
Available Editions: Data Abstract for .NET, Delphi and Xcode