Package mil.nga.geopackage.user
Class UserQuery
- java.lang.Object
-
- mil.nga.geopackage.user.UserQuery
-
public class UserQuery extends Object
User Query parameter types- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description UserQuery()ConstructorUserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)ConstructorUserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)ConstructorUserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)ConstructorUserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)ConstructorUserQuery(String sql, String[] selectionArgs)Constructor for raw queryUserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)ConstructorUserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)ConstructorUserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)ConstructorUserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(UserQueryParamType type)Get the param valueString[]getColumns()Get the column namesString[]getColumnsAs()Get the columns as valuesbooleangetDistinct()Get the distinct flagStringgetGroupBy()Get the group by valueStringgetHaving()Get the having valueStringgetLimit()Get the limit valueStringgetOrderBy()Get the order by valueStringgetSelection()Get the selection valueString[]getSelectionArgs()Get the selection argsStringgetSql()Get the raw SQL valueStringgetTable()Get the table namebooleanhas(UserQueryParamType type)Check if there is a param valuevoidset(UserQueryParamType type, Object value)Set the value for the param type
-
-
-
Constructor Detail
-
UserQuery
public UserQuery()
Constructor
-
UserQuery
public UserQuery(String sql, String[] selectionArgs)
Constructor for raw query- Parameters:
sql- sql statementselectionArgs- selection arguments
-
UserQuery
public UserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Constructor- Parameters:
table- table namecolumns- column namesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order by
-
UserQuery
public UserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Constructor- Parameters:
distinct- distinct flagtable- table namecolumns- column namesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order by- Since:
- 4.0.0
-
UserQuery
public UserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Constructor- Parameters:
table- table namecolumns- column namescolumnsAs- columns as valuesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order by
-
UserQuery
public UserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy)
Constructor- Parameters:
distinct- distinct flagtable- table namecolumns- column namescolumnsAs- columns as valuesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order by- Since:
- 4.0.0
-
UserQuery
public UserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Constructor- Parameters:
table- table namecolumns- column namesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order bylimit- limit
-
UserQuery
public UserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Constructor- Parameters:
distinct- distinct flagtable- table namecolumns- column namesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order bylimit- limit- Since:
- 4.0.0
-
UserQuery
public UserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Constructor- Parameters:
table- table namecolumns- column namescolumnsAs- columns as valuesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order bylimit- limit
-
UserQuery
public UserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Constructor- Parameters:
distinct- distinct flagtable- table namecolumns- column namescolumnsAs- columns as valuesselection- selectionselectionArgs- selection argsgroupBy- group byhaving- havingorderBy- order bylimit- limit- Since:
- 4.0.0
-
-
Method Detail
-
set
public void set(UserQueryParamType type, Object value)
Set the value for the param type- Parameters:
type- param typevalue- param value
-
get
public Object get(UserQueryParamType type)
Get the param value- Parameters:
type- param type- Returns:
- param value
-
has
public boolean has(UserQueryParamType type)
Check if there is a param value- Parameters:
type- param type- Returns:
- true if param value exists
-
getSql
public String getSql()
Get the raw SQL value- Returns:
- SQL value
-
getSelectionArgs
public String[] getSelectionArgs()
Get the selection args- Returns:
- selection args
-
getDistinct
public boolean getDistinct()
Get the distinct flag- Returns:
- distinct flag
- Since:
- 4.0.0
-
getTable
public String getTable()
Get the table name- Returns:
- table name
-
getColumns
public String[] getColumns()
Get the column names- Returns:
- column names
-
getColumnsAs
public String[] getColumnsAs()
Get the columns as values- Returns:
- columns as values
-
getSelection
public String getSelection()
Get the selection value- Returns:
- selection value
-
getGroupBy
public String getGroupBy()
Get the group by value- Returns:
- group by value
-
getHaving
public String getHaving()
Get the having value- Returns:
- having value
-
getOrderBy
public String getOrderBy()
Get the order by value- Returns:
- order by value
-
getLimit
public String getLimit()
Get the limit value- Returns:
- limit value
-
-