// Path: src/main/java/pers/zr/opensource/magic/dao/constants/ActionMode.java
// public enum ActionMode {
// 
//     INSERT, UPDATE, DELETE, QUERY
// }


import org.springframework.jdbc.core.JdbcTemplate;
import pers.zr.opensource.magic.dao.constants.ActionMode;
import javax.sql.DataSource;
package pers.zr.opensource.magic.dao;



/**
 *
 * Created by zhurong on 2016-4-28.
 *
 */
public interface MagicDataSource {

    JdbcTemplate getJdbcTemplate(ActionMode actionMode);

// Path: src/main/java/pers/zr/opensource/magic/dao/constants/ActionMode.java
// public enum ActionMode {
// 
//     INSERT, UPDATE, DELETE, QUERY
// }


// Path: src/main/java/pers/zr/opensource/magic/dao/MagicDataSource.java
import org.springframework.jdbc.core.JdbcTemplate;
import pers.zr.opensource.magic.dao.constants.ActionMode;
import javax.sql.DataSource;

package pers.zr.opensource.magic.dao;



/**
 *
 * Created by zhurong on 2016-4-28.
 *
 */
public interface MagicDataSource {

    JdbcTemplate getJdbcTemplate(ActionMode actionMode);

    DataSource getJdbcDataSource(ActionMode actionMode);