DBAction.h 756 Bytes
//
//  DBAction.h
//  SCIOLive
//
//  Created by wei on 14-9-29.
//  Copyright (c) 2014年 Miao Long. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NoticeData.h"
@interface DBAction : NSObject
+ (DBAction *)sharedDBAction;

- (void)createNoticeTable;
- (BOOL)isInNoticeTable:(NoticeData*)notice;
- (void)insertNoticeTable: (NoticeData*)notice;
- (void)deleteNotice: (NoticeData*)notice;
- (NSMutableArray *)queryNoticeTable;


- (void)createTable:(NSString *)tableName;
- (BOOL)isInTable:(NSString *)tableName notice:(TableData*)notice;
- (BOOL)insertTable:(NSString *)tableName notice:(TableData*)notice;
- (BOOL)deleteTable:(NSString *)tableName notice:(TableData*)notice;
- (NSMutableArray *)queryTable:(NSString *)tableName;
@end