/** @inheritdoc */ @Override public Long getKey(CacheControl entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, CacheControl entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } java.util.Date lastUpdate = entity.getLastUpdate(); if (lastUpdate != null) { stmt.bindLong(2, lastUpdate.getTime()); } }