OracleMacroProcessor 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 OracleMacroProcessor class is used to convert Data Abstract macros defined in the schema statement to Oracle format.
Methods of this class are used by Data Abstract to prepare SQL queries containing macro expressions for execution against Oracle databases.
Consider the following statement:
SELECT * FROM Orders WHERE OrderDate > {AddTime(Date(), 2, day)}
It will be converted to:
SELECT * FROM Orders WHERE OrderDate > SYSDATE + 2
Location
- Assembly: RemObjects.DataAbstract.Server.dll
- Namespace: RemObjects.DataAbstract.Server
- Ancestry: MacroParser | SqlMacroProcessor | OracleMacroProcessor
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 OracleMacroProcessor class.
|
| constructor (String, String, Boolean, String) (declared in SqlMacroProcessor) |
|
|
| AddTime protected |
|
Converts the {AddTime(<date>, <interval> and <interval_type>)} macro expressions to Oracle format. This macro is used in SQL queries to get a new datetime value based on adding an interval to the specified date.
|
| 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(<string>, <index> and <count>)} macro expressions to Oracle format. This macro is used in SQL queries to get <count> characters starting from <index> from <string>.
|
| Date protected |
|
Converts the {Date()} macro expression to Oracle format. This macro is used in SQL queries to get the current date from the server.
|
| DateTime protected |
|
Converts the {DateTime()} macro expression to Oracle format. This macro is used in SQL queries to get the current datetime from the server.
|
| 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 |
|
Converts the {FormatDate(<date>)} macro expression to Oracle format. This macro is used in SQL queries to format the specified date to the date format used by the database.
|
| FormatDateTime protected |
|
Converts the {FormatDateTime(<date>)} macro expression to Oracle format. This macro is used in SQL queries to format the specified datetime to the datetime format used by the database.
|
| GetNewInstance |
|
Returns a new instance of the AccessMacroProcessor class.
|
| Length protected |
|
Converts the {Length(<string>)} macro expression to Oracle format. This macro is used in SQL queries to get the length of the given String.
|
| LowerCase protected |
|
Converts the {LowerCase(<string>)} macro expression to Oracle format. This macro is used in SQL queries to convert the given String to lower case.
|
| 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 {Time()} macro expression to Oracle format. This macro is used in SQL queries to get the current time from the server.
|
| TrimLeft protected |
|
Converts the {TrimLeft(<string>)} macro expression to Oracle format. This macro is used in SQL queries to remove the leading spaces from a string.
|
| TrimRight protected |
|
Converts the {TrimRight(<string>)} macro expression to Oracle format. This macro is used in SQL queries to remove the trailing spaces from a string.
|
| UpperCase protected |
|
Converts the {UpperCase(<string>)} macro expression to Oracle format. This macro is used in SQL queries to convert the given string to upper case.
|
See Also
- Macro Processor
- 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