@Override
    public String getId(String strTabla, String strCampo, String strValor) throws Exception {
        Statement oStatement;
        ResultSet oResultSet;
        try {
            oStatement = (Statement) oConexionMySQL.createStatement();
            String strSQL = "SELECT id FROM " + strTabla + " WHERE " + strCampo + "='" + strValor + "'";
            oResultSet = oStatement.executeQuery(strSQL);
            if (oResultSet.next()) {
                return oResultSet.getString("id");
            } else {
                return null;
            }
        } catch (SQLException ex) {
            throw new Exception("mysql.getId: No se ha podido realizar la consulta: " + ex.getMessage());
        }
    }