public void throwUpdate(String classPath,ICriterion criterion){
        IQuery query = null;
        Objects<Person> object = null;
        
        try{
            dbc.openConnection();
            query = new CriteriaQuery(Class.forName(classPath),criterion);
            object = dbc.odb.getObjects(query);
            
            //Example UPDATE
//            if(object.hasNext()){
//                Person p = object.getFirst();
//                p.setAge(19);
//                dbc.odb.store(p);
//            }
            
            //Example DELETE
            if(object.hasNext()){
                Person p = object.getFirst();
                dbc.odb.delete(p);
            }
            
            
        } catch (ClassNotFoundException e) {
            error.getError(101, e);
        } finally{
            dbc.closeConnection();
        }
        /*
     * Used to:
     * • Update data
     * • Delete data
     * 
     * Examples: 
     * 
     * In Main.class
     * ICriterion criterio = null;
     * -------------------------------------------------------------------------
     * The rule will be applied to the field with name=Roberto + age=40
     * 
     * criterio = new And().add(Where.equal("name", "Roberto")).add(Where.equal("age", 40));
     * db.throwUpdate(DatabaseConstants.Person, criterio);
     * 
     * -------------------------------------------------------------------------*/
        
    }