/** * Set or update a global parameter. */ public void addGlobalParameter(String key, String value) { GlobalParameter.setParameter(cnx, key, value); cnx.commit(); }
/** * Set or update a global parameter. */ public void addGlobalParameter(String key, String value) { GlobalParameter.setParameter(cnx, key, value); cnx.commit(); }
public static void upsertGlobalParameter(DbConn cnx, GlobalParameterDto dto) { if (dto == null || dto.getKey() == null || dto.getKey().isEmpty() || dto.getValue() == null || dto.getValue().isEmpty()) { throw new IllegalArgumentException("invalid dto object"); } GlobalParameter.setParameter(cnx, dto.getKey(), dto.getValue()); }
public static void upsertGlobalParameter(DbConn cnx, GlobalParameterDto dto) { if (dto == null || dto.getKey() == null || dto.getKey().isEmpty() || dto.getValue() == null || dto.getValue().isEmpty()) { throw new IllegalArgumentException("invalid dto object"); } GlobalParameter.setParameter(cnx, dto.getKey(), dto.getValue()); }
String value = gpElement.getElementsByTagName("value").item(0).getTextContent().trim(); GlobalParameter.setParameter(cnx, key, value); jqmlogger.info("Imported global parameter key: " + key + " - value: " + value);
String value = gpElement.getElementsByTagName("value").item(0).getTextContent().trim(); GlobalParameter.setParameter(cnx, key, value); jqmlogger.info("Imported global parameter key: " + key + " - value: " + value);
GlobalParameter.setParameter(cnx, "defaultConnection", ""); cnx.commit();
GlobalParameter.setParameter(cnx, "defaultConnection", ""); cnx.commit();
GlobalParameter.setParameter(cnx, "discreteRmName", "ports"); GlobalParameter.setParameter(cnx, "discreteRmList", "port01,port02");