public class UserQuery extends Object
| Constructor and Description |
|---|
UserQuery()
Constructor
|
UserQuery(Boolean distinct,
String table,
String[] columns,
String[] columnsAs,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy)
Constructor
|
UserQuery(Boolean distinct,
String table,
String[] columns,
String[] columnsAs,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy,
String limit)
Constructor
|
UserQuery(Boolean distinct,
String table,
String[] columns,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy)
Constructor
|
UserQuery(Boolean distinct,
String table,
String[] columns,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy,
String limit)
Constructor
|
UserQuery(String sql,
String[] selectionArgs)
Constructor for raw query
|
UserQuery(String table,
String[] columns,
String[] columnsAs,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy)
Constructor
|
UserQuery(String table,
String[] columns,
String[] columnsAs,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy,
String limit)
Constructor
|
UserQuery(String table,
String[] columns,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy)
Constructor
|
UserQuery(String table,
String[] columns,
String selection,
String[] selectionArgs,
String groupBy,
String having,
String orderBy,
String limit)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(UserQueryParamType type)
Get the param value
|
String[] |
getColumns()
Get the column names
|
String[] |
getColumnsAs()
Get the columns as values
|
boolean |
getDistinct()
Get the distinct flag
|
String |
getGroupBy()
Get the group by value
|
String |
getHaving()
Get the having value
|
String |
getLimit()
Get the limit value
|
String |
getOrderBy()
Get the order by value
|
String |
getSelection()
Get the selection value
|
String[] |
getSelectionArgs()
Get the selection args
|
String |
getSql()
Get the raw SQL value
|
String |
getTable()
Get the table name
|
boolean |
has(UserQueryParamType type)
Check if there is a param value
|
void |
set(UserQueryParamType type,
Object value)
Set the value for the param type
|
public UserQuery()
public UserQuery(String sql, String[] selectionArgs)
sql - sql statementselectionArgs - selection argumentspublic UserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
table - table namecolumns - column namesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bypublic UserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
distinct - distinct flagtable - table namecolumns - column namesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bypublic UserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
table - table namecolumns - column namescolumnsAs - columns as valuesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bypublic UserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
distinct - distinct flagtable - table namecolumns - column namescolumnsAs - columns as valuesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bypublic UserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
table - table namecolumns - column namesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bylimit - limitpublic UserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
distinct - distinct flagtable - table namecolumns - column namesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bylimit - limitpublic UserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
table - table namecolumns - column namescolumnsAs - columns as valuesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bylimit - limitpublic UserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
distinct - distinct flagtable - table namecolumns - column namescolumnsAs - columns as valuesselection - selectionselectionArgs - selection argsgroupBy - group byhaving - havingorderBy - order bylimit - limitpublic void set(UserQueryParamType type, Object value)
type - param typevalue - param valuepublic Object get(UserQueryParamType type)
type - param typepublic boolean has(UserQueryParamType type)
type - param typepublic String getSql()
public String[] getSelectionArgs()
public boolean getDistinct()
public String getTable()
public String[] getColumns()
public String[] getColumnsAs()
public String getSelection()
public String getGroupBy()
public String getHaving()
public String getOrderBy()
public String getLimit()