public interface IAddressDao extends IDao<IAddress>
{	
	public List<IAddress> findAll();

	public IAddress findById(int id);
	
} public interface IAuthorDao extends IDao<IAuthor>
{
	public List<IAuthor> findAll();

	public IAuthor findById(int id);

	public List<IAuthor> findBySoundexLname(String keyword);
	
} public interface ICcXactsDao extends IDao<ICcXacts> 
{

	int getLastCcXactsId();

	public ICcXacts findById(Integer id);
} public interface ICountryDao extends IDao<ICountry>
{

	public ICountry findById(int id);

	public ICountry getByName(String country);
	
	public void createTable();

} public interface ICustomerDao extends IDao<ICustomer> 
{

	public ICustomer findById(Integer id);

	public ICustomer getUserBy(String username, String password);

	public List<ICustomer> findByAddress(IAddress addrId);

	

} public interface IItemDao extends IDao<IItem>
{
	public List<IItem> findAll();
	public IItem findById(int id);
	public List<IItem> getPromotional();
	public List<IItem> getNewProducts(String category);
	public List<Object[]> getBestSellers(String category);
	public IItem getRandomItem();
	public IItem getObject();
	public List<IItem> findAllByAuthor(IAuthor author);
	public List<IItem> findAllByTitle(String keyword);
	public List<IItem> findAllBySubject(String keyword);
} public interface IOrderLineDao extends IDao<IOrderLine> 
{

	List<IOrderLine> findAllByOrder(IOrders orders);
	IOrderLine findById(Integer id);

} public interface IOrdersDao extends IDao<IOrders> 
{
	public IOrders getMostRecentOrder(ICustomer customer);

	public IOrders findById(Integer cxOId);
} public interface IShoppingCartDao extends IDao<IShoppingCart> 
{
//	public Integer createEmptyCart();

	public IShoppingCart findById(Integer shoppingId);

	public List<IShoppingCartLine> findAllBySC(IShoppingCart shoppingCart);
} public interface IShoppingCartLineDao extends IDao<IShoppingCartLine> 
{

	public IShoppingCartLine getBySCandItem(Integer shoppingId, int itemId);

	public void delete(IShoppingCartLine bySCandItem);

	public boolean isCartEmpty(int scId);

	public List<Object[]> findBySCId(Integer shoppingId);

}
import eu.cloudscale.showcase.db.dao.IAddressDao;
import eu.cloudscale.showcase.db.dao.IAuthorDao;
import eu.cloudscale.showcase.db.dao.ICcXactsDao;
import eu.cloudscale.showcase.db.dao.ICountryDao;
import eu.cloudscale.showcase.db.dao.ICustomerDao;
import eu.cloudscale.showcase.db.dao.IItemDao;
import eu.cloudscale.showcase.db.dao.IOrderLineDao;
import eu.cloudscale.showcase.db.dao.IOrdersDao;
import eu.cloudscale.showcase.db.dao.IShoppingCartDao;
import eu.cloudscale.showcase.db.dao.IShoppingCartLineDao;
/*******************************************************************************
*  Copyright (c) 2015 XLAB d.o.o.
*  All rights reserved. This program and the accompanying materials
*  are made available under the terms of the Eclipse Public License v1.0
*  which accompanies this distribution, and is available at
*  http://www.eclipse.org/legal/epl-v10.html
*  
*  @author XLAB d.o.o.
*******************************************************************************/

package eu.cloudscale.showcase.db;



public interface IDaos
{
	public IAddressDao getAddressDaoImpl();
	
	public IAuthorDao getAuthorDaoImpl();
	
	public ICcXactsDao getCcXactsDaoImpl();
	
	public ICountryDao getCountryDaoImpl();
	
	public ICustomerDao getCustomerDaoImpl();
	
	public IItemDao getItemDaoImpl();

	public IOrderLineDao getOrderLineDaoImpl();
	
	public IOrdersDao getOrdersDaoImpl();