Java Code Examples for de.greenrobot.dao.AbstractDao#insertOrReplace()

The following examples show how to use de.greenrobot.dao.AbstractDao#insertOrReplace() . 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: AbstractOp.java    From DMusic with Apache License 2.0 5 votes vote down vote up
/**
 * 插入一条记录
 */
protected void insertOrReplace(AbstractDao dao, Object o) {
    if (dao == null || o == null) {
        return;
    }
    dao.insertOrReplace(o);
}
 
Example 2
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public static void insertOrReplace(AbstractDao dao, Object entity) {
    dao.insertOrReplace(entity);
}
 
Example 3
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public static void insertOrReplace(AbstractDao dao, List entities) {
    dao.insertOrReplace(entities);
}
 
Example 4
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public static void insertOrReplace(AbstractDao dao, Object entity) {
    dao.insertOrReplace(entity);
}
 
Example 5
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public static void insertOrReplace(AbstractDao dao, List entities) {
    dao.insertOrReplace(entities);
}
 
Example 6
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public static void insertOrReplace(AbstractDao dao, Object entity) {
    dao.insertOrReplace(entity);
}
 
Example 7
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public static void insertOrReplace(AbstractDao dao, List entities) {
    dao.insertOrReplace(entities);
}