C# OJAI Client API
|
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] |
IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.And | ( | ) |
Begins a new AND compound condition block.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Build | ( | ) |
Closes all nested compound condition blocks.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Close | ( | ) |
Closes a compound condition block.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Condition | ( | IQueryCondition | conditionToAdd | ) |
Appends the specified condition to the current condition block.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.ElementAnd | ( | string | path | ) |
Begins a new ElementAnd compound condition block.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
IQueryCondition MapRDB.Driver.Ojai.IQueryCondition.Or | ( | ) |
Begins a new OR compound condition block.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
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.
IDictionary<string, Object> MapRDB.Driver.Ojai.IQueryCondition.ToDictionary | ( | ) |
Parse query condition into dictionary.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
string MapRDB.Driver.Ojai.IQueryCondition.ToJsonString | ( | ) |
Parse query condition into JSON string.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
string MapRDB.Driver.Ojai.IQueryCondition.ToJsonString | ( | Formatting | formatting | ) |
Parse query condition into JSON string.
Implemented in MapRDB.Driver.Ojai.OjaiQueryCondition.
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.