AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 静态 Public 成员函数 | 包函数 | Private 成员函数 | 静态 Private 属性 | 所有成员列表
com.ab.db.storage.AbSqliteStorage类 参考

Public 成员函数

void release ()
 

静态 Public 成员函数

static AbSqliteStorage getInstance (Context context)
 

包函数

public< T > void insertData (final T entity, final AbDBDaoImpl< T > dao, final AbDataInsertListener paramDataInsertListener)
 
public< T > void insertData (final List< T > entityList, final AbDBDaoImpl< T > dao, final AbDataInsertListListener paramDataInsertListListener)
 
public< T > void findData (final AbStorageQuery storageQuery, final AbDBDaoImpl< T > dao, final AbDataSelectListener paramDataSelectListener)
 
public< T > void updateData (final T entity, final AbDBDaoImpl< T > dao, final AbDataUpdateListener paramDataUpdateListener)
 
public< T > void updateData (final List< T > entityList, final AbDBDaoImpl< T > dao, final AbDataUpdateListener paramDataUpdateListener)
 
public< T > void deleteData (final AbStorageQuery storageQuery, final AbDBDaoImpl< T > dao, final AbDataDeleteListener paramDataDeleteListener)
 

Private 成员函数

 AbSqliteStorage (Context context)
 

静态 Private 属性

static AbSqliteStorage mSqliteStorage = null
 
static AbTaskQueue mAbTask = null
 

详细描述

© 2012 amsoft.cn 名称:AbSqliteStorage.java 描述:数据库对象操作类

作者
还如一梦中
版本
v1.0
日期
:2013-10-16 下午1:33:39

构造及析构函数说明

com.ab.db.storage.AbSqliteStorage.AbSqliteStorage ( Context  context)
inlineprivate

初始化.

参数
contextthe context

成员函数说明

public<T> void com.ab.db.storage.AbSqliteStorage.deleteData ( final AbStorageQuery  storageQuery,
final AbDBDaoImpl< T >  dao,
final AbDataDeleteListener  paramDataDeleteListener 
)
inlinepackage

描述:修改数据.

参数
<T>the generic type
storageQuery条件实体
dao实现AbDBDaoImpl的Dao
paramDataInsertListener返回监听器
public<T> void com.ab.db.storage.AbSqliteStorage.findData ( final AbStorageQuery  storageQuery,
final AbDBDaoImpl< T >  dao,
final AbDataSelectListener  paramDataSelectListener 
)
inlinepackage

查找数据.

参数
<T>描述:查询数据
storageQuerythe storage query
dao实现AbDBDaoImpl的Dao
paramDataInsertListener返回监听器
static AbSqliteStorage com.ab.db.storage.AbSqliteStorage.getInstance ( Context  context)
inlinestatic

描述:获取存储实例.

参数
contextthe context
返回
single instance of AbSqliteStorage
public<T> void com.ab.db.storage.AbSqliteStorage.insertData ( final T  entity,
final AbDBDaoImpl< T >  dao,
final AbDataInsertListener  paramDataInsertListener 
)
inlinepackage

描述:插入数据.

参数
<T>the generic type
entity实体类 设置了对象关系映射
dao实现AbDBDaoImpl的Dao
paramDataInsertListener返回监听器
public<T> void com.ab.db.storage.AbSqliteStorage.insertData ( final List< T >  entityList,
final AbDBDaoImpl< T >  dao,
final AbDataInsertListListener  paramDataInsertListListener 
)
inlinepackage

描述:插入数据.

参数
<T>the generic type
entityList实体类 设置了对象关系映射
dao实现AbDBDaoImpl的Dao
paramDataInsertListener返回监听器
void com.ab.db.storage.AbSqliteStorage.release ( )
inline

描述:释放存储实例.

public<T> void com.ab.db.storage.AbSqliteStorage.updateData ( final T  entity,
final AbDBDaoImpl< T >  dao,
final AbDataUpdateListener  paramDataUpdateListener 
)
inlinepackage

描述:修改数据.

参数
<T>the generic type
entity实体类 设置了对象关系映射
dao实现AbDBDaoImpl的Dao
paramDataInsertListener返回监听器
public<T> void com.ab.db.storage.AbSqliteStorage.updateData ( final List< T >  entityList,
final AbDBDaoImpl< T >  dao,
final AbDataUpdateListener  paramDataUpdateListener 
)
inlinepackage

描述:修改数据.

参数
<T>the generic type
entityList实体类 设置了对象关系映射
dao实现AbDBDaoImpl的Dao
paramDataInsertListener返回监听器

类成员变量说明

AbTaskQueue com.ab.db.storage.AbSqliteStorage.mAbTask = null
staticprivate

队列.

AbSqliteStorage com.ab.db.storage.AbSqliteStorage.mSqliteStorage = null
staticprivate

单例.


该类的文档由以下文件生成: