/*
* Copyright (c) 2008 Plausible Labs Cooperative, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holder nor the names of any contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/**
* Result values returned when iterating PLResetSet rows.
*
* @ingroup constants
*/
typedef enum {
/** No further rows available */
PLResultSetStatusDone = 0,
/** An additional row is available. */
PLResultSetStatusRow = 1,
/** An error occured retrieving the row. */
PLResultSetStatusError = 2
} PLResultSetStatus;
/**
* Represents a set of results returned by an SQL query.
*
* @par Thread Safety
* PLResultSet instances implement no locking and must not be shared between threads
* without external synchronization.
*/
@protocol PLResultSet <NSObject>
/**
* Move the result cursor to the next available row. If no further rows
* are available or an error occurs, returns NO.
*
* @return YES if the cursor was moved to the next row, NO if no further rows were available or an error
* has occured.
*
* @deprecated This method fails to differentiate between end of rows and an error condition. New code should be
* written to use -[PLResultSet nextAndReturnError:].
*/
- (BOOL) next;
/**
* Move the result cursor to the next available row. If no further rows
* are available or an error occurs, returns NO.
*
* @param outError A pointer to an NSError object variable. If an error occurs, this
* pointer will contain an error object indicating why the statement could not be executed.
* If no error occurs, this parameter's value will not be modified. You may specify NULL for this
* parameter, and no error information will be provided.
*
* @return Returns #PLResultSetStatusRow if the next row is available, or #PLResultSetStatusDone if no
* further rows are available. If an error occurs, #PLResultSetStatusError will be returned.
*/
- (PLResultSetStatus) nextAndReturnError: (NSError **) outError;
/**
* Close the result set, and return any held database resources. After calling,
* no further PLResultSet methods may be called on the instance.
*
* As PLResultSet objects may be placed into autorelease pools, with indeterminate
* release of database resources, this method should be used to ensure that the
* database connection remains usable once finished with a result set.
*
* Failure to call close will not result in any memory leaks, but may prevent
* further use of the database connection (until the result set is released).
*/
- (void) close;
/**
* Map the given column name to a column index. Will throw NSException if the column name
* is unknown.
*
* @param name Name of the column.
* @return Returns the index of the column name, or throws an NSException if the column
* can not be found.
*/
- (int) columnIndexForName: (NSString *) name;
/**
* Return the integer value of the given column index from
* the current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
*/
- (int32_t) intForColumnIndex: (int) columnIdx;
/**
* Return the integer value of the named column from the
* current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (int32_t) intForColumn: (NSString *) columnName;
/**
* Return the string value of the given column index from
* the current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
*/
- (NSString *) stringForColumnIndex: (int) columnIndex;
/**
* Return the string value of the named column from the
* current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (NSString *) stringForColumn: (NSString *) columnName;
/**
* Returns the 64 bit big integer (long) value of the given
* column index the current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
*/
- (int64_t) bigIntForColumnIndex: (int) columnIndex;
/**
* Returns the 64 bit big integer (long) value of the named
* column from the current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (int64_t) bigIntForColumn: (NSString *) columnName;
/**
* Returns YES if the value of the given column index is NULL,
* NO otherwise.
*
* Will throw NSException if the column index is out of range.
*/
- (BOOL) isNullForColumnIndex: (int) columnIndex;
/**
* Returns YES if the value of the named column is NULL,
* NO otherwise.
*
* Will throw NSException if the column index is out of range.
*/
- (BOOL) isNullForColumn: (NSString *) columnName;
/**
* Returns the BOOL value of the named column from the
* current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (BOOL) boolForColumn: (NSString *) columnName;
/**
* Returns the BOOL value of the given column index from the
* current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
*/
- (BOOL) boolForColumnIndex: (int) columnIndex;
/**
* Returns the float value of the named column from the
* current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (float) floatForColumn: (NSString *) columnName;
/**
* Returns the float value of the given column index from the
* current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
*/
- (float) floatForColumnIndex: (int) columnIndex;
/**
* Returns the double value of the named column from the
* current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (double) doubleForColumn: (NSString *) columnName;
/**
* Returns the double value of the given column index from the
* current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
*/
- (double) doubleForColumnIndex: (int) columnIndex;
/**
* Returns the NSDate value of the named column from the
* current result row.
*
* Will throw NSException if the column name is unknown,
* or if the column value is NULL.
*/
- (NSDate *) dateForColumn: (NSString *) columnName;
/**
* Returns the NSDate value of the given column index from the
* current result row.
*
* Will throw NSException if the column index is out of range,
* or if the column value is NULL.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
IOS应用源码Demo-图书管理系统-毕设学习.zip (143个子文件)
BookManage 259KB
BookManage 258KB
BookManage 127KB
BookManage 119KB
control 256KB
Current 1B
build-state.dat 61KB
build-state~.dat 61KB
build-state~.dat 58KB
build-state.dat 58KB
build-state.dat 21KB
build-state.dat 20KB
build-state.dat 3KB
build-state~.dat 3KB
BookManage.dep 9KB
BookManage.dep 8KB
BookManage~.dep 5KB
BookManage.dep 5KB
BookManage~.dep 5KB
BookManage.dep 5KB
BookManage~.dep 2KB
BookManage.dep 2KB
PLResultSet.h 9KB
PlausibleDatabase.h 9KB
PLDatabase.h 8KB
PLPreparedStatement.h 5KB
PLDatabaseMigrationVersionManager.h 4KB
PLDatabaseMigrationTransactionManager.h 4KB
PLDatabaseMigrationDelegate.h 3KB
PLSqlitePreparedStatement.h 3KB
PLSqliteDatabase.h 3KB
PLDatabaseMigrationManager.h 3KB
PLDatabaseConnectionProvider.h 2KB
PLSqliteResultSet.h 2KB
PLSqliteConnectionProvider.h 2KB
PLSqliteMigrationVersionManager.h 2KB
Book.h 1KB
FavBook.h 957B
HomeViewController.h 606B
DetailViewController.h 567B
FavViewController.h 470B
SearchViewController.h 426B
CreatBookViewController.h 414B
BookManageAppDelegate.h 403B
FavDataBase.h 316B
DataBase.h 309B
pbxindex.header 24B
Headers 24B
BookManage.hmap 2KB
BookManage.hmap 2KB
BookManage-project-headers.hmap 1KB
BookManage-project-headers.hmap 1KB
BookManage-own-target-headers.hmap 793B
BookManage-own-target-headers.hmap 793B
BookManage-all-target-headers.hmap 793B
BookManage-all-target-headers.hmap 793B
BookManage-generated-files.hmap 121B
BookManage-generated-files.hmap 121B
BookManage.LinkFileList 2KB
BookManage.LinkFileList 1KB
HomeViewController.m 6KB
FavViewController.m 6KB
CreatBookViewController.m 5KB
FavBook.m 5KB
Book.m 5KB
DetailViewController.m 4KB
BookManageAppDelegate.m 4KB
SearchViewController.m 3KB
FavDataBase.m 1KB
DataBase.m 1KB
main.m 382B
wangchao.mode1v3 40KB
dsafsd .nib 720B
dsafsd .nib 720B
HomeViewController.o 67KB
FavViewController.o 66KB
DetailViewController.o 64KB
HomeViewController.o 63KB
FavViewController.o 62KB
DetailViewController.o 61KB
CreatBookViewController.o 60KB
SearchViewController.o 57KB
BookManageAppDelegate.o 57KB
CreatBookViewController.o 56KB
BookManageAppDelegate.o 56KB
SearchViewController.o 54KB
Book.o 54KB
Book.o 52KB
FavBook.o 15KB
FavBook.o 14KB
FavDataBase.o 11KB
DataBase.o 11KB
FavDataBase.o 11KB
DataBase.o 11KB
main.o 6KB
main.o 6KB
cdecls.pbxbtree 155KB
decls.pbxbtree 153KB
refs.pbxbtree 120KB
imports.pbxbtree 9KB
共 143 条
- 1
- 2
资源评论
- weixin_535142122023-11-08果断支持这个资源,资源解决了当前遇到的问题,给了新的灵感,感谢分享~
- qq_533090712023-06-13资源内容详细全面,与描述一致,对我很有用,有一定的使用价值。
芝麻粒儿
- 粉丝: 5w+
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功