- initialize
Initialize to make LitePal ready to work. If you didn't configure
LitePalApplication in the AndroidM
- delete
Deletes the record in the database by id.
The data in other tables which is referenced with the reco
- where
Declaring to query which rows in table.
LitePal.where("name = ? or age > ?", "Tom", "14").find(Pers
- 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
- deleteAll
Deletes all records with details given if they match a set of conditions
supplied. This method const
- findAll
Finds multiple records by an id array.
List
people = LitePal.findAll(Person.class, 1, 2, 3) - max
Calculates the maximum value on a given column. The value is returned with the
same data type of the
- min
Calculates the minimum value on a given column. The value is returned with the
same data type of the
- sum
Calculates the sum of values on a given column. The value is returned with the
same data type of the
- deleteDatabase
Delete the specified database.
- find
It is mostly same as LitePal#find(Class,long) but an isEager parameter. If set
true the associated m