@Override
    public Integer getIdFromDataBase() throws SQLException {
        Statement statement = ua.edu.odeku.pet.database.ConnectionDataBase.getStatement();
        if(nameQuestion == null || nameQuestion.isEmpty()){
            return null;
        } else if(test == null || test.getId_test() == null){
            return null;
        } else if (typeQuestion == null || typeQuestion.getIdTypeQuestion() == null){
            return null;
        }
        ResultSet resultSet = statement.executeQuery("Select ID_QUESTION  "
                + "from question "
                + "where name_question = '"+nameQuestion+"' "
                + "and id_test = " + test.getId_test() + " "
                + "and id_type_question = " + typeQuestion.getIdTypeQuestion() + "; ");
        if(resultSet.next()){
            Integer id = resultSet.getInt(1);
            statement.close();
            return id;
        } else {
            return null;
        }
    }