SwpFMDBManager Class Reference

Inherits from NSObject
Declared in SwpFMDBManager.h
SwpFMDBManager.m

Overview

———————- Tool ———————- !

+ executeVerifyThatTheTableExists:dataBase:isCloseDB:

executeVerifyThatTheTableExists:dataBase:isCloseDB: ( 验证表是否存在 )

+ (BOOL)executeVerifyThatTheTableExists:(Class)table dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB

Parameters

table

table

dataBase

dataBase

isCloseDB

isCloseDB

Return Value

BOOL

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ createTable:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

createTable:swpFMDB:dataBase:isCloseDB:executionUpdateComplete: ( 创建表 )

+ (void)createTable:(Class)table swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

table

table

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ insertModel:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

insertModel:swpFMDB:dataBase:isCloseDB:executionUpdateComplete: ( 插入单条数据 )

+ (void)insertModel:(NSObject *)model swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

model

model

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ insertModels:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

insertModels:swpFMDB:dataBase:isCloseDB:executionUpdateComplete: ( 插入多条数据 )

+ (void)insertModels:(NSArray *)models swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

models

models

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ updateModel:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

updateModel:swpFMDB:dataBase:isCloseDB:executionUpdateComplete: ( 更新单条数据 )

+ (void)updateModel:(NSObject *)model swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

model

model

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ updateModels:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

updateModels:swpFMDB:dataBase:isCloseDB:executionUpdateComplete: ( 更新一组数据 )

+ (void)updateModels:(NSArray *)models swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

models

models

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ selectModel:bySwpDBID:swpFMDB:dataBase:isCloseDB:executionSelectModelComplete:

selectModel:bySwpDBID:swpFMDB:dataBase:isCloseDB:executionSelectModelComplete: ( 查询单条数据 )

+ (void)selectModel:(Class)modelClass bySwpDBID:(NSString *)swpDBID swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionSelectModelComplete:(SwpFMDBExecutionSelectModelComplete)executionSelectModelComplete

Parameters

modelClass

modelClass

swpDBID

swpDBID

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionSelectModelComplete

executionSelectModelComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ selectModels:swpFMDB:dataBase:isCloseDB:executionSelectModelsComplete:

selectModels:swpFMDB:dataBase:isCloseDB:executionSelectModelsComplete: ( 查询全部数据 )

+ (void)selectModels:(Class)modelClass swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionSelectModelsComplete:(SwpFMDBExecutionSelectModelsComplete)executionSelectModelsComplete

Parameters

modelClass

modelClass

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionSelectModelsComplete

executionSelectModelsComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ delegateModel:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

delegateModel:swpFMDB:dataBase:isCloseDB:executionSelectModelsComplete: ( 删除指定数据 )

+ (void)delegateModel:(NSObject *)model swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

model

model

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ delegateModels:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

delegateModels:swpFMDB:dataBase:isCloseDB:executionSelectModelsComplete: ( 删除一组数据 )

+ (void)delegateModels:(NSArray *)models swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

models

models

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ clearModels:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

clearModels:swpFMDB:dataBase:isCloseDB:executionSelectModelsComplete: ( 清空全部数据 )

+ (void)clearModels:(Class)modelClass swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

modelClass

modelClass

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m

+ deleteTable:swpFMDB:dataBase:isCloseDB:executionUpdateComplete:

deleteTable:swpFMDB:dataBase:isCloseDB:executionSelectModelsComplete: ( 删除表数据 )

+ (void)deleteTable:(Class)table swpFMDB:(SwpFMDB *)swpFMDB dataBase:(FMDatabase *)dataBase isCloseDB:(BOOL)isCloseDB executionUpdateComplete:(SwpFMDBExecutionUpdateComplete)executionUpdateComplete

Parameters

table

table

swpFMDB

swpFMDB

dataBase

dataBase

isCloseDB

isCloseDB

executionUpdateComplete

executionUpdateComplete

Discussion

@author swp_song

Declared In

SwpFMDBManager.m