19 package org.turro.contacts.manager;
21 import java.util.List;
22 import org.turro.contacts.ElephantContactManager;
23 import org.turro.contacts.IContactManager;
24 import org.turro.contacts.db.ContactsPU;
25 import org.turro.jpa.Dao;
26 import org.turro.sql.SqlClause;
38 SqlClause.select(
"distinct " + idField).from(table)
39 .dao((
Dao) dao).resultList(String.class));
41 SqlClause.delete(table)
42 .where().in(idField, ids)
49 public List<String>
missing(List<String> contactIds) {
50 SqlClause.select(
"id").from(
"Contact")
51 .where().in(
"id", contactIds)
53 .resultList(String.class)
54 .forEach(
id -> contactIds.remove(
id));
62 private Dao getDao() {