package com.lab.epam.dao;

import com.lab.epam.persistant.ConnectionPool;

import java.sql.Connection;

/**
 * Created by Admin on 10.06.2015.
 */
public interface DaoFactory<Context> {

    public interface DaoCreator<Context> {
        public GenericDao create(Context context);
    }

    /**      */
    public ConnectionPool getContext() throws PersistException;

    /**        */
    public GenericDao getDao(ConnectionPool connection, Class dtoClass) throws PersistException;
}

package com.lab.epam.dao;

import com.lab.epam.persistant.ConnectionPool;

import java.sql.Connection;

/**
 * Created by Admin on 10.06.2015.
 */
public interface DaoFactory<Context> {

    public interface DaoCreator<Context> {
        public GenericDao create(Context context);
    }

    public ConnectionPool getContext() throws PersistException;

    public GenericDao getDao(ConnectionPool connection, Class dtoClass) throws PersistException;
}

delete comments