示例#1
0
  @SuppressWarnings("unchecked")
  public List<T> search(String q, Class clazz) {
    if (q == null || "".equals(q.trim())) {
      return getAll();
    }

    return dao.search(q);
  }
示例#2
0
 public void reindexAll(boolean async) {
   dao.reindexAll(async);
 }
示例#3
0
 public void reindex() {
   dao.reindex();
 }
示例#4
0
 public void remove(PK id) {
   dao.remove(id);
 }
示例#5
0
 public void remove(T object) {
   dao.remove(object);
 }
示例#6
0
 public T save(T object) {
   return dao.save(object);
 }
示例#7
0
 public boolean exists(PK id) {
   return dao.exists(id);
 }
示例#8
0
 public T get(PK id) {
   return dao.get(id);
 }
示例#9
0
 public List<T> getAll() {
   return dao.getAll();
 }