All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scaleset.search.GenericSearchDao Maven / Gradle / Ivy

There is a newer version: 0.24.0
Show newest version
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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy