/** @inheritdoc */ @Override public Long getKey(PasswordType entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, PasswordType entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } Integer icon = entity.getIcon(); if (icon != null) { stmt.bindLong(2, icon); } String name = entity.getName(); if (name != null) { stmt.bindString(3, name); } Integer status = entity.getStatus(); if (status != null) { stmt.bindLong(4, status); } String remark = entity.getRemark(); if (remark != null) { stmt.bindString(5, remark); } Integer theme = entity.getTheme(); if (theme != null) { stmt.bindLong(6, theme); } Boolean excludeFromQuery = entity.getExcludeFromQuery(); if (excludeFromQuery != null) { stmt.bindLong(7, excludeFromQuery ? 1L : 0L); } }