public void throwQuery(String classPath, ValuesCriteriaQuery vcq){
        Values values;
        try{
            dbc.openConnection();
            values = dbc.odb.getValues(vcq);
            
            ObjectValues objectValues = null;
       
            while(values.hasNext()){
                objectValues = values.next();
                System.out.println(objectValues.getByIndex(0));
                
                //System.out.println(objectValues.getByIndex(1));
                //System.out.println(objectValues.getByIndex(0)+ " "+ objectValues.getByIndex(1));
                
                //You can also collect data by field name:
                //System.out.println(objectValues.getByAlias("name"));
            }

        } finally{
            dbc.closeConnection();
        }
        /*
     * Used to:
     * • Access attributes of objects.
     * • To use GROUP BY and groups functions SUM, MAX, MIN, AVG y COUNT
     * • Access information of an object linked to another
     * 
     * Examples: 
     * 
     * In Main.class
     * ValuesCriteriaQuery vcq = null;
     * -------------------------------------------------------------------------
     * Of all people his name and age:
     * 
     * vcq = (ValuesCriteriaQuery) new ValuesCriteriaQuery(Class.forName(DatabaseConstants.Person)).field("name").field("age");
     * db.throwQuery(DatabaseConstants.Person, vcq);
     * 
     * NOTE: Remember to add, in while loop, a "getByIndex (num)" for each additional field
     * -------------------------------------------------------------------------
     * The sum of all ages:
     * in SQL -> SELECT SUM (age) FROM person
     * 
     * vcq = (ValuesCriteriaQuery) new ValuesCriteriaQuery(Class.forName(DatabaseConstants.Person)).sum("age");
     * db.throwQuery(DatabaseConstants.Person, vcq);
     * -------------------------------------------------------------------------
     * The number of persons in database
     * in SQL -> SELECT COUNT (name) FROM person
     * 
     * vcq = (ValuesCriteriaQuery) new ValuesCriteriaQuery(Class.forName(DatabaseConstants.Person)).count("name");
     * db.throwQuery(DatabaseConstants.Person, vcq);
     * 
     * NOTE: if you want only this data, you dont need while loop!!!
     * 
     *      objectValues = values.next();
     * 
     *   1  (Integer value)
     *      BigInteger valueInt = (BigInteger) objectValues.getByIndex(0);
     *      System.out.println("Numero: "+valueInt.intValue());
     * 
     *   2  (Decimal value)
     *      BigDecimal decvalue = (BigDecimal) objectValues.getByIndex(0);
     *      System.out.println("Edades: "+decvalue.longValue());
     * -------------------------------------------------------------------------
     * The average:
     * in SQL -> SELECT AVG (age) FROM person
     * 
     * vcq = (ValuesCriteriaQuery) new ValuesCriteriaQuery(Class.forName(DatabaseConstants.Person)).avg("age");
     * db.throwQuery(DatabaseConstants.Person, vcq);
     * -------------------------------------------------------------------------
     * The maximum and minimum
     * in SQL -> SELECT MAX(age) max_age, MIN(age) min_age FROM person
     * 
     * vcq = (ValuesCriteriaQuery) new ValuesCriteriaQuery(Class.forName(DatabaseConstants.Person)).min("age", "min_age").max("age","max_age");
     * db.throwQuery(DatabaseConstants.Person, vcq);
     * -------------------------------------------------------------------------
     * Group by:
     * in SQL -> SELECT age, COUNT name FROM person GROUP BY age
     * 
     * vcq = (ValuesCriteriaQuery) new ValuesCriteriaQuery(Class.forName(DatabaseConstants.Person)).field("age").count("name").groupBy("age");
     * db.throwQuery(DatabaseConstants.Person, vcq);
     * -------------------------------------------------------------------------
     */
    }