/** * delete a list of beans. * * @param beans the beans * @param session the Session * @param consistency the consistency Level on Cassandra * @param <T> th kind of object * @return if execute with Sucess */ public <T> boolean delete(Iterable<T> beans, Session session, ConsistencyLevel consistency) { return deleteQuery.deleteByKey(beans, session, consistency); }
/** * delete on object from cassandra by Key. * * @param session the Session * @param consistency the consistency Level * @param entity the entity * @param <K> the keys * @param keys the keys values * @param <T> the kind of object * @return if execute the command */ public <K, T> boolean deleteByKey( Iterable<K> keys, Class<T> entity, Session session, ConsistencyLevel consistency) { deleteQuery.deleteByKey(keys, entity, session, consistency); return true; }
/** * delete on object from cassandra by Key. * * @param bean the kind of object * @param session the Session * @param <T> kind of object * @param consistency the consistency level * @return if execute the command */ public <T> boolean delete(T bean, Session session, ConsistencyLevel consistency) { return deleteQuery.deleteByKey(bean, session, consistency); }
/** * delete on object from cassandra by Key. * * @param key the key * @param bean the kind of object * @param session the Session * @param consistency the consistency Level * @return if execute the command */ public boolean deleteByKey( Object key, Class<?> bean, Session session, ConsistencyLevel consistency) { return deleteQuery.deleteByKey(key, bean, session, consistency); }