Package mil.nga.geopackage.user
Class UserQuery
java.lang.Object
mil.nga.geopackage.user.UserQuery
User Query parameter types
- Since:
- 2.0.0
- 
Constructor SummaryConstructorsConstructorDescriptionConstructorUserQuery(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 SummaryModifier and TypeMethodDescriptionget(UserQueryParamType type) Get the param valueString[]Get the column namesString[]Get the columns as valuesbooleanGet 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 namebooleanhas(UserQueryParamType type) Check if there is a param valuevoidset(UserQueryParamType type, Object value) Set the value for the param type
- 
Constructor Details- 
UserQuerypublic UserQuery()Constructor
- 
UserQueryConstructor for raw query- Parameters:
- sql- sql statement
- selectionArgs- selection arguments
 
- 
UserQueryConstructor for raw query- Parameters:
- sql- sql statement
- columns- columns
- selectionArgs- selection arguments
- Since:
- 6.2.0
 
- 
UserQuerypublic UserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) Constructor- Parameters:
- table- table name
- columns- column names
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
 
- 
UserQuerypublic UserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) Constructor- Parameters:
- distinct- distinct flag
- table- table name
- columns- column names
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
- Since:
- 4.0.0
 
- 
UserQuerypublic UserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) Constructor- Parameters:
- table- table name
- columns- column names
- columnsAs- columns as values
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
 
- 
UserQuerypublic UserQuery(Boolean distinct, String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) Constructor- Parameters:
- distinct- distinct flag
- table- table name
- columns- column names
- columnsAs- columns as values
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
- Since:
- 4.0.0
 
- 
UserQuerypublic UserQuery(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) Constructor- Parameters:
- table- table name
- columns- column names
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
- limit- limit
 
- 
UserQuerypublic UserQuery(Boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) Constructor- Parameters:
- distinct- distinct flag
- table- table name
- columns- column names
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
- limit- limit
- Since:
- 4.0.0
 
- 
UserQuerypublic UserQuery(String table, String[] columns, String[] columnsAs, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) Constructor- Parameters:
- table- table name
- columns- column names
- columnsAs- columns as values
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
- limit- limit
 
- 
UserQuerypublic 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 flag
- table- table name
- columns- column names
- columnsAs- columns as values
- selection- selection
- selectionArgs- selection args
- groupBy- group by
- having- having
- orderBy- order by
- limit- limit
- Since:
- 4.0.0
 
 
- 
- 
Method Details- 
setSet the value for the param type- Parameters:
- type- param type
- value- param value
 
- 
getGet the param value- Parameters:
- type- param type
- Returns:
- param value
 
- 
hasCheck if there is a param value- Parameters:
- type- param type
- Returns:
- true if param value exists
 
- 
getSqlGet the raw SQL value- Returns:
- SQL value
 
- 
getSelectionArgsGet the selection args- Returns:
- selection args
 
- 
getDistinctpublic boolean getDistinct()Get the distinct flag- Returns:
- distinct flag
- Since:
- 4.0.0
 
- 
getTableGet the table name- Returns:
- table name
 
- 
getColumnsGet the column names- Returns:
- column names
 
- 
getColumnsAsGet the columns as values- Returns:
- columns as values
 
- 
getSelectionGet the selection value- Returns:
- selection value
 
- 
getGroupByGet the group by value- Returns:
- group by value
 
- 
getHavingGet the having value- Returns:
- having value
 
- 
getOrderByGet the order by value- Returns:
- order by value
 
- 
getLimitGet the limit value- Returns:
- limit value
 
- 
getOrBuildSqlGet or build the SQL statement- Returns:
- SQL statement
- Since:
- 6.2.0
 
 
-