breeze-client / FilterQueryOp
Class: FilterQueryOp
Defined in: src/query/entity-query.ts:1181
FilterQueryOp is an 'Enum' containing all of the valid Predicate filter operators for an EntityQuery.
Extends
Implements
QueryOp
Constructors
Constructor
new FilterQueryOp(
propertiesObj?):FilterQueryOp
Defined in: src/core/enum.ts:72
Creates a symbol, copying each property of propertiesObj onto it. Used to declare the symbols of an enum, as static members of its class; its name is set when the class calls BreezeEnum.resolveSymbols.
Parameters
propertiesObj?
Object
Returns
FilterQueryOp
Inherited from
Properties
_$typeName
_$typeName:
string
Defined in: src/core/enum.ts:60
Type of the enum; set in prototype of each enum
Inherited from
name
name:
string
Defined in: src/core/enum.ts:58
The name of this symbol
Inherited from
operator
operator:
string
Defined in: src/query/entity-query.ts:1183
The operator for this enum.
Implementation of
QueryOp.operator
All
staticAll:FilterQueryOp
Defined in: src/query/entity-query.ts:1206
Aliases: "every"
Any
staticAny:FilterQueryOp
Defined in: src/query/entity-query.ts:1204
Aliases: "some"
Contains
staticContains:FilterQueryOp
Defined in: src/query/entity-query.ts:1198
String operation: Is a string a substring of another string. Aliases: "substringof"
EndsWith
staticEndsWith:FilterQueryOp
Defined in: src/query/entity-query.ts:1202
No aliases
Equals
staticEquals:FilterQueryOp
Defined in: src/query/entity-query.ts:1186
Aliases: "eq", "=="
GreaterThan
staticGreaterThan:FilterQueryOp
Defined in: src/query/entity-query.ts:1190
Aliases: "gt", ">"
GreaterThanOrEqual
staticGreaterThanOrEqual:FilterQueryOp
Defined in: src/query/entity-query.ts:1194
Aliases: "ge", ">="
In
staticIn:FilterQueryOp
Defined in: src/query/entity-query.ts:1208
No aliases
LessThan
staticLessThan:FilterQueryOp
Defined in: src/query/entity-query.ts:1192
Aliases: "lt", "<"
LessThanOrEqual
staticLessThanOrEqual:FilterQueryOp
Defined in: src/query/entity-query.ts:1196
Aliases: "le", "<="
NotEquals
staticNotEquals:FilterQueryOp
Defined in: src/query/entity-query.ts:1188
Aliases: "ne", "!="
StartsWith
staticStartsWith:FilterQueryOp
Defined in: src/query/entity-query.ts:1200
No aliases
Methods
toJSON()
toJSON():
object
Defined in: src/core/enum.ts:180
Return enum name and symbol name
Returns
_$typeName
_$typeName:
any
The name of the enum, such as "EntityState".
name
name:
string
The name of the symbol, such as "Added".
Inherited from
toString()
toString():
string
Defined in: src/core/enum.ts:175
Returns the string name of this Enum
Returns
string
Inherited from
contains()
staticcontains(sym):boolean
Defined in: src/core/enum.ts:154
Returns whether an Enum contains a specified symbol.
let symbol = DayOfWeek.Friday;
if (DayOfWeek.contains(symbol)) {
// do something
}Parameters
sym
Object or symbol to test.
Returns
boolean
Whether this Enum contains the specified symbol.
Inherited from
fromName()
staticfromName(name):any
Defined in: src/core/enum.ts:113
Returns an Enum symbol given its name.
let dayOfWeek = DayOfWeek.from("Thursday");
// nowdayOfWeek === DayOfWeek.ThursdayParameters
name
string
Name for which an enum symbol should be returned.
Returns
any
The symbol that matches the name or 'undefined' if not found.
Inherited from
getNames()
staticgetNames():string[]
Defined in: src/core/enum.ts:100
Returns the names of all of the symbols contained within this Enum.
let symbols = DayOfWeek.getNames();Returns
string[]
All of the names of the symbols contained within this Enum.
Inherited from
getSymbols()
staticgetSymbols<T>(this):InstanceType<T>[]
Defined in: src/core/enum.ts:86
Returns all of the symbols contained within this Enum.
let symbols = DayOfWeek.getSymbols();Type Parameters
T
T extends typeof BreezeEnum
Parameters
this
T
Returns
InstanceType<T>[]
All of the symbols contained within this Enum.
Inherited from
resolveSymbols()
staticresolveSymbols():object[]
Defined in: src/core/enum.ts:124
Seals this enum so that no more symbols may be added to it. This should only be called after all symbols have already been added to the Enum. This method also sets the 'name' property on each of the symbols.
DayOfWeek.resolveSymbols();