Subversion Repositories SmartDukaan

Rev

Rev 21723 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.entity.Api;
import com.spice.profitmandi.dao.enumuration.Method;

@Repository
public interface ApiRepository {
        public void persist(Api api)throws ProfitMandiBusinessException;
        public List<Api> selectAll(int pageNumber, int pageSize);
        public Api selectById(int id) throws ProfitMandiBusinessException;
        public Api selectByName(String name) throws ProfitMandiBusinessException;
        public List<Api> selectByUri(String uri);
        public void deleteById(int id) throws ProfitMandiBusinessException;
        public void updateNameById(String newName, String newUri, Method newMethod, int id) throws ProfitMandiBusinessException;
}