如何设计基于Android原生API的面向对象式数据库架构,实现高效、灵活的数据管理?
- 内容介绍
- 文章标签
- 相关推荐
本文共计179个文字,预计阅读时间需要1分钟。
IBaseDao数据库操作接口定义如下:
javapublic interface IBaseDao { /** * 插入数据 * @param entity 实体对象 * @return 影响行数 */ Long insert(T entity);
/** * 更新数据 * @param entity 实体对象 * @param where 更新条件 * @return 影响行数 */ int update(T entity, T where);
/** * 删除数据 * @param where 删除条件 * @return 影响行数 */ int delete(T where);
/** * 查询数据 */ T query(T where);}
public interface IBaseDao
本文共计179个文字,预计阅读时间需要1分钟。
IBaseDao数据库操作接口定义如下:
javapublic interface IBaseDao { /** * 插入数据 * @param entity 实体对象 * @return 影响行数 */ Long insert(T entity);
/** * 更新数据 * @param entity 实体对象 * @param where 更新条件 * @return 影响行数 */ int update(T entity, T where);
/** * 删除数据 * @param where 删除条件 * @return 影响行数 */ int delete(T where);
/** * 查询数据 */ T query(T where);}
public interface IBaseDao

