當前位置: 首頁>>代碼示例>>Java>>正文


Java OnConflictStrategy類代碼示例

本文整理匯總了Java中android.arch.persistence.room.OnConflictStrategy的典型用法代碼示例。如果您正苦於以下問題:Java OnConflictStrategy類的具體用法?Java OnConflictStrategy怎麽用?Java OnConflictStrategy使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


OnConflictStrategy類屬於android.arch.persistence.room包,在下文中一共展示了OnConflictStrategy類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: insert

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
public abstract void insert(RepoSearchResult result);
 
開發者ID:charlesng,項目名稱:SampleAppArch,代碼行數:3,代碼來源:RepoDao.java

示例2: insert

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
public abstract void insert(Album... artists);
 
開發者ID:charlesng,項目名稱:SampleAppArch,代碼行數:3,代碼來源:AlbumDao.java

示例3: insert

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
public abstract void insert(Artist... artists);
 
開發者ID:charlesng,項目名稱:SampleAppArch,代碼行數:3,代碼來源:ArtistDao.java

示例4: insert

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
long insert(LoginBean loginBean);
 
開發者ID:charlesng,項目名稱:SampleAppArch,代碼行數:3,代碼來源:AuthDao.java

示例5: insert

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
long insert(Ride ride);
 
開發者ID:ponewheel,項目名稱:android-ponewheel,代碼行數:3,代碼來源:RideDao.java

示例6: saveUser

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void saveUser(User user);
 
開發者ID:Jon6193,項目名稱:Android-MVVM,代碼行數:3,代碼來源:UserDao.java

示例7: insertOrReplaceFoodEntry

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertOrReplaceFoodEntry(FoodEntry entry);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:FoodDataDao.java

示例8: insertOrRepaceFoodCategory

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertOrRepaceFoodCategory(FoodCategory category);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:FoodDataDao.java

示例9: insert

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(Contact contact);
 
開發者ID:jboss-outreach,項目名稱:lead-management-android,代碼行數:3,代碼來源:ContactDao.java

示例10: insetOrReplaceDrinkEntry

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insetOrReplaceDrinkEntry(DrinkEntry entry);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:DrinkDataDAO.java

示例11: insetOrReplacePhysicalEntry

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insetOrReplacePhysicalEntry(PhysicalEntry entry);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:PhysicalDataDAO.java

示例12: insetOrReplacePhysicalCategory

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insetOrReplacePhysicalCategory(PhysicalCategory category);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:PhysicalDataDAO.java

示例13: insertNewEntry

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertNewEntry(SleepEntry entry);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:SleepEntryDAO.java

示例14: insertOrUpdateComment

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insertOrUpdateComment(CommentData comment);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:CommentDataDao.java

示例15: saveParamRecord

import android.arch.persistence.room.OnConflictStrategy; //導入依賴的package包/類
@Insert(onConflict = OnConflictStrategy.REPLACE)
void saveParamRecord(ParamRecord record);
 
開發者ID:strudelauxpommes,項目名稱:FitnessHabits,代碼行數:3,代碼來源:ParamRecordDao.java


注:本文中的android.arch.persistence.room.OnConflictStrategy類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。