Package | Description |
---|---|
net.akaish.kitty.orm | |
net.akaish.kitty.orm.query |
Modifier and Type | Method and Description |
---|---|
long |
KittyMapper.countAll(QueryParameters qParams)
Counts all records in table.
|
long |
KittyMapper.countWhere(QueryParameters qParams,
java.lang.String condition,
java.lang.Object... conditionValues)
Counts record's amount of those records that suits provided condition.
|
long |
KittyMapper.countWhere(SQLiteCondition where,
QueryParameters qParams)
Counts record's amount of those records that suits provided condition.
|
<M extends KittyModel> |
KittyMapper.findAll(QueryParameters qParams)
Returns list of all models associated with records in backed database table with usage of
passed qParams.
|
<M extends KittyModel> |
KittyMapper.findWhere(QueryParameters qParams,
java.lang.String condition,
java.lang.Object... conditionValues)
Returns list of models that suits provided condition string and query parameters.
|
<M extends KittyModel> |
KittyMapper.findWhere(SQLiteCondition where,
QueryParameters qParams)
Returns list of models that suits provided conditions and query parameters.
|
long |
KittyMapper.sum(java.lang.String sumColumn,
QueryParameters qParams,
java.lang.String condition,
java.lang.Object... conditionValues)
Sum all values in table in specified column that suits provided condition and additional query qParams.
|
long |
KittyMapper.sum(java.lang.String sumColumn,
SQLiteCondition where,
QueryParameters qParams)
Sum all values in table in specified column that suits provided condition and additional query qParams.
|
long |
KittyMapper.sumAll(java.lang.String sumColumn,
QueryParameters qParams)
Sum all values in table in specified column that suits provided additional query qParams.
|
Modifier and Type | Method and Description |
---|---|
QueryParameters |
QueryParameters.setGroupByColumns(java.lang.String... groupByColumns) |
QueryParameters |
QueryParameters.setLimit(java.lang.Long limit)
Sets LIMIT keyword for query.
|
QueryParameters |
QueryParameters.setOffset(java.lang.Long offset) |
QueryParameters |
QueryParameters.setOrderAscDesc(AscDesc orderAscDesc) |
QueryParameters |
QueryParameters.setOrderByColumns(java.lang.String... orderByColumns) |
Modifier and Type | Method and Description |
---|---|
KittyQueryBuilder |
KittyQueryBuilder.setQueryParameters(QueryParameters queryParameters) |