| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
类 | Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
com.ab.db.storage.AbStorageQuery类 参考

## 类
enum | SortOrder

## Public 成员函数
| AbStorageQuery ()
AbStorageQuery | equals (String paramString, Object paramObject)
AbStorageQuery | notEqual (String paramString, Object paramObject)
AbStorageQuery | like (String paramString, Object paramObject)
AbStorageQuery | greaterThan (String paramString, Object paramObject)
AbStorageQuery | lessThan (String paramString, Object paramObject)
AbStorageQuery | greaterThanEqualTo (String paramString, Object paramObject)
AbStorageQuery | lessThanEqualTo (String paramString, Object paramObject)
AbStorageQuery | in (String paramString, Object[] paramArrayOfObject)
AbStorageQuery | notIn (String paramString, Object[] paramArrayOfObject)
AbStorageQuery | and (AbStorageQuery storageQuery)
AbStorageQuery | or (AbStorageQuery storageQuery)
void | setWhereClause (String whereClause, String[] whereArgs)
String | getWhereClause ()
String[] | getWhereArgs ()
AbStorageQuery | addSort (String paramString, SortOrder paramSortOrder)
String | getHaving ()
void | setHaving (String having)
String | getGroupBy ()
void | setGroupBy (String groupBy)
String | getOrderBy ()
void | setOrderBy (String orderBy)
int | getLimit ()
void | setLimit (int limit)
int | getOffset ()
void | setOffset (int offset)

## 静态 Public 成员函数
static void | printLog (AbStorageQuery mAbStorageQuery)
static void | main (String[] args)

## Private 属性
String | whereClause = null
ArrayList< String > | whereArgs = null
String | having = null
String | groupBy = null
String | orderBy = null
int | limit = -1
int | offset = -1

## 详细描述

© 2012 amsoft.cn 名称：AbStorageQuery.java 描述：条件过滤实体

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-10-16 下午1:33:39

## 构造及析构函数说明

com.ab.db.storage.AbStorageQuery.AbStorageQuery | ( |  | ) |
| inline

Instantiates a new ab storage query.

## 成员函数说明

AbStorageQuery com.ab.db.storage.AbStorageQuery.addSort | ( | String | paramString,
|  | SortOrder | paramSortOrder
| ) |  |
| inline

描述：排序语句.

参数

  paramString | the param string
  paramSortOrder | the param sort order

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.and | ( | AbStorageQuery | storageQuery | ) |
| inline

描述：和and语句.

参数

  storageQuery | the storage query

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.equals | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：相等语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

String com.ab.db.storage.AbStorageQuery.getGroupBy | ( |  | ) |
| inline

Gets the group by.

返回
  the group by

String com.ab.db.storage.AbStorageQuery.getHaving | ( |  | ) |
| inline

Gets the having.

返回
  the having

int com.ab.db.storage.AbStorageQuery.getLimit | ( |  | ) |
| inline

Gets the limit.

返回
  the limit

int com.ab.db.storage.AbStorageQuery.getOffset | ( |  | ) |
| inline

Gets the offset.

返回
  the offset

String com.ab.db.storage.AbStorageQuery.getOrderBy | ( |  | ) |
| inline

Gets the order by.

返回
  the order by

String [] com.ab.db.storage.AbStorageQuery.getWhereArgs | ( |  | ) |
| inline

描述：获得绑定变量的参数.

返回
  the where args

String com.ab.db.storage.AbStorageQuery.getWhereClause | ( |  | ) |
| inline

描述：获取当前的查询sql语句.

返回
  the where clause

AbStorageQuery com.ab.db.storage.AbStorageQuery.greaterThan | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：大于语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.greaterThanEqualTo | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：大于等于语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.in | ( | String | paramString,
|  | Object[] | paramArrayOfObject
| ) |  |
| inline

描述：包含语句.

参数

  paramString | the param string
  paramArrayOfObject | the param array of object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.lessThan | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：小于语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.lessThanEqualTo | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：小于等于语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.like | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：相似语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

static void com.ab.db.storage.AbStorageQuery.main | ( | String[] | args | ) |
| inline static

The main method.

参数

  args | the arguments

AbStorageQuery com.ab.db.storage.AbStorageQuery.notEqual | ( | String | paramString,
|  | Object | paramObject
| ) |  |
| inline

描述：不相等语句.

参数

  paramString | the param string
  paramObject | the param object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.notIn | ( | String | paramString,
|  | Object[] | paramArrayOfObject
| ) |  |
| inline

描述：不包含语句.

参数

  paramString | the param string
  paramArrayOfObject | the param array of object

返回
  the ab storage query

AbStorageQuery com.ab.db.storage.AbStorageQuery.or | ( | AbStorageQuery | storageQuery | ) |
| inline

描述：或者or语句.

参数

  storageQuery | the storage query

返回
  the ab storage query

static void com.ab.db.storage.AbStorageQuery.printLog | ( | AbStorageQuery | mAbStorageQuery | ) |
| inline static

Prints the log.

参数

  mAbStorageQuery | the m ab storage query

void com.ab.db.storage.AbStorageQuery.setGroupBy | ( | String | groupBy | ) |
| inline

Sets the group by.

参数

  groupBy | the new group by

void com.ab.db.storage.AbStorageQuery.setHaving | ( | String | having | ) |
| inline

Sets the having.

参数

  having | the new having

void com.ab.db.storage.AbStorageQuery.setLimit | ( | int | limit | ) |
| inline

Sets the limit.

参数

  limit | the new limit

void com.ab.db.storage.AbStorageQuery.setOffset | ( | int | offset | ) |
| inline

Sets the offset.

参数

  offset | the new offset

void com.ab.db.storage.AbStorageQuery.setOrderBy | ( | String | orderBy | ) |
| inline

Sets the order by.

参数

  orderBy | the new order by

void com.ab.db.storage.AbStorageQuery.setWhereClause | ( | String | whereClause,
|  | String[] | whereArgs
| ) |  |
| inline

描述：设置一个完整的sql语句.

参数

  whereClause | 如 user_name = ? 或者 user_name = 'xiao'
  whereArgs | the where args

## 类成员变量说明

String com.ab.db.storage.AbStorageQuery.groupBy = null
| private

groupBy 子句.

String com.ab.db.storage.AbStorageQuery.having = null
| private

having 子句.

int com.ab.db.storage.AbStorageQuery.limit = -1
| private

limit 值.

int com.ab.db.storage.AbStorageQuery.offset = -1
| private

offset 值.

String com.ab.db.storage.AbStorageQuery.orderBy = null
| private

orderBy 子句.

ArrayList<String> com.ab.db.storage.AbStorageQuery.whereArgs = null
| private

where 子句的绑定参数.

String com.ab.db.storage.AbStorageQuery.whereClause = null
| private

where 子句.

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

- src/com/ab/db/storage/AbStorageQuery.java