public interface GeneralDAO {
public
public
public
public
public boolean save(Object entity);
public boolean[] save(Object... entities);
public boolean remove(Object entity);
public void remove(Object... entities);
public boolean removeById(Class type, Serializable id);
public void removeByIds(Class type, Serializable... ids);
public
public List search(ISearch search);
public Object searchUnique(ISearch search);
public int count(ISearch search);
public SearchResult searchAndCount(ISearch search);
public boolean isAttached(Object entity);
public void refresh(Object... entities);
public void flush();
}
public interface GenericDAO
public T find(ID id);
public T[] find(ID... ids);
public T getReference(ID id);
public T[] getReferences(ID... ids);
public boolean save(T entity);
public boolean[] save(T... entities);
public boolean remove(T entity);
public void remove(T... entities);
public boolean removeById(ID id);
public void removeByIds(ID... ids);
public List
public List
public T searchUnique(ISearch search);
public int count(ISearch search);
public SearchResult
public List searchGeneric(ISearch search);
public Object searchUniqueGeneric(ISearch search);
public boolean isAttached(T entity);
public void refresh(T... entities);
public void flush();
}