Edit C:\Windows\install\galaxie_p02_26-09\WEB-INF\classes\com\edeal\frontline\kpi\methods\DatabaseEnterpriseFreshness.class
Êþº¾ 3? ;com/edeal/frontline/kpi/methods/DatabaseEnterpriseFreshness *com/edeal/frontline/kpi/AbstractCalcMethod freshnessDelays Ljava/util/HashMap; Signature KLjava/util/HashMap<Ljava/lang/String;[Lcom/edeal/frontline/kpi/CalcParam;>; currentDate Ljava/util/Date; <init> ()V Code java/util/HashMap ENGLISH_LOCALE Ljava/lang/String; !com/edeal/frontline/kpi/CalcParam FreshnessDelay Freshness delay in month " 3 $ % 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ' ( ) put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; + , FRENCH_LOCALE . RÃ?©cence des retards en mois LineNumberTable LocalVariableTable this =Lcom/edeal/frontline/kpi/methods/DatabaseEnterpriseFreshness; getSupportedAxes ()Ljava/util/Collection; =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/ICalcAxis;>; 7 java/util/LinkedList 6 : com/edeal/frontline/kpi/FobAxis < EntActID > java/lang/String @ + A (com/edeal/frontline/kpi/AbstractCalcAxis C Ventes @ F Sales H Actor 9 J K :(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V M O N java/util/List P Q add (Ljava/lang/Object;)Z S !com/edeal/frontline/kpi/DelayAxis U UpdDelay W $Retard de derniÃ?¨re mise Ã? jour Y Delay from last update [ EntUpd ] _ ^ !com/edeal/frontline/kpi/DelayUnit ` a MONTH #Lcom/edeal/frontline/kpi/DelayUnit; R c d ](Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/edeal/frontline/kpi/DelayUnit;)V f com/edeal/frontline/kpi/RefAxis h EntAtvID j ActivitÃ?© l Activity e n o ((Ljava/lang/String;[Ljava/lang/String;)V axes Ljava/util/List; LocalVariableTypeTable 5Ljava/util/List<Lcom/edeal/frontline/kpi/ICalcAxis;>; run °(Ljava/util/Map;Ljava/util/Calendar;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Lcom/edeal/frontline/kpi/IDataSet; Exceptions x &com/edeal/frontline/FrontlineException ç(Ljava/util/Map<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>;Ljava/util/Calendar;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Lcom/edeal/frontline/kpi/IDataSet; { java/util/Date z ~ ? composeQuery ?(Ljava/util/Map;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String; ? ? ? logger Lorg/apache/commons/logging/Log; ? cannot get the query ? ? ? org/apache/commons/logging/Log ? ? error *(Ljava/lang/Object;Ljava/lang/Throwable;)V ? java/lang/StringBuilder ? SQL Error in performing query [ ? ? ? (Ljava/lang/String;)V ? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ]: w ? ? ? getMessage ()Ljava/lang/String; ? ? ? toString w ¢ £ *(Ljava/lang/String;Ljava/lang/Throwable;)V ¥ ¦ § ctx Lcom/edeal/frontline/FlContext; © « ª com/edeal/frontline/FlContext ¬ getConnection ()Ljava/sql/Connection; ¯ ± ° java/sql/Connection ² ³ createStatement ()Ljava/sql/Statement; µ · ¶ java/sql/Statement ¸ ¹ executeQuery ((Ljava/lang/String;)Ljava/sql/ResultSet; » !com/edeal/frontline/kpi/DBDataSet ½ ¿ ¾ !com/edeal/frontline/kpi/Aggregate À Á SUM #Lcom/edeal/frontline/kpi/Aggregate; º Ã Ä ¸(Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/Aggregate;Ljava/sql/ResultSet;Ljava/sql/Connection;)V Æ ? Ç java/sql/SQLException É Ë Ê com/edeal/frontline/Utils Ì Í cleanUp @(Ljava/sql/Connection;Ljava/sql/Statement;Ljava/sql/ResultSet;)V Ï "SQLException in performing query [ Ñ ? Ò java/lang/Exception Ô Exception in performing query [ params Ljava/util/Map; cal Ljava/util/Calendar; axis1 #Lcom/edeal/frontline/kpi/ICalcAxis; axis2 axis3 query e (Lcom/edeal/frontline/FrontlineException; dataSet #Lcom/edeal/frontline/kpi/DBDataSet; con Ljava/sql/Connection; st Ljava/sql/Statement; rs Ljava/sql/ResultSet; sqle Ljava/sql/SQLException; Ljava/lang/Exception; FLjava/util/Map<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>; StackMapTable î java/util/Map ð java/util/Calendar ò !com/edeal/frontline/kpi/ICalcAxis ô java/sql/ResultSet Ã(Ljava/util/Map<Lcom/edeal/frontline/kpi/CalcParam;Ljava/lang/String;>;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String; ? ø "com/edeal/frontline/kpi/JoinHelper ÷ ú û "(Lcom/edeal/frontline/FlContext;)V ý SELECT COUNT(*) ÿ addAxisField d(Ljava/lang/StringBuilder;ZLcom/edeal/frontline/kpi/JoinHelper;Lcom/edeal/frontline/kpi/ICalcAxis;)V FROM Enterprise GROUP BY q Ljava/lang/StringBuilder; jh $Lcom/edeal/frontline/kpi/JoinHelper; , ñ ? getUserCode = Q equals © isDbMsSqlServer ()Z DATEDIFF(m,EntUpd, É formatToSQL C(Lcom/edeal/frontline/FlContext;Ljava/util/Date;)Ljava/lang/String; ) © isDbOracle" (EntUpd - sysdate)/30.5$ cannot get delay for db ?& ?' (Ljava/lang/Object;)V) &cannot get delay for db not sql server w ? comma Z axis a getUnit 2(Lcom/edeal/frontline/FlLocale;)Ljava/lang/String; 243 com/edeal/frontline/FlLocale56 getLocale ()Ljava/util/Locale; 89: locale Ljava/util/Locale; </0 >@? java/util/LocaleA: FRANCE > >DE: FRENCHG NombreI Number flLocale Lcom/edeal/frontline/FlLocale; result getDescription OM0Q KRÃ?©cence des entreprise basÃ?©es sur la derniÃ?¨re date de modificationS 1Freshness of enterprise based on last update date getSignature *(Ljava/lang/String;)Ljava/util/Collection; O(Ljava/lang/String;)Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>; XY Q containsKey [\] get &(Ljava/lang/Object;)Ljava/lang/Object;_ $[Lcom/edeal/frontline/kpi/CalcParam; bcd size ()I fg 4 valuesikj java/util/Collectionlm iterator ()Ljava/util/Iterator;oqp java/util/Iteratorrs next ()Ljava/lang/Object; uwv java/util/Collectionsxy emptyList ()Ljava/util/List; {}| java/util/Arrays~ asList %([Ljava/lang/Object;)Ljava/util/List; calcParams calcParamCollection Ljava/util/Collection; ;Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>; dispose =()Ljava/util/Collection<Lcom/edeal/frontline/kpi/CalcParam;>; SourceFile DatabaseEnterpriseFreshness.java ! ? S*· *» Y· µ *µ *´ ² ½ Y» Y!· #S¶ &W*´ ² *½ Y» Y-!· #S¶ &W± / * &