/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

import data.IMotif;

/**
 *
 * @author smuRf
 */
public class DatabaseInterface {
    private Database database;
    
    public DatabaseInterface(String user, String pass)
    {
        database = new Database(user, pass);
    }

    public void closeConnection() 
    {
        database.closeConnection();
    }
    
    public void insertMotif(IMotif motif)
    {
        database.insert("INSERT INTO PBMC.motif(user_id,name,tempo,default_instrument) VALUES(0,'test',10, 2)");
    }
}
