KNYSyncObject Class Reference
Inherits from | NSObject |
Declared in | KNYSyncObject.h |
Tasks
-
– initWithName:
-
– intForAttributeName:
-
– shortForAttributeName:
-
– longForAttributeName:
-
– longLongForAttributeName:
-
– unsignedLongLongForAttributeName:
-
– boolForAttributeName:
-
– doubleForAttributeName:
-
– floatForAttributeName:
-
– isAttributeNull:
-
– stringForAttributeName:
-
– dateForAttributeName:
-
– setInt:forAttributeName:
-
– setShort:forAttributeName:
-
– setDouble:forAttributeName:
-
– setFloat:forAttributeName:
-
– setLong:forAttributeName:
-
– setLongLong:forAttributeName:
-
– setString:forAttributeName:
-
– setBool:forAttributeName:
-
– setDate:forAttributeName:
-
– isDirty
-
– objectForAttributeName:
Instance Methods
boolForAttributeName:
returns unsigned BOOL value from syncObject.
- (NSNumber *)boolForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with BOOL value for a given attributeName
Discussion
returns unsigned BOOL value from syncObject.
Declared In
KNYSyncObject.h
dateForAttributeName:
Result set NSDate
value for Attribute.
- (NSDate *)dateForAttributeName:(NSString *)attributeName
Parameters
- AttributeName
NSString
value of the name of the Attribute.
Return Value
NSDate
value of the result set’s Attribute.
Discussion
Result set NSDate
value for Attribute.
Declared In
KNYSyncObject.h
doubleForAttributeName:
returns double value from syncObject.
- (NSNumber *)doubleForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with double value for a given attributeName
Discussion
returns double value from syncObject.
Declared In
KNYSyncObject.h
floatForAttributeName:
returns float value from syncObject.
- (NSNumber *)floatForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with float value for a given attributeName
Discussion
returns float value from syncObject.
Declared In
KNYSyncObject.h
initWithName:
creates and returns a instance of SyncObject with the specified sync object name
- (id)initWithName:(NSString *)syncObjectName
Parameters
- syncObjectName
syncObjectName
Return Value
an instance of SyncObject with the specified sync object name
Discussion
creates and returns a instance of SyncObject with the specified sync object name
Declared In
KNYSyncObject.h
intForAttributeName:
returns int value from syncObject.
- (NSNumber *)intForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with int value for a given attributeName
Discussion
returns int value from syncObject.
Declared In
KNYSyncObject.h
isAttributeNull:
Is the attribute NULL
?
- (BOOL)isAttributeNull:(NSString *)attributeName
Parameters
- attributeName
NSString
value of the name of the attribute.
Return Value
YES
if attribute is NULL
; NO
if not NULL
.
Discussion
Is the attribute NULL
?
Declared In
KNYSyncObject.h
isDirty
checks whether the sync object content have changed since it was loaded from the local device database.
- (BOOL)isDirty
Return Value
return YES if the sync object content have changed or else NO is returned.
Discussion
checks whether the sync object content have changed since it was loaded from the local device database.
Declared In
KNYSyncObject.h
longForAttributeName:
returns long value from syncObject.
- (NSNumber *)longForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with long value for a given attributeName
Discussion
returns long value from syncObject.
Declared In
KNYSyncObject.h
longLongForAttributeName:
returns long long value from syncObject.
- (NSNumber *)longLongForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with long long value for a given attributeName
Discussion
returns long long value from syncObject.
Declared In
KNYSyncObject.h
objectForAttributeName:
Result set object for column.
- (id)objectForAttributeName:(NSString *)attributeName
Parameters
- columnName
NSString
value of the name of the column.
Return Value
Either NSNumber
, NSString
, NSData
, or NSNull
. If the column was NULL
, this returns [NSNull null]
object.
Discussion
Result set object for column.
Declared In
KNYSyncObject.h
setBool:forAttributeName:
method to set the column data of type BOOL for a given key(columnName)
- (void)setBool:(NSNumber *)value forAttributeName:(NSString *)key
Parameters
- key
columnName
- forKey
columnData(NSNumber of BOOL type)
Discussion
method to set the column data of type BOOL for a given key(columnName)
Declared In
KNYSyncObject.h
setDate:forAttributeName:
method to set the column data of type double for a given key(columnName)
- (void)setDate:(NSDate *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSDate type)
- key
columnName
Discussion
method to set the column data of type double for a given key(columnName)
Declared In
KNYSyncObject.h
setDouble:forAttributeName:
method to set the column data of type double for a given key(columnName)
- (void)setDouble:(NSNumber *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of double type)
- key
columnName
Discussion
method to set the column data of type double for a given key(columnName)
Declared In
KNYSyncObject.h
setFloat:forAttributeName:
method to set the column data of type float for a given key(columnName)
- (void)setFloat:(NSNumber *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of float type)
- key
columnName
Discussion
method to set the column data of type float for a given key(columnName)
Declared In
KNYSyncObject.h
setInt:forAttributeName:
method to set the column data of type int for a given key(columnName)
- (void)setInt:(NSNumber *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of int type)
- key
columnName
Discussion
method to set the column data of type int for a given key(columnName)
Declared In
KNYSyncObject.h
setLong:forAttributeName:
method to set the column data of type long for a given key(columnName)
- (void)setLong:(NSNumber *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of long type)
- key
columnName
Discussion
method to set the column data of type long for a given key(columnName)
Declared In
KNYSyncObject.h
setLongLong:forAttributeName:
method to set the column data of type long long for a given key(columnName)
- (void)setLongLong:(NSNumber *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of long long type)
- key
columnName
Discussion
method to set the column data of type long long for a given key(columnName)
Declared In
KNYSyncObject.h
setShort:forAttributeName:
method to set the column data of type short for a given key(columnName)
- (void)setShort:(NSNumber *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of short type)
- key
columnName
Discussion
method to set the column data of type short for a given key(columnName)
Declared In
KNYSyncObject.h
setString:forAttributeName:
method to set the column data of type string for a given key(columnName)
- (void)setString:(NSString *)value forAttributeName:(NSString *)attributeName
Parameters
- value
columnData(NSNumber of string type)
- key
columnName
Discussion
method to set the column data of type string for a given key(columnName)
Declared In
KNYSyncObject.h
shortForAttributeName:
returns int value from syncObject.
- (NSNumber *)shortForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with short value for a given attributeName
Discussion
returns int value from syncObject.
Declared In
KNYSyncObject.h
stringForAttributeName:
returns string from syncObject..
- (NSString *)stringForAttributeName:(NSString *)attributeName
Return Value
NString
Discussion
returns string from syncObject..
Declared In
KNYSyncObject.h
unsignedLongLongForAttributeName:
returns unsigned long long value from syncObject.
- (NSNumber *)unsignedLongLongForAttributeName:(NSString *)attributeName
Parameters
- attributeName
attributeName
Return Value
return NSNumber with unsigned long long value for a given attributeName
Discussion
returns unsigned long long value from syncObject.
Declared In
KNYSyncObject.h