Package mil.nga.geopackage.db.master
Class SQLiteMasterQuery
- java.lang.Object
-
- mil.nga.geopackage.db.master.SQLiteMasterQuery
-
public class SQLiteMasterQuery extends Object
Query on the SQLiteMaster table- Since:
- 3.3.0
- Author:
- osbornb
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SQLiteMasterColumn column, String value)
Add an equality queryvoid
add(SQLiteMasterColumn column, String operation, String value)
Add a queryvoid
addIsNotNull(SQLiteMasterColumn column)
Add an is not null queryvoid
addIsNull(SQLiteMasterColumn column)
Add an is null queryString
buildSQL()
Build the query SQLstatic SQLiteMasterQuery
create()
Create an empty query that supports a single querystatic SQLiteMasterQuery
create(SQLiteMasterColumn column, String value)
Create a single equality querystatic SQLiteMasterQuery
create(SQLiteMasterColumn column, String operation, String value)
Create a single querystatic SQLiteMasterQuery
createAnd()
Create a query with multiple queries combined by an ANDstatic SQLiteMasterQuery
createAnd(SQLiteMasterColumn column, String operation, Collection<String> values)
Create a query with multiple values for a single column combined with an ANDstatic SQLiteMasterQuery
createAnd(SQLiteMasterColumn column, Collection<String> values)
Create an equality query with multiple values for a single column combined with an ANDstatic SQLiteMasterQuery
createOr()
Create a query with multiple queries combined by an ORstatic SQLiteMasterQuery
createOr(SQLiteMasterColumn column, String operation, Collection<String> values)
Create a query with multiple values for a single column combined with an ORstatic SQLiteMasterQuery
createOr(SQLiteMasterColumn column, Collection<String> values)
Create an equality query with multiple values for a single column combined with an ORstatic SQLiteMasterQuery
createTableViewQuery(String tableName)
Create a query to find views in the sql column referring to the tableList<String>
getArguments()
Get the query argumentsboolean
has()
Determine a query has been set
-
-
-
Method Detail
-
add
public void add(SQLiteMasterColumn column, String value)
Add an equality query- Parameters:
column
- columnvalue
- value
-
add
public void add(SQLiteMasterColumn column, String operation, String value)
Add a query- Parameters:
column
- columnoperation
- operationvalue
- value
-
addIsNull
public void addIsNull(SQLiteMasterColumn column)
Add an is null query- Parameters:
column
- column
-
addIsNotNull
public void addIsNotNull(SQLiteMasterColumn column)
Add an is not null query- Parameters:
column
- column
-
has
public boolean has()
Determine a query has been set- Returns:
- true if has a query
-
buildSQL
public String buildSQL()
Build the query SQL- Returns:
- sql
-
create
public static SQLiteMasterQuery create()
Create an empty query that supports a single query- Returns:
- query
-
createOr
public static SQLiteMasterQuery createOr()
Create a query with multiple queries combined by an OR- Returns:
- query
-
createAnd
public static SQLiteMasterQuery createAnd()
Create a query with multiple queries combined by an AND- Returns:
- query
-
create
public static SQLiteMasterQuery create(SQLiteMasterColumn column, String value)
Create a single equality query- Parameters:
column
- columnvalue
- value- Returns:
- query
-
create
public static SQLiteMasterQuery create(SQLiteMasterColumn column, String operation, String value)
Create a single query- Parameters:
column
- columnoperation
- operationvalue
- value- Returns:
- query
-
createOr
public static SQLiteMasterQuery createOr(SQLiteMasterColumn column, Collection<String> values)
Create an equality query with multiple values for a single column combined with an OR- Parameters:
column
- columnvalues
- value- Returns:
- query
-
createOr
public static SQLiteMasterQuery createOr(SQLiteMasterColumn column, String operation, Collection<String> values)
Create a query with multiple values for a single column combined with an OR- Parameters:
column
- columnoperation
- operationvalues
- value- Returns:
- query
-
createAnd
public static SQLiteMasterQuery createAnd(SQLiteMasterColumn column, Collection<String> values)
Create an equality query with multiple values for a single column combined with an AND- Parameters:
column
- columnvalues
- value- Returns:
- query
-
createAnd
public static SQLiteMasterQuery createAnd(SQLiteMasterColumn column, String operation, Collection<String> values)
Create a query with multiple values for a single column combined with an AND- Parameters:
column
- columnoperation
- operationvalues
- value- Returns:
- query
-
createTableViewQuery
public static SQLiteMasterQuery createTableViewQuery(String tableName)
Create a query to find views in the sql column referring to the table- Parameters:
tableName
- table name- Returns:
- query
-
-