Skip to content

Commit

Permalink
Risolti problemi esecuzione testsuite.
Browse files Browse the repository at this point in the history
  • Loading branch information
pintorig committed May 15, 2023
1 parent 681fff5 commit 0d0f83e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ public static void removeFromCache(UnitaOperativa uo) {
public static void removeFromCache(IbanAccredito iban) {
try {ibanAccreditoBDCacheWrapper.removeObjectCache(ibanAccreditoBDCacheWrapper.getKeyCache(keyPrefID + iban.getId(), CACHE_KEY_GET_IBAN_ACCREDITO));} catch (UtilsException e) { }
try {ibanAccreditoBDCacheWrapper.removeObjectCache(ibanAccreditoBDCacheWrapper.getKeyCache(keyPrefCODICE + iban.getCodIban(), CACHE_KEY_GET_IBAN_ACCREDITO));} catch (UtilsException e) { }
try {ibanAccreditoBDCacheWrapper.removeObjectCache(ibanAccreditoBDCacheWrapper.getKeyCache(keyPrefCODICE + iban.getIdDominio() + "_" + iban.getCodIban(), CACHE_KEY_GET_IBAN_ACCREDITO));} catch (UtilsException e) { }
}

public static void removeFromCache(Intermediario intermediario) {
Expand Down Expand Up @@ -331,8 +332,9 @@ public static void removeFromCache(TipoVersamento tipoVersamento) {
}

public static void removeFromCache(TipoVersamentoDominio tipoVersamentoDominio) {
try {tipiVersamentoBDCacheWrapper.removeObjectCache(tipiVersamentoDominiBDCacheWrapper.getKeyCache(keyPrefID + tipoVersamentoDominio.getId(), CACHE_KEY_GET_TIPO_VERSAMENTO_DOMINIO));} catch (UtilsException e) { }
try {tipiVersamentoBDCacheWrapper.removeObjectCache(tipiVersamentoDominiBDCacheWrapper.getKeyCache(keyPrefCODICE + tipoVersamentoDominio.getIdDominio() + "_" + tipoVersamentoDominio.getCodTipoVersamento(), CACHE_KEY_GET_TIPO_VERSAMENTO_DOMINIO));} catch (UtilsException e) { }
try {tipiVersamentoDominiBDCacheWrapper.removeObjectCache(tipiVersamentoDominiBDCacheWrapper.getKeyCache(keyPrefID + tipoVersamentoDominio.getId(), CACHE_KEY_GET_TIPO_VERSAMENTO_DOMINIO));} catch (UtilsException e) { }
try {tipiVersamentoDominiBDCacheWrapper.removeObjectCache(tipiVersamentoDominiBDCacheWrapper.getKeyCache(keyPrefCODICE + tipoVersamentoDominio.getIdDominio() + "_" + tipoVersamentoDominio.getCodTipoVersamento(), CACHE_KEY_GET_TIPO_VERSAMENTO_DOMINIO));} catch (UtilsException e) { }
try {tipiVersamentoDominiBDCacheWrapper.removeObjectCache(tipiVersamentoDominiBDCacheWrapper.getKeyCache(keyPrefCODICE + tipoVersamentoDominio.getIdDominio() + "_tv_pagamentoPortaleForm", CACHE_KEY_GET_TIPO_VERSAMENTO_DOMINIO));} catch (UtilsException e) { }
}

public static void removeFromCache(Configurazione configurazione) {
Expand Down
4 changes: 2 additions & 2 deletions jars/orm/src/main/java/it/govpay/bd/viste/VersamentiBD.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ private long _countSenzaLimit(VersamentoFilter filter) throws ServiceException {
try {
if(this.isAtomica()) {
this.setupConnection(this.getIdTransaction());
filter.setExpressionConstructor(this.getVersamentoService());
filter.setExpressionConstructor(this.getVistaVersamentoServiceSearch());
}

return this.getVersamentoService().count(filter.toExpression()).longValue();
return this.getVistaVersamentoServiceSearch().count(filter.toExpression()).longValue();

} catch (NotImplementedException e) {
return 0;
Expand Down

0 comments on commit 0d0f83e

Please sign in to comment.