- average
Calculates the average value on a given column.
LitePal.average("person", "age");
You can also s
- count
Count the records.
LitePal.count("person");
This will count all rows in person table.
You can al
- countAsync
Basically same as #count(String) but pending to a new thread for executing.
- delete
Deletes the record in the database by id.
The data in other tables which is referenced with the reco
- deleteAll
Deletes all records with details given if they match a set of conditions
supplied. This method const
- find
It is mostly same as Operator#find(Class,long) but an isEager parameter. If set
true the associated
- findAll
Finds multiple records by an id array.
List
people = LitePal.findAll(Person.class, 1, 2, 3) - findAllAsync
Basically same as #findAll(Class,long...) but pending to a new thread for
executing.
- findAsync
Basically same as #find(Class,long,boolean) but pending to a new thread for
executing.
- findBySQL
Runs the provided SQL and returns a Cursor over the result set. You may include
? in where clause in
- findFirst
It is mostly same as Operator#findFirst(Class) but an isEager parameter. If set
true the associated
- findFirstAsync
Basically same as #findFirst(Class,boolean) but pending to a new thread for
executing.