/** @inheritdoc */ @Override public Long getKey(NewsJumpBean entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, NewsJumpBean entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } String url = entity.getUrl(); if (url != null) { stmt.bindString(2, url); } String content = entity.getContent(); if (content != null) { stmt.bindString(3, content); } }