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

com.makeandbuild.vessl.persistence.Dao Maven / Gradle / Ivy

package com.makeandbuild.vessl.persistence;

import java.util.List;

public interface Dao {
    @SuppressWarnings("rawtypes")
    Class getEntityClass();
    @SuppressWarnings("rawtypes")
    Class getIdClass();

    public T save(T item) throws DaoException;
    public boolean exists(ID id) throws DaoException;
    public boolean exists(List criterias) throws DaoException;
    public boolean exists(Criteria... criterias) throws DaoException;
    public T update(T item) throws DaoException;
    public T create(T item) throws DaoException;

    public AbstractPagedResponse find(AbstractPagedRequest request, List criterias) throws DaoException;
    public AbstractPagedResponse find(AbstractPagedRequest request, Criteria... criteria) throws DaoException;
    public T find(ID id) throws DaoException;

    public void deleteById(ID id) throws DaoException;
    public void delete(List criterias) throws DaoException;
    public void delete(Criteria... criterias) throws DaoException;
    public void deleteAll() throws DaoException;
    void delete(Criteria criteria);
    public ID getId(T object);
    public String getIdName();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy