FirebirdMacroProcessor 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 FirebirdMacroProcessor class provides Firebird SQL-specific definitions for SQL functions defined in the SqlMacroProcessor class.
The FirebirdMacroProcessor class is used to process macros in Schema statements that have their ConnectionType set to Interbase. Look at the following statement:
SELECT * FROM Orders WHERE order_date = {Date()}
will be converted to
SELECT * FROM Orders WHERE order_date = DATE 'NOW'
Note: You can find more about macro processors and macro functions in this article.
Location
- Assembly: RemObjects.DataAbstract.Server.dll
- Namespace: RemObjects.DataAbstract.Server
- Ancestry: MacroParser | SqlMacroProcessor | FirebirdMacroProcessor
Properties
| DateFormat (declared in SqlMacroProcessor) |
|---|
|
Gets the date format for the current database.
|
| DateTimeFormat (declared in SqlMacroProcessor) |
|
Gets the datetime format for the current database.
|
| 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'.
|
| StoredProcedurePrefix (declared in SqlMacroProcessor) |
|
Gets the prefix for stored procedures for the current database.
|
| StoredProcParamPrefix (declared in SqlMacroProcessor) |
|
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 () |
|---|
|
Creates a new instance of the FirebirdMacroProcessor class.
|
| constructor (String, String, Boolean, String) (declared in SqlMacroProcessor) |
|
|
| AddTime protected |
|
Converts the {AddTime} macro into a DATEADD function call.
|
| 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 (declared in SqlMacroProcessor) |
|
|
| ComposeToLowerCall (declared in SqlMacroProcessor) |
|
|
| ComposeToUpperCall (declared in SqlMacroProcessor) |
|
|
| Copy protected |
|
Converts the {Copy} macro into a SUBSTRING function call.
|
| Date protected |
|
Converts the {Date} macro into a NOW function call and returns the DATE part of the result.
|
| DateTime protected |
|
Converts a {DateTime} macro into a NOW function call and returns the TIMESTAMP part of its result.
|
| 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 |
|
Formats the provided date using the 'yyyy-MM-dd' date format.
|
| FormatDateTime protected |
|
Formats the provided datetime using the 'yyyy-MM-dd HH:mm:ss' format.
|
| GetNewInstance |
|
Creates a new instance of the FirebirdMacroProcessor class.
|
| Length protected |
|
Converts the {Length} macro into a CHAR_LENGTH function call.
|
| LowerCase protected |
|
Converts the {LowerCase} macro into a LOWER function call.
|
| NoLock protected (declared in SqlMacroProcessor) |
|
|
| RegisterMacros protected (declared in SqlMacroProcessor) |
|
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 (declared in SqlMacroProcessor) |
|
|
| Time protected |
|
Converts the {Date} macro into a NOW function call and returns the TIME part of its result.
|
| TrimLeft protected |
|
Converts the {TrimLeft} macro into a TRIM(LEADING <argument>) function call.
|
| TrimRight protected |
|
Converts the {TrimRight} macro into a TRIM(TRAILING <argument>) function call.
|
| UpperCase protected |
|
Converts the {UpperCase} macro into an UPPER function call.
|
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