Java Code Examples for com.socks.greendao.PictureCache#getId()

The following examples show how to use com.socks.greendao.PictureCache#getId() . 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: PictureCacheDao.java    From JianDan_OkHttpWithVolley with Apache License 2.0 6 votes vote down vote up
/** @inheritdoc */
@Override
protected void bindValues(SQLiteStatement stmt, PictureCache entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String result = entity.getResult();
    if (result != null) {
        stmt.bindString(2, result);
    }
 
    Integer page = entity.getPage();
    if (page != null) {
        stmt.bindLong(3, page);
    }
 
    Long time = entity.getTime();
    if (time != null) {
        stmt.bindLong(4, time);
    }
}
 
Example 2
Source File: PictureCacheDao.java    From JianDan with Apache License 2.0 6 votes vote down vote up
/** @inheritdoc */
@Override
protected void bindValues(SQLiteStatement stmt, PictureCache entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String result = entity.getResult();
    if (result != null) {
        stmt.bindString(2, result);
    }
 
    Integer page = entity.getPage();
    if (page != null) {
        stmt.bindLong(3, page);
    }
 
    Long time = entity.getTime();
    if (time != null) {
        stmt.bindLong(4, time);
    }
}
 
Example 3
Source File: PictureCacheDao.java    From JianDanRxJava with Apache License 2.0 6 votes vote down vote up
/** @inheritdoc */
@Override
protected void bindValues(SQLiteStatement stmt, PictureCache entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String result = entity.getResult();
    if (result != null) {
        stmt.bindString(2, result);
    }
 
    Integer page = entity.getPage();
    if (page != null) {
        stmt.bindLong(3, page);
    }
 
    Long time = entity.getTime();
    if (time != null) {
        stmt.bindLong(4, time);
    }
}
 
Example 4
Source File: PictureCacheDao.java    From JianDan_OkHttp with Apache License 2.0 6 votes vote down vote up
/** @inheritdoc */
@Override
protected void bindValues(SQLiteStatement stmt, PictureCache entity) {
    stmt.clearBindings();
 
    Long id = entity.getId();
    if (id != null) {
        stmt.bindLong(1, id);
    }
 
    String result = entity.getResult();
    if (result != null) {
        stmt.bindString(2, result);
    }
 
    Integer page = entity.getPage();
    if (page != null) {
        stmt.bindLong(3, page);
    }
 
    Long time = entity.getTime();
    if (time != null) {
        stmt.bindLong(4, time);
    }
}
 
Example 5
Source File: PictureCacheDao.java    From JianDan_OkHttpWithVolley with Apache License 2.0 5 votes vote down vote up
/** @inheritdoc */
@Override
public Long getKey(PictureCache entity) {
    if(entity != null) {
        return entity.getId();
    } else {
        return null;
    }
}
 
Example 6
Source File: PictureCacheDao.java    From JianDan with Apache License 2.0 5 votes vote down vote up
/** @inheritdoc */
@Override
public Long getKey(PictureCache entity) {
    if(entity != null) {
        return entity.getId();
    } else {
        return null;
    }
}
 
Example 7
Source File: PictureCacheDao.java    From JianDanRxJava with Apache License 2.0 5 votes vote down vote up
/** @inheritdoc */
@Override
public Long getKey(PictureCache entity) {
    if(entity != null) {
        return entity.getId();
    } else {
        return null;
    }
}
 
Example 8
Source File: PictureCacheDao.java    From JianDan_OkHttp with Apache License 2.0 5 votes vote down vote up
/** @inheritdoc */
@Override
public Long getKey(PictureCache entity) {
    if(entity != null) {
        return entity.getId();
    } else {
        return null;
    }
}