package com.eactive.eai.rms.onl.loader.dao;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

import com.eactive.eai.rms.common.datasource.DataSourceType;

/**
 * The Class LayoutDao.
 * <ul>
 * <li>1. Function :</li>
 * <li>2. Summary :</li>
 * <li>3. Notification :</li>
 * </ul>
 */
public interface LoaderDao {
	
    public int load(DataSourceType dt,String table, ArrayList list) ;
    
    public int adapterLoadSync(DataSourceType dt,String table, ArrayList list) ;
    
    public int delete(DataSourceType dt,String table, HashMap hm) ;
    
    public int updateNode(DataSourceType dt,String instName) ;
    
    public int updateInst(DataSourceType dt,String type, String value) ;
    
    
    public List<LinkedHashMap> selectTable(DataSourceType dt,String tableName ,String key, String value) ;
    
    public int insertTable(DataSourceType dt,final String table, ArrayList list) ;
    
    public List<LinkedHashMap> selectTableData( DataSourceType dataSourceType, String tableName, String key1, String param1 ) ;
    
    public List<LinkedHashMap> selectTableDataLike( DataSourceType dataSourceType, String tableName, String key1, String param1 );    
    
    public List<LinkedHashMap> selectDataForTableName( DataSourceType dataSourceType, String tableName, String key1, String param1 ) ;
    
    public List<LinkedHashMap> selectTableDataForListValue( DataSourceType dataSourceType, String tableName, String key1, List<String> param1 ) ;

    public List<LinkedHashMap> selectSnaAdpApList( DataSourceType dataSourceType, String param1 ) ;
}
