WCTUpdate Class Reference

Inherits from WCTChainCall : WCTCore : NSObject
Declared in WCTUpdate.h

Overview

Not Thread-safe

– where:

WINQ interface for SQL.

- (instancetype)where:(const WCTCondition &)condition

Parameters

condition

condition

Return Value

self

Declared In

WCTUpdate.h

– orderBy:

WINQ interface for SQL.

- (instancetype)orderBy:(const WCTOrderByList &)orderList

Parameters

orderList

order list

Return Value

self

Declared In

WCTUpdate.h

– limit:

WINQ interface for SQL.

- (instancetype)limit:(const WCTLimit &)limit

Parameters

limit

limit

Return Value

self

Declared In

WCTUpdate.h

– offset:

WINQ interface for SQL.

- (instancetype)offset:(const WCTOffset &)offset

Parameters

offset

offset

Return Value

self

Declared In

WCTUpdate.h

– executeWithObject:

Execute the update SQL with objects.

- (BOOL)executeWithObject:(WCTObject *)object

Parameters

object

Template object to be used to update table.

Return Value

YES if no error occurs. See [error] also.

Declared In

WCTUpdate.h

– executeWithRow:

Execute the update SQL with objects.

- (BOOL)executeWithRow:(WCTOneRow *)row

Parameters

row

Template row to be used to update table

Return Value

YES if no error occurs. See [error] also.

Declared In

WCTUpdate.h

– changes

It should be called after executing successfully

- (int)changes

Return Value

the number of changes in the most recent call

Declared In

WCTUpdate.h