androidx.room.OnConflictStrategy Java Examples

The following examples show how to use androidx.room.OnConflictStrategy. 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: SceneDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(final Scene scene);
 
Example #2
Source File: NetworkKeysDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(List<NetworkKey> netKeys);
 
Example #3
Source File: ApplicationKeysDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(final List<ApplicationKey> applicationKeys);
 
Example #4
Source File: OptionDao.java    From android-mvvm-architecture with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAll(List<Option> options);
 
Example #5
Source File: MoviesDao.java    From PopularMovies with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insertMovie(Movie movie);
 
Example #6
Source File: SitePermissionDao.java    From FirefoxReality with Mozilla Public License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(SitePermission site);
 
Example #7
Source File: NetworkKeysDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(final NetworkKey... networkKeys);
 
Example #8
Source File: MeshNetworkDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(final MeshNetwork meshNetwork);
 
Example #9
Source File: MeshNetworkDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(final MeshNetwork meshNetwork);
 
Example #10
Source File: ApplicationKeysDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(List<ApplicationKey> appKeys);
 
Example #11
Source File: NetworkKeysDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(final List<NetworkKey> networkKeys);
 
Example #12
Source File: AppItemDao.java    From J2ME-Loader with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insertAll(ArrayList<AppItem> items);
 
Example #13
Source File: PlaybackItemDao.java    From Jockey with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void putMetadataItem(PlaybackMetadataItem item);
 
Example #14
Source File: AppInfoDao.java    From zephyr with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAppInfo(List<AppInfoEntity> appInfoEntities);
 
Example #15
Source File: RoomTransactionDao.java    From Gander with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
abstract long insertTransaction(PersistentHttpTransaction persistentHttpTransaction);
 
Example #16
Source File: ProvisionedMeshNodesDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(final List<ProvisionedMeshNode> provisionedMeshNode);
 
Example #17
Source File: MoodleAssignmentCourseDao.java    From ETSMobile-Android2 with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(MoodleAssignmentCourse moodleCourse);
 
Example #18
Source File: ProvisionerDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(List<Provisioner> provisioners);
 
Example #19
Source File: ProvisionerDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(final Provisioner provisioner);
 
Example #20
Source File: ProvisionerDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(final List<Provisioner> provisioners);
 
Example #21
Source File: MoodleProfileDao.java    From ETSMobile-Android2 with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(MoodleProfile moodleProfile);
 
Example #22
Source File: ScenesDao.java    From Android-nRF-Mesh-Library with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
void update(List<Scene> scenes);
 
Example #23
Source File: RoomTransactionDao.java    From Gander with Apache License 2.0 4 votes vote down vote up
@Update(onConflict = OnConflictStrategy.REPLACE)
abstract int updateTransaction(PersistentHttpTransaction persistentHttpTransactions);
 
Example #24
Source File: MoodleCourseDao.java    From ETSMobile-Android2 with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(MoodleCourse moodleCourse);
 
Example #25
Source File: CustomThemeDao.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(CustomTheme customTheme);
 
Example #26
Source File: SubredditDao.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(SubredditData SubredditData);
 
Example #27
Source File: UserDao.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(UserData userData);
 
Example #28
Source File: UserDao.java    From android-mvvm-architecture with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertAll(List<User> users);
 
Example #29
Source File: SubscribedUserDao.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(SubscribedUserData subscribedUserData);
 
Example #30
Source File: MultiRedditDao.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(MultiReddit MultiReddit);