Package | Description |
---|---|
net.akaish.kitty.orm | |
net.akaish.kitty.orm.query | |
net.akaish.kitty.orm.query.conditions |
Modifier and Type | Method and Description |
---|---|
protected SQLiteCondition |
KittyMapper.conditionFromSQLString(java.lang.String condition,
java.lang.Object... params)
Generates instance of
SQLiteCondition from SQLite string and set of parameters. |
protected SQLiteCondition |
KittyMapper.getIPKCondition(java.lang.Long id)
Creates condition "WHERE {IPK} = ?"
|
protected <M extends KittyModel> |
KittyMapper.getPKCondition(M model,
SQLiteCondition defaultCondition)
Returns PK condition for provided model, there are following steps:
If provided default condition not null, it would be returned. |
protected SQLiteCondition |
KittyMapper.getRowIDCondition(java.lang.Long id)
Creates condition "WHERE rowid = ?"
|
protected <M extends KittyModel> |
KittyMapper.getRowIDCondition(M model)
Creates condition "WHERE rowid = ?"
|
protected SQLiteCondition |
KittyMapper.getSQLiteConditionForPK(KittyPrimaryKey primaryKey)
Returns SQLiteCondition from provided PK's map where keys of map are column's names of table and
values are values of those columns.
|
protected SQLiteCondition |
KittyMapper.getSQLiteConditionForPKKeyValues(java.util.Map<java.lang.String,java.lang.String> pkKeyValues)
Returns SQLiteCondition from provided map where keys of map are column's names of table and
values are values of those columns.
|
Modifier and Type | Method and Description |
---|---|
long |
KittyMapper.countWhere(SQLiteCondition where)
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.
|
long |
KittyMapper.deleteWhere(SQLiteCondition condition)
Deletes all rows in table associated with this data mapper that suit provided condition.
|
<M extends KittyModel> |
KittyMapper.findFirst(SQLiteCondition where)
Returns first record in KittyModel wrapper in database table that suits provided condition.
|
<M extends KittyModel> |
KittyMapper.findLast(SQLiteCondition where)
Returns last record in KittyModel wrapper in database table that suits provided condition.
|
<M extends KittyModel> |
KittyMapper.findWhere(SQLiteCondition where)
Returns list of models that suits provided conditions.
|
<M extends KittyModel> |
KittyMapper.findWhere(SQLiteCondition where,
QueryParameters qParams)
Returns list of models that suits provided conditions and query parameters.
|
protected <M extends KittyModel> |
KittyMapper.getPKCondition(M model,
SQLiteCondition defaultCondition)
Returns PK condition for provided model, there are following steps:
If provided default condition not null, it would be returned. |
long |
KittyMapper.sum(java.lang.String sumColumn,
SQLiteCondition where)
Sum all values in table in specified column that suits provided condition.
|
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.
|
<M extends KittyModel> |
KittyMapper.update(M model,
SQLiteCondition condition)
Update records from database with values from provided model that suits provided condition.
|
<M extends KittyModel> |
KittyMapper.update(M model,
SQLiteCondition condition,
java.lang.String[] names,
int IEFlag)
Update records from database with values from provided model that suits provided condition.
|
Modifier and Type | Method and Description |
---|---|
KittyQueryBuilder |
KittyQueryBuilder.setWhereClause(SQLiteCondition condition) |
Modifier and Type | Method and Description |
---|---|
SQLiteCondition |
SQLiteConditionBuilder.build()
Resets builder and return SQL condition
|
static SQLiteCondition |
SQLiteConditionBuilder.fromSQL(java.lang.String conditionStr,
java.lang.Class<? extends KittyModel> modelClass,
java.lang.Object... params)
Generates
SQLiteCondition from SQLite string and provided params. |