- where
Declaring to query which rows in table.
DataSupport.where("name = ? or age > ?", "Tom", "14").find(
- findAll
Finds multiple records by an id array.
List
people = DataSupport.findAll(Person.class, 1, 2 - deleteAll
Deletes all records with details given if they match a set of conditions
supplied. This method const
- find
It is mostly same as org.litepal.crud.DataSupport#find(Class,long) but an
isEager parameter. If set
- saveAll
Saves the collection into database.
DataSupport.saveAll(people);
If the model in collection is
- order
Declaring how to order the rows queried from table.
DataSupport.order("name desc").find(Person.clas
- updateAll
Updates all records with details given if they match a set of conditions
supplied. This method const
- addAssociatedModelForJoinTable
Add the id of an associated model into self model's associatedIdsM2M map.
- addAssociatedModelWithFK
Add the id of an associated model into self model's associatedIdsWithFK map. The
associated model ha
- addAssociatedModelWithoutFK
Add the id of an associated model into self model's association collection. The
associated model doe
- addAssociatedTableNameToClearFK
Add an associated table name into the list to clear.
- addEmptyModelForJoinTable
Add an empty Set into #associatedModelsMapForJoinTable with associated model
name as key. Might be u