The DataEngine object provides the data-handling component for Stonefield Query. It contains a data dictionary, exposed to the rest of the application as collections of AppView, Database, Field, Join, and Table objects.

Properties

NameData TypeDescription
AppViewsObjectA reference to the AppViews collection.
DatabasesObjectA reference to the Databases collection.
ErrorMessageStringThe text of any error that occurs.
ExcludeConditionsObjectA reference to the FilterConditions collection containing exclusion conditions.
FieldsObjectA reference to the Fields collection.
FilterConditionsObjectA reference to the FilterConditions collection containing filter conditions.
IncludeJoinsInWhereBooleanIndicates whether joins are included in the WHERE clause. This corresponds to the Include Joins in the WHERE Clause configuration setting but allows it to be changed programmatically.
JoinsObjectA reference to the Joins collection.
PerformJoinsBooleanIndicates whether Stonefield Query performs joins. This corresponds to the Stonefield Query Performs Joins configuration setting but allows it to be changed programmatically.
QuerySplitBooleanTrue if the query is being split into separate tables; Stonefield Query sometimes needs to do that, such as when the query references a virtual table.
TablesObjectA reference to the Tables collection.

Methods

NameDescription
AddToFavoritesAdds a table or field to the Favorites table.
AddToFieldsAdds fields to the SELECT clause of a SQL statement.
AddToWhereAdds a condition to the WHERE clause of a SQL statement.
GetFieldsFromSQLStatementReturns a collection of field names used in a SQL statement.
GetTablesFromSQLStatementReturns a collection of table names used in a SQL statement.
GetValuesForFieldPrompts the user for the value of a field.
GetValuesForParameterPrompts the user for the value of a stored procedure parameter.

See also

Application Object | Databases Collection | Fields Collection | FilterConditions Collection | Joins Collection | Tables Collection