public class KittyQueryBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
KittyQueryBuilder.QUERY_TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
SB_SQL_SIZE |
Constructor and Description |
---|
KittyQueryBuilder(KittyQueryBuilder.QUERY_TYPE queryType,
java.lang.String tableName) |
KittyQueryBuilder(KittyQueryBuilder.QUERY_TYPE queryType,
java.lang.String tableName,
int sbSize) |
Modifier and Type | Method and Description |
---|---|
KittySQLiteQuery |
buildSQLQuery() |
KittyQueryBuilder |
setGroupBy(java.lang.String... columns) |
KittyQueryBuilder |
setLimit(java.lang.Long limit) |
KittyQueryBuilder |
setOffset(java.lang.Long offset) |
KittyQueryBuilder |
setOrderBy(AscDesc ascDesc,
java.lang.String... columns) |
KittyQueryBuilder |
setOrderBy(java.lang.String column,
AscDesc asc_desc) |
KittyQueryBuilder |
setQueryParameters(QueryParameters queryParameters) |
KittyQueryBuilder |
setRowIDSupport(boolean rowIdOn) |
KittyQueryBuilder |
setSchemaName(java.lang.String schemaName)
Sets schema name for
SelectTableNamesQuery : KittyQueryBuilder.QUERY_TYPE.SELECT_TABLE_NAMES (only). |
KittyQueryBuilder |
setSumColumn(java.lang.String sumColumn)
Sets sum column name for
SelectCountQuery : KittyQueryBuilder.QUERY_TYPE.SELECT_SUM (only). |
KittyQueryBuilder |
setWhereClause(SQLiteCondition condition) |
public static final int SB_SQL_SIZE
public KittyQueryBuilder(KittyQueryBuilder.QUERY_TYPE queryType, java.lang.String tableName)
public KittyQueryBuilder(KittyQueryBuilder.QUERY_TYPE queryType, java.lang.String tableName, int sbSize)
public KittyQueryBuilder setSumColumn(java.lang.String sumColumn)
SelectCountQuery
: KittyQueryBuilder.QUERY_TYPE.SELECT_SUM
(only). Values set via this method in other
queries would be ignored.sumColumn
- column on which sum operation should be performed.public KittyQueryBuilder setSchemaName(java.lang.String schemaName)
SelectTableNamesQuery
: KittyQueryBuilder.QUERY_TYPE.SELECT_TABLE_NAMES
(only). Values set via this method in
other queries would be ignored.schemaName
- schema name from what should table names to be retrieved.public KittyQueryBuilder setOrderBy(java.lang.String column, AscDesc asc_desc)
public KittyQueryBuilder setOrderBy(AscDesc ascDesc, java.lang.String... columns)
public KittyQueryBuilder setQueryParameters(QueryParameters queryParameters)
public KittyQueryBuilder setRowIDSupport(boolean rowIdOn)
public KittyQueryBuilder setGroupBy(java.lang.String... columns)
public KittyQueryBuilder setLimit(java.lang.Long limit)
public KittyQueryBuilder setOffset(java.lang.Long offset)
public KittyQueryBuilder setWhereClause(SQLiteCondition condition)
public KittySQLiteQuery buildSQLQuery()