androidx.room.Insert Java Examples

The following examples show how to use androidx.room.Insert. 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: AppsDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insertAll(List<App> apps);
 
Example #2
Source File: DaoContact.java    From FairEmail with GNU General Public License v3.0 4 votes vote down vote up
@Insert
long insertContact(EntityContact contact);
 
Example #3
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);
 
Example #4
Source File: TrailersDao.java    From PopularMovies with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insertAllTrailers(List<Trailer> trailers);
 
Example #5
Source File: AccountDao.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(Account account);
 
Example #6
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 #7
Source File: WordDao.java    From Android-Developer-Fundamentals-Version-2 with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insert(Word word);
 
Example #8
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 #9
Source File: CGroupDao.java    From call_manage with MIT License 4 votes vote down vote up
@Insert
long[] insert(CGroup... lists);
 
Example #10
Source File: GroupsDao.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<Group> groups);
 
Example #11
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 Provisioner provisioner);
 
Example #12
Source File: BackupDao.java    From SAI with GNU General Public License v3.0 4 votes vote down vote up
@Insert
void insertBackup(BackupEntity backupEntity);
 
Example #13
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 #14
Source File: DaoIdentity.java    From FairEmail with GNU General Public License v3.0 4 votes vote down vote up
@Insert
long insertIdentity(EntityIdentity identity);
 
Example #15
Source File: DaoCertificate.java    From FairEmail with GNU General Public License v3.0 4 votes vote down vote up
@Insert
long insertCertificate(EntityCertificate certificate);
 
Example #16
Source File: DaoMessage.java    From FairEmail with GNU General Public License v3.0 4 votes vote down vote up
@Insert
long insertMessage(EntityMessage message);
 
Example #17
Source File: AppsDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insertAll(App... apps);
 
Example #18
Source File: RemindersDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
long replace(Reminder reminder);
 
Example #19
Source File: RemindersDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
long insert(Reminder reminders);
 
Example #20
Source File: WordDao.java    From Android-Developer-Fundamentals-Version-2 with GNU General Public License v3.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insert(Word word);
 
Example #21
Source File: AlarmsDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
long replace(Alarm alarm);
 
Example #22
Source File: AlarmsDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
long insert(Alarm alarm);
 
Example #23
Source File: AlarmsDatabaseDao.java    From BaldPhone with Apache License 2.0 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.IGNORE)
void insertAll(Alarm... alarms);
 
Example #24
Source File: IllustRecmdDao.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@Insert
void insertAll(List<IllustRecmdEntity> userEntities);
 
Example #25
Source File: IllustRecmdDao.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(IllustRecmdEntity userEntity);
 
Example #26
Source File: ContactDao.java    From call_manage with MIT License 4 votes vote down vote up
@Insert
void insert(List<Contact> contacts);
 
Example #27
Source File: SearchDao.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertMuteTag(TagMuteEntity muteEntity);
 
Example #28
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 #29
Source File: DownloadDao.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertUploadedImage(ImageEntity imageEntity);
 
Example #30
Source File: IdentityDao.java    From lttrs-android with Apache License 2.0 4 votes vote down vote up
@Insert
abstract void insert(Collection<IdentityEmailAddressEntity> identityEmailAddressEntities);