public static Set<URI> fetchSRDFTargetVirtualPools(DbClient dbClient){
  Set<URI> srdfProtectedTargetVPools=new HashSet<URI>();
  try {
    List<URI> vpoolRemoteSettingURIs=dbClient.queryByType(VpoolRemoteCopyProtectionSettings.class,true);
    Iterator<VpoolRemoteCopyProtectionSettings> vPoolRemoteSettingsItr=dbClient.queryIterativeObjects(VpoolRemoteCopyProtectionSettings.class,vpoolRemoteSettingURIs,true);
    while (vPoolRemoteSettingsItr.hasNext()) {
      VpoolRemoteCopyProtectionSettings rSetting=vPoolRemoteSettingsItr.next();
      if (null != rSetting && !NullColumnValueGetter.isNullURI(rSetting.getVirtualPool())) {
        srdfProtectedTargetVPools.add(rSetting.getVirtualPool());
      }
    }
  }
 catch (  Exception ex) {
    log.error("Exception occurred while fetching SRDF enabled virtualpools",ex);
  }
  return srdfProtectedTargetVPools;
}

public static Set < URI > fetchSRDFTargetVirtualPools ( DbClient dbClient ) { Set < URI > srdfProtectedTargetVPools = new HashSet < URI > ( ) ; try { List < URI > vpoolRemoteSettingURIs = dbClient . queryByType ( VpoolRemoteCopyProtectionSettings . class , true ) ; Iterator < VpoolRemoteCopyProtectionSettings > vPoolRemoteSettingsItr = dbClient . queryIterativeObjects ( VpoolRemoteCopyProtectionSettings . class , vpoolRemoteSettingURIs , true ) ; while ( vPoolRemoteSettingsItr . hasNext ( ) ) { VpoolRemoteCopyProtectionSettings rSetting = vPoolRemoteSettingsItr . next ( ) ; if ( null != rSetting && ! NullColumnValueGetter . isNullURI ( rSetting . getVirtualPool ( ) ) ) { srdfProtectedTargetVPools . add ( rSetting . getVirtualPool ( ) ) ; } } } catch ( Exception ex ) { log . error ( "Exception occurred while fetching SRDF enabled virtualpools" , ex ) ; } return srdfProtectedTargetVPools ; }
fetch the srdf protected target virtual pool uris .
