Package mil.nga.geopackage.user
Class UserQuery
java.lang.Object
mil.nga.geopackage.user.UserQuery
User Query parameter types
- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionConstructorUserQuery
(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) ConstructorConstructor for raw queryConstructor 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
Modifier and TypeMethodDescriptionget
(UserQueryParamType type) Get the param valueString[]
Get the column namesString[]
Get the columns as valuesboolean
Get the distinct flagGet the group by valueGet the having valuegetLimit()
Get the limit valueGet or build the SQL statementGet the order by valueGet the selection valueString[]
Get the selection argsgetSql()
Get the raw SQL valuegetTable()
Get the table nameboolean
has
(UserQueryParamType type) Check if there is a param valuevoid
set
(UserQueryParamType type, Object value) Set the value for the param type
-
Constructor Details
-
UserQuery
public UserQuery()Constructor -
UserQuery
Constructor for raw query- Parameters:
sql
- sql statementselectionArgs
- selection arguments
-
UserQuery
Constructor for raw query- Parameters:
sql
- sql statementcolumns
- columnsselectionArgs
- selection arguments- Since:
- 6.2.0
-
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 Details
-
set
Set the value for the param type- Parameters:
type
- param typevalue
- param value
-
get
Get the param value- Parameters:
type
- param type- Returns:
- param value
-
has
Check if there is a param value- Parameters:
type
- param type- Returns:
- true if param value exists
-
getSql
Get the raw SQL value- Returns:
- SQL value
-
getSelectionArgs
Get the selection args- Returns:
- selection args
-
getDistinct
public boolean getDistinct()Get the distinct flag- Returns:
- distinct flag
- Since:
- 4.0.0
-
getTable
Get the table name- Returns:
- table name
-
getColumns
Get the column names- Returns:
- column names
-
getColumnsAs
Get the columns as values- Returns:
- columns as values
-
getSelection
Get the selection value- Returns:
- selection value
-
getGroupBy
Get the group by value- Returns:
- group by value
-
getHaving
Get the having value- Returns:
- having value
-
getOrderBy
Get the order by value- Returns:
- order by value
-
getLimit
Get the limit value- Returns:
- limit value
-
getOrBuildSql
Get or build the SQL statement- Returns:
- SQL statement
- Since:
- 6.2.0
-