C# OJAI Client API
MapRDB.Driver.Ojai.IQueryCondition Interface Reference
Inheritance diagram for MapRDB.Driver.Ojai.IQueryCondition:
MapRDB.Driver.Ojai.OjaiQueryCondition

Public Member Functions

string ToJsonString ()
 Parse query condition into JSON string. More...
 
string ToJsonString (Formatting formatting)
 Parse query condition into JSON string. More...
 
IDictionary< string, Object > ToDictionary ()
 Parse query condition into dictionary. More...
 
IQueryCondition And ()
 Begins a new AND compound condition block. More...
 
IQueryCondition Or ()
 Begins a new OR compound condition block. More...
 
IQueryCondition ElementAnd (string path)
 Begins a new ElementAnd compound condition block. More...
 
IQueryCondition Close ()
 Closes a compound condition block. More...
 
IQueryCondition Build ()
 Closes all nested compound condition blocks. More...
 
IQueryCondition Condition (IQueryCondition conditionToAdd)
 Appends the specified condition to the current condition block. More...
 
IQueryCondition Exists (string path)
 Adds a condition that tests for existence of the specified FieldPath. More...
 
IQueryCondition NotExists (string path)
 Adds a condition that tests for non-existence of the specified FieldPath. More...
 
IQueryCondition In (string path, IList< Object > listOfValue)
 Adds a condition that tests if the Value at the specified FieldPath is equal to at least one of the values in the specified List. More...
 
IQueryCondition NotIn (string path, IList< Object > listOfValue)
 Adds a condition that tests if the Value at the specified FieldPath is not equal to any of the values in the specified List. More...
 
IQueryCondition TypeOf (string path, Type type)
 Adds a condition that tests if the Value at the specified FieldPath is of the specified Type. More...
 
IQueryCondition NotTypeOf (string path, Type type)
 Adds a condition that tests if the Value at the specified FieldPath is not of the specified Type. More...
 
IQueryCondition Matches (string path, string regex)
 Adds a condition that tests if the Value at the specified FieldPath is a string and matches the specified regular expression. More...
 
IQueryCondition NotMatches (string path, string regex)
 Adds a condition that tests if the Value at the specified FieldPath is a string and not matches the specified regular expression. More...
 
IQueryCondition Like (string path, string likeExpression)
 Adds a condition that tests if the Value at the specified FieldPath is a string and matches the specified SQL LIKE expression. More...
 
IQueryCondition Like (string path, string likeExpression, char escapeChar)
 Adds a condition that tests if the Value at the specified FieldPath is a string and matches the specified SQL LIKE expression optionally escaped with the specified escape character. More...
 
IQueryCondition NotLike (string path, string likeExpression)
 Adds a condition that tests if the Value at the specified FieldPath is a string and not matches the specified SQL LIKE expression. More...
 
IQueryCondition NotLike (string path, string likeExpression, char escapeChar)
 Adds a condition that tests if the Value at the specified FieldPath is a string and not matches the specified SQL LIKE expression optionally escaped with the specified escape character. More...
 
IQueryCondition Is (string path, QueryOp op, bool value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified bool value. More...
 
IQueryCondition Is (string path, QueryOp op, string value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified string value. More...
 
IQueryCondition Is (string path, QueryOp op, byte value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified byte value. More...
 
IQueryCondition Is (string path, QueryOp op, short value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified short value. More...
 
IQueryCondition Is (string path, QueryOp op, int value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified int value. More...
 
IQueryCondition Is (string path, QueryOp op, long value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified long value. More...
 
IQueryCondition Is (string path, QueryOp op, float value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified float value. More...
 
IQueryCondition Is (string path, QueryOp op, double value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified double value. More...
 
IQueryCondition Is (string path, QueryOp op, decimal value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified decimal value. More...
 
IQueryCondition Is (string path, QueryOp op, OjaiDate value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiDate value. More...
 
IQueryCondition Is (string path, QueryOp op, OjaiTime value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiTime value. More...
 
IQueryCondition Is (string path, QueryOp op, OjaiTimestamp value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiTimestamp value. More...
 
IQueryCondition Is (string path, QueryOp op, OjaiInterval value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiInterval value. More...
 
IQueryCondition Is (string path, QueryOp op, byte[] value)
 Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified byte[] value. More...
 
IQueryCondition Equals (string path, IDictionary< string, Object > value)
 Adds a condition that tests if the Value at the specified FieldPath equals the specified Dictionary value. Two Dictionaries are considered equal if and only if they contain the same key-value pair in the same order. More...
 
IQueryCondition Equals (string path, IList< Object > value)
 Adds a condition that tests if the Value at the specified FieldPath equals the specified List value. More...
 
IQueryCondition NotEquals (string path, IDictionary< string, Object > value)
 Adds a condition that tests if the Value at the specified FieldPath not equals the specified Dictionary value. Two Dictionaries are considered equal if and only if they contain the same key-value pair in the same order. More...
 
IQueryCondition NotEquals (string path, IList< Object > value)
 Adds a condition that tests if the Value at the specified FieldPath not equals the specified List value. More...
 
IQueryCondition SizeOf (string path, QueryOp op, long size)
 Adds a condition that tests if the size of the Value at the specified FieldPath satisfies the given QueryOp and the size. The value must be one of the following types: string, binary, IDictionary or IList. More...
 

Properties

bool IsBuilt [get]
 
bool IsEmpty [get]
 

Member Function Documentation

◆ And()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.And ( )

Begins a new AND compound condition block.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Build()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Build ( )

Closes all nested compound condition blocks.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Close()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Close ( )

Closes a compound condition block.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Condition()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Condition ( IQueryCondition  conditionToAdd)

Appends the specified condition to the current condition block.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ ElementAnd()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.ElementAnd ( string  path)

Begins a new ElementAnd compound condition block.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Equals() [1/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Equals ( string  path,
IDictionary< string, Object >  value 
)

Adds a condition that tests if the Value at the specified FieldPath equals the specified Dictionary value. Two Dictionaries are considered equal if and only if they contain the same key-value pair in the same order.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Equals() [2/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Equals ( string  path,
IList< Object >  value 
)

Adds a condition that tests if the Value at the specified FieldPath equals the specified List value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Exists()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Exists ( string  path)

Adds a condition that tests for existence of the specified FieldPath.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ In()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.In ( string  path,
IList< Object >  listOfValue 
)

Adds a condition that tests if the Value at the specified FieldPath is equal to at least one of the values in the specified List.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [1/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
bool  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified bool value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [2/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
string  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified string value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [3/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
byte  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified byte value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [4/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
short  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified short value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [5/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
int  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified int value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [6/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
long  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified long value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [7/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
float  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified float value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [8/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
double  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified double value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [9/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
decimal  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified decimal value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [10/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
OjaiDate  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiDate value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [11/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
OjaiTime  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiTime value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [12/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
OjaiTimestamp  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiTimestamp value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [13/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
OjaiInterval  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified OjaiInterval value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Is() [14/14]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Is ( string  path,
QueryOp  op,
byte []  value 
)

Adds a condition that tests if the Value at the specified FieldPath satisfies the given QueryOp against the specified byte[] value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Like() [1/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Like ( string  path,
string  likeExpression 
)

Adds a condition that tests if the Value at the specified FieldPath is a string and matches the specified SQL LIKE expression.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Like() [2/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Like ( string  path,
string  likeExpression,
char  escapeChar 
)

Adds a condition that tests if the Value at the specified FieldPath is a string and matches the specified SQL LIKE expression optionally escaped with the specified escape character.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Matches()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Matches ( string  path,
string  regex 
)

Adds a condition that tests if the Value at the specified FieldPath is a string and matches the specified regular expression.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotEquals() [1/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotEquals ( string  path,
IDictionary< string, Object >  value 
)

Adds a condition that tests if the Value at the specified FieldPath not equals the specified Dictionary value. Two Dictionaries are considered equal if and only if they contain the same key-value pair in the same order.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotEquals() [2/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotEquals ( string  path,
IList< Object >  value 
)

Adds a condition that tests if the Value at the specified FieldPath not equals the specified List value.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotExists()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotExists ( string  path)

Adds a condition that tests for non-existence of the specified FieldPath.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotIn()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotIn ( string  path,
IList< Object >  listOfValue 
)

Adds a condition that tests if the Value at the specified FieldPath is not equal to any of the values in the specified List.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotLike() [1/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotLike ( string  path,
string  likeExpression 
)

Adds a condition that tests if the Value at the specified FieldPath is a string and not matches the specified SQL LIKE expression.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotLike() [2/2]

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotLike ( string  path,
string  likeExpression,
char  escapeChar 
)

Adds a condition that tests if the Value at the specified FieldPath is a string and not matches the specified SQL LIKE expression optionally escaped with the specified escape character.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotMatches()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotMatches ( string  path,
string  regex 
)

Adds a condition that tests if the Value at the specified FieldPath is a string and not matches the specified regular expression.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ NotTypeOf()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.NotTypeOf ( string  path,
Type  type 
)

Adds a condition that tests if the Value at the specified FieldPath is not of the specified Type.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ Or()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Or ( )

Begins a new OR compound condition block.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ SizeOf()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.SizeOf ( string  path,
QueryOp  op,
long  size 
)

Adds a condition that tests if the size of the Value at the specified FieldPath satisfies the given QueryOp and the size. The value must be one of the following types: string, binary, IDictionary or IList.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ ToDictionary()

IDictionary<string, Object> MapRDB.Driver.Ojai.IQueryCondition.ToDictionary ( )

Parse query condition into dictionary.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ ToJsonString() [1/2]

string MapRDB.Driver.Ojai.IQueryCondition.ToJsonString ( )

Parse query condition into JSON string.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ ToJsonString() [2/2]

string MapRDB.Driver.Ojai.IQueryCondition.ToJsonString ( Formatting  formatting)

Parse query condition into JSON string.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.

◆ TypeOf()

IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.TypeOf ( string  path,
Type  type 
)

Adds a condition that tests if the Value at the specified FieldPath is of the specified Type.

Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.