Update Condition. More...
#import <SimpleDBUpdateCondition.h>
Public Member Functions | |
(id) | - init |
Default constructor for a new UpdateCondition object. | |
(id) | - initWithName:andValue:andExists: |
Constructs a new UpdateCondition object. | |
(NSString *) | - description |
Returns a string representation of this object; useful for testing and debugging. | |
Properties | |
NSString * | name |
The name of the attribute involved in the condition. | |
NSString * | value |
The value of an attribute. | |
bool | exists |
A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. |
Update Condition.
- (NSString* SimpleDBUpdateCondition.)description |
Returns a string representation of this object; useful for testing and debugging.
- (id SimpleDBUpdateCondition.)init |
Default constructor for a new UpdateCondition object.
Callers should use the property methods to initialize this object after creating it.
- (id SimpleDBUpdateCondition.)initWithName: | (NSString *) | theName | ||
andValue: | (NSString *) | theValue | ||
andExists: | (bool) | theExists | ||
Constructs a new UpdateCondition object.
Callers should use properties to initialize any additional object members.
theName | The name of the attribute involved in the condition. | |
theValue | The value of an attribute. This value can only be specified when the Exists parameter is equal to true . | |
theExists | A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied. |
- (bool) exists [read, write, assign] |
A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied.
Specify true
if the attribute must exist for the update condition to be satisfied. Specify false
if the attribute should not exist in order for the update condition to be satisfied.
- (NSString *) value [read, write, retain] |
The value of an attribute.
This value can only be specified when the Exists
parameter is equal to true
.