WCTTable Class Reference

Inherits from WCTCore : NSObject
Declared in WCTTable.h

Overview

WCTTable(Convenient) category contains the combination of common operations on SQL. Although it’s all glue code here, it works and it can bring you convenience. It’s fairly straightforward so that no comment here.

Thread-safe

Other Methods

  tableName

The name of the table.

@property (nonatomic, readonly) NSString *tableName

Discussion

The name of the table.

Declared In

WCTTable.h

  cls

The class binding to this table.

@property (nonatomic, readonly) Class cls

Discussion

The class binding to this table.

Declared In

WCTTable.h

ChainCall Methods

– prepareInsertObjects

Generate a WCTInsert to do an insertion on this table.

- (WCTInsert *)prepareInsertObjects

Return Value

WCTInsert

Discussion

Generate a WCTInsert to do an insertion on this table.

Declared In

WCTTable+ChainCall.h

– prepareInsertOrReplaceObjects

Generate a WCTInsert to do an insertion or replacement on this table.

- (WCTInsert *)prepareInsertOrReplaceObjects

Return Value

WCTInsert

Discussion

Generate a WCTInsert to do an insertion or replacement on this table.

Declared In

WCTTable+ChainCall.h

– prepareInsertObjectsOnProperties:

Generate a WCTInsert to do a partial insertion on this table.

- (WCTInsert *)prepareInsertObjectsOnProperties:(const WCTPropertyList &)propertyList

Parameters

propertyList

The specific properties to be inserted.

Return Value

WCTInsert

Discussion

Generate a WCTInsert to do a partial insertion on this table.

Declared In

WCTTable+ChainCall.h

– prepareInsertOrReplaceObjectsOnProperties:

Generate a WCTInsert to do a partial insertion or replacement on this table.

- (WCTInsert *)prepareInsertOrReplaceObjectsOnProperties:(const WCTPropertyList &)propertyList

Parameters

propertyList

The specific properties to be inserted.

Return Value

WCTInsert

Discussion

Generate a WCTInsert to do a partial insertion or replacement on this table.

Declared In

WCTTable+ChainCall.h

– prepareDelete

Generate a WCTDelete to do a deletion.

- (WCTDelete *)prepareDelete

Return Value

WCTDelete

Discussion

Generate a WCTDelete to do a deletion.

Declared In

WCTTable+ChainCall.h

– prepareUpdateOnProperties:

Generate a WCTUpdate to do an update.

- (WCTUpdate *)prepareUpdateOnProperties:(const WCTPropertyList &)propertyList

Parameters

propertyList

The specific properties to be updated.

Return Value

WCTUpdate

Discussion

Generate a WCTUpdate to do an update.

Declared In

WCTTable+ChainCall.h

– prepareSelectObjects

Generate a WCTSelect to do an object selection.

- (WCTSelect *)prepareSelectObjects

Return Value

WCTSelect

Discussion

Generate a WCTSelect to do an object selection.

Declared In

WCTTable+ChainCall.h

– prepareSelectObjectsOnResults:

Generate a WCTSelect to do an object selection on the specific results.

- (WCTSelect *)prepareSelectObjectsOnResults:(const WCTResultList &)resultList

Parameters

resultList

The column results to be selected.

Return Value

WCTSelect

Discussion

Generate a WCTSelect to do an object selection on the specific results.

Declared In

WCTTable+ChainCall.h

– prepareSelectRowsOnResults:

Generate a WCTRowSelect to do a row selection on the specific results.

- (WCTRowSelect *)prepareSelectRowsOnResults:(const WCTResultList &)resultList

Parameters

resultList

The column results to be selected.

Return Value

WCTRowSelect

Discussion

Generate a WCTRowSelect to do a row selection on the specific results.

Declared In

WCTTable+ChainCall.h