Table of Contents

TFilterDefinition Class

Defines a named query filter with a default SQL condition and typed parameter declarations.

Remarks

A filter definition acts as a reusable, named WHERE-clause template that can be applied to entities via their mapping. When enabled at runtime through the object manager, the filter's SQL condition is automatically appended to every query against matching entities. Parameters are declared with DefineParam and their runtime values are supplied via TEnabledFilter.SetParam.

Syntax

Unit: Aurelius.Mapping.Metadata

TFilterDefinition = class(TObject);

Methods

Name Description
DefineParam Declares a named parameter for this filter definition.
FindParam Returns the parameter definition with the given name, or nil if not found.
IndexOfParam Returns the zero-based index of the parameter with the given name, or -1 if not found.
ParamDefCount Returns the number of parameters declared in this filter definition.

Properties

Name Description
DefaultSqlCondition Returns the default SQL condition associated with this filter definition.
FilterName Returns the name of this filter.