com.scaleset.search.GenericSearchDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaleset-search Show documentation
Show all versions of scaleset-search Show documentation
Java object model for representing query requests in REST protocols.
package com.scaleset.search;
import com.scaleset.search.Query;
import com.scaleset.search.Results;
import java.util.List;
public interface GenericSearchDao {
void close() throws Exception;
void delete(T entity) throws Exception;
void deleteByKey(KEY id) throws Exception;
void deleteByQuery(Query query) throws Exception;
boolean exists(KEY id) throws Exception;
Results search(Query query) throws Exception;
long count(String q) throws Exception;
T findById(KEY id) throws Exception;
T findOne(String q) throws Exception;
T save(T entity) throws Exception;
List saveBatch(List entities) throws Exception;
}