JABDatabaseQuery.h [plain text]
#import <Foundation/Foundation.h>
#import "JABDatabaseAction.h"
#import "JABDatabase.h"
@interface JABDatabaseQuery : NSObject {
NSString *_queryText; JABDatabaseAction *_dbAction; int _queryResult;
sqlite3_stmt *_sqlStatement;
#ifdef DEBUG
NSInteger _queryCanStep; #endif
}
@property(retain, readwrite) NSString *queryText;
@property(assign, readwrite) JABDatabaseAction *dbAction;
@property(assign, readwrite) int queryResult;
@property(assign, readwrite) sqlite3_stmt *sqlStatement;
#ifdef DEBUG
@property(assign, readwrite) NSInteger queryCanStep;
#endif
+ (id) jabDatabaseQuery: (NSString *) queryText forAction: (JABDatabaseAction *) dbAction;
- (id) initQuery: (NSString *) query forAction: (JABDatabaseAction *) dbAction;
- (void) dealloc;
- (BOOL) startStatementForSource: (const char *) source line: (int) line;
- (void) stepStatement;
- (void) finalizeStatement;
- (NSString *) textForColumn: (NSInteger) columnIndex;
#ifdef DEBUG
- (void) updateQueryCanStep;
#endif
@end
@interface JABSelectAllActiveQuery : JABDatabaseQuery {
}
+ (id) jabSelectAllActiveQueryForAction: (JABDatabaseAction *) dbAction;
- (BOOL) startStatement;
- (NSString *) getNextActiveJid;
@end