Kenmegne
7 days ago 23a46b4be35277e06ec89f48730eeb694e686be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.megatim.fdxcommons.tools.database.queries;
 
import com.megatim.fdxcommons.tools.database.contrat.TypeFichierInsertMetaData;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Arrays;
import javax.naming.NamingException;
 
/**
 *
 * @author ASUS
 */
public class FdxConsultationInsert extends FdxInsert {
 
    public FdxConsultationInsert(Connection dbConnection, Long dataProductionId) throws SQLException {
        super(dbConnection, dataProductionId);
    }
 
    @Override
    public long insert(TypeFichierInsertMetaData insertMetaData) throws SQLException, NamingException, Exception {
 
        new InsertQuery(insertMetaData.tableName(), connection, Arrays.asList(), insertMetaData.columnNames(), insertMetaData.rows()).execute();
 
        return dataProductionId;
    }
 
}