@Override
    public Integer getIdFromDataBase() throws SQLException {
        Connection connection = ua.edu.odeku.pet.database.ConnectionDataBase.getConnection();
        Statement statement = connection.createStatement();
        if(nameProgQuestionType == null || nameProgQuestionType.isEmpty()){
            return null;
        } else if(nameTypeQuestion == null || nameTypeQuestion.isEmpty()){
            return null;
        }
        ResultSet rs = statement.executeQuery("Select id_type_question from Question_Type "
                + "where name_prog_question_type = '"+nameProgQuestionType+"';");
        if(rs.next()){
            Integer id = rs.getInt(1);
            return id;
        } else {
            return null;
        }
    }