RecordRestriction Class

Defines a parameterized record restriction that can be applied to queries.

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.110 -- Release Build+b4bcf74734aa051a9b802d8f3f6ec05bd02af749
public class RecordRestriction : IEquatable<RecordRestriction>
Inheritance
Object    RecordRestriction
Implements
IEquatableRecordRestriction

Remarks

For versatility, values in the Parameters array are mutable, however, this makes the array vulnerable to unintended updates for long-lived instances. Consequently, the normal use-case of record restriction instances should be considered temporal. If an instance needs to be cached, consider use of the Clone function to reduce risk of unintended array updates.

Constructors

RecordRestriction Creates a new parameterized RecordRestriction with the specified SQL filter expression and parameters.

Properties

Item Gets or sets Parameters field value for the specified index.

Methods

Clone Creates a deep copy of this record restriction.
Clone(RecordRestriction) Creates a deep copy of the source record restriction.
CombineAnd Combines two record restrictions with an AND condition.
CombineOr Combines two record restrictions with an OR condition.
Equals(Object) Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Equals(RecordRestriction) Indicates whether the current object is equal to another object of the same type.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Operators

Addition(RecordRestriction, RecordRestriction) Combines two record restrictions with an AND condition.
BitwiseAnd(RecordRestriction, RecordRestriction) Combines two record restrictions with an AND condition.
BitwiseOr(RecordRestriction, RecordRestriction) Combines two record restrictions with an OR condition.
Equality(RecordRestriction, RecordRestriction) Compares to record restrictions for equality.
(String to RecordRestriction) Implicitly converts a String based filter expression into a RecordRestriction.
Inequality(RecordRestriction, RecordRestriction) Compares to record restrictions for inequality.

Fields

FilterExpression Defines filter SQL expression for restriction as a composite format string - does not include WHERE. When escaping is needed for field names, use standard ANSI quotes.
Parameters Defines restriction parameter values.

See Also