// Path: DB_and_virustotal_submission/MalwareAnalysisDBProject/src/com/progetto_sicurezza/dbconfig/DBConfiguration.java
// public class DBConfiguration
// {
// 	public static final String DB_URL = "jdbc:mysql://localhost:3306/malware_data_collection";
// 	public static final String USERNAME ="root";
// 	public static final String PASSWORD = "";
// }
// 
// Path: DB_and_virustotal_submission/MalwareAnalysisDBProject/src/com/progetto_sicurezza/model/AntiMalware.java
// public class AntiMalware
// {
// 	private Integer id;
// 	private String nome;
// 	private String softwareHouse;
// 	private String version;
// 
// 	public Integer getId() {
// 		return id;
// 	}
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 	public String getNome() {
// 		return nome;
// 	}
// 	public void setNome(String nome) {
// 		this.nome = nome;
// 	}
// 	public String getSoftware_house() {
// 		return softwareHouse;
// 	}
// 	public void setSoftware_house(String software_house) {
// 		this.softwareHouse = software_house;
// 	}
// 	public String getVersion() {
// 		return version;
// 	}
// 	public void setVersion(String version) {
// 		this.version = version;
// 	}
// 	
// 	@Override
// 	public String toString() {
// 		return "AntiMalware [id=" + id + ", nome=" + nome + ", softwareHouse="
// 				+ softwareHouse + ", version=" + version + "]";
// 	}
// 	
// 	
// }


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.progetto_sicurezza.dbconfig.DBConfiguration;
import com.progetto_sicurezza.model.AntiMalware;
package com.progetto_sicurezza.dao;



public class AntiMalwareDao
{
	/*
	 * antimalware: tutti i campi di antimalware possono essere null tranne:
	 * nome
	 */
// Path: DB_and_virustotal_submission/MalwareAnalysisDBProject/src/com/progetto_sicurezza/dbconfig/DBConfiguration.java
// public class DBConfiguration
// {
// 	public static final String DB_URL = "jdbc:mysql://localhost:3306/malware_data_collection";
// 	public static final String USERNAME ="root";
// 	public static final String PASSWORD = "";
// }
// 
// Path: DB_and_virustotal_submission/MalwareAnalysisDBProject/src/com/progetto_sicurezza/model/AntiMalware.java
// public class AntiMalware
// {
// 	private Integer id;
// 	private String nome;
// 	private String softwareHouse;
// 	private String version;
// 
// 	public Integer getId() {
// 		return id;
// 	}
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 	public String getNome() {
// 		return nome;
// 	}
// 	public void setNome(String nome) {
// 		this.nome = nome;
// 	}
// 	public String getSoftware_house() {
// 		return softwareHouse;
// 	}
// 	public void setSoftware_house(String software_house) {
// 		this.softwareHouse = software_house;
// 	}
// 	public String getVersion() {
// 		return version;
// 	}
// 	public void setVersion(String version) {
// 		this.version = version;
// 	}
// 	
// 	@Override
// 	public String toString() {
// 		return "AntiMalware [id=" + id + ", nome=" + nome + ", softwareHouse="
// 				+ softwareHouse + ", version=" + version + "]";
// 	}
// 	
// 	
// }


// Path: DB_and_virustotal_submission/MalwareAnalysisDBProject/src/com/progetto_sicurezza/dao/AntiMalwareDao.java
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.progetto_sicurezza.dbconfig.DBConfiguration;
import com.progetto_sicurezza.model.AntiMalware;

package com.progetto_sicurezza.dao;



public class AntiMalwareDao
{
	/*
	 * antimalware: tutti i campi di antimalware possono essere null tranne:
	 * nome
	 */
	public int insert(AntiMalware antimalware) throws SQLException