Java Code Examples for android.arch.persistence.room.OnConflictStrategy#REPLACE

The following examples show how to use android.arch.persistence.room.OnConflictStrategy#REPLACE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EarthquakeDAO.java    From Wrox-ProfessionalAndroid-4E with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
public void insertEarthquake(Earthquake earthquake);
 
Example 2
Source File: EarthquakeDAO.java    From Wrox-ProfessionalAndroid-4E with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
public void insertEarthquakes(List<Earthquake> earthquakes);
 
Example 3
Source File: TrophyDao.java    From codeexamples-android with Eclipse Public License 1.0 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void updateTrophy(Trophy trophy);
 
Example 4
Source File: BitsharesDao.java    From bitshares_wallet with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAssetObject(List<BitsharesAssetObject> bitsharesAssetObjectList);
 
Example 5
Source File: PolicyPackageDao.java    From SABS with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(PolicyPackage policyPackage);
 
Example 6
Source File: BitsharesDao.java    From bitshares_wallet with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAccountObject(List<BitsharesAccountObject> bitsharesAccountObjectList);
 
Example 7
Source File: AutofillDao.java    From android-AutofillFramework with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAutofillDataset(AutofillDataset datasets);
 
Example 8
Source File: WeatherDAO.java    From AndroidNewArchitectureExample with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void save(Weather weather);
 
Example 9
Source File: IpMessageDao.java    From ShareBox with Apache License 2.0 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(IpMessage sms);
 
Example 10
Source File: BitsharesDao.java    From guarda-android-wallets with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAssetObject(List<BitsharesAssetObject> bitsharesAssetObjectList);
 
Example 11
Source File: BaseDao.java    From Tok-Android with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
long insert(T obj);
 
Example 12
Source File: EarthquakeDAO.java    From Wrox-ProfessionalAndroid-4E with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
public void insertEarthquake(Earthquake earthquake);
 
Example 13
Source File: AutofillDao.java    From android-AutofillFramework with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAutofillHints(List<AutofillHint> autofillHints);
 
Example 14
Source File: WhiteUrlDao.java    From SABS with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(WhiteUrl whiteUrl);
 
Example 15
Source File: AppPermissionDao.java    From SABS with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(AppPermission appPermission);
 
Example 16
Source File: ChecklistItemDAO.java    From Travel-Mate with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertItem(ChecklistItem item);
 
Example 17
Source File: SearchHistoryDao.java    From JReadHub with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertHistory(SearchHistoryBean... searchHistoryBeans);
 
Example 18
Source File: UserBlockUrlDao.java    From SABS with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
long insert(UserBlockUrl userBlockUrl);
 
Example 19
Source File: PersonDAO.java    From AndroidRoom with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
public long insertPerson(Person person);
 
Example 20
Source File: BaseDao.java    From Tok-Android with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
long[] insert(List<T> objList);