Package mil.nga.geopackage.db
Class FeatureIndexerIdQuery
- java.lang.Object
-
- mil.nga.geopackage.db.FeatureIndexerIdQuery
-
public class FeatureIndexerIdQuery extends Object
Feature Indexer Id query with nested SQL and arguments- Since:
- 3.4.0
-
-
Constructor Summary
Constructors Constructor Description FeatureIndexerIdQuery()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaboveMaxArguments()Check if the total number of query arguments is above the maximum allowed in a single querybooleanaboveMaxArguments(int additionalArgs)Check if the total number of query arguments is above the maximum allowed in a single querybooleanaboveMaxArguments(String[] additionalArgs)Check if the total number of query arguments is above the maximum allowed in a single queryvoidaddArgument(long id)Add an id argumentString[]getArgs()Get the argumentsintgetCount()Get the number of idsSet<Long>getIds()Get the set of idsStringgetSql()Get the SQL statementbooleanhasId(long id)Check if the query has the id
-
-
-
Method Detail
-
addArgument
public void addArgument(long id)
Add an id argument- Parameters:
id- id value
-
getCount
public int getCount()
Get the number of ids- Returns:
- count
-
hasId
public boolean hasId(long id)
Check if the query has the id- Parameters:
id- id- Returns:
- true if has id
-
aboveMaxArguments
public boolean aboveMaxArguments()
Check if the total number of query arguments is above the maximum allowed in a single query- Returns:
- true if above the maximum allowed query arguments
-
aboveMaxArguments
public boolean aboveMaxArguments(String[] additionalArgs)
Check if the total number of query arguments is above the maximum allowed in a single query- Parameters:
additionalArgs- additional arguments- Returns:
- true if above the maximum allowed query arguments
-
aboveMaxArguments
public boolean aboveMaxArguments(int additionalArgs)
Check if the total number of query arguments is above the maximum allowed in a single query- Parameters:
additionalArgs- additional argument count- Returns:
- true if above the maximum allowed query arguments
-
getSql
public String getSql()
Get the SQL statement- Returns:
- SQL
-
getArgs
public String[] getArgs()
Get the arguments- Returns:
- args
-
-