3'com/edeal/frontline/kpi/DataSetRecorderjava/lang/Objectlogger Lorg/apache/commons/logging/Log;ctxLcom/edeal/frontline/FlContext;calLjava/util/GregorianCalendar; systemIdSqlLjava/lang/String;.$SWITCH_TABLE$com$edeal$frontline$kpi$AxisType[I()VCode %org/apache/commons/logging/LogFactory getLog3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;  LineNumberTableLocalVariableTable?(Lcom/edeal/frontline/FlContext;Ljava/util/GregorianCalendar;)V Exceptions &com/edeal/frontline/FrontlineException "  $  & (System *,+com/edeal/frontline/Utils -. validateActorW(Lcom/edeal/frontline/FlContext;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; *0 12 formatToSQLE(Lcom/edeal/frontline/FlContext;Ljava/lang/String;)Ljava/lang/String; 4 this)Lcom/edeal/frontline/kpi/DataSetRecorder;contextrecordW(Lcom/edeal/frontline/kpi/IDataSet;Lcom/edeal/frontline/SnapshotBean;Ljava/util/Date;)V;=CalcMethod return a null IDataSet. No recording will be done. =?>org/apache/commons/logging/Log @Awarn(Ljava/lang/Object;)VCjava/lang/StringBuilder B"F(1>0 BH IJappend-(Ljava/lang/String;)Ljava/lang/StringBuilder; LNM com/edeal/frontline/kpi/IDataSet OPgetAxis1%()Lcom/edeal/frontline/kpi/ICalcAxis;R AND T UVgetReadColumns8(ILcom/edeal/frontline/kpi/ICalcAxis;)Ljava/lang/String;X IS NOT NULL LZ [PgetAxis2 L] ^PgetAxis3`) Bb cdtoString()Ljava/lang/String; f ghcreateInsertQuery(Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/SnapshotBean;Ljava/util/Date;Z)Ljava/lang/String;jquery: Bl m(Ljava/lang/String;)V =o pAinfo Lr st getConnection6(Lcom/edeal/frontline/FlContext;)Ljava/sql/Connection; v wx insertDataSet(Ljava/sql/Connection;Lcom/edeal/frontline/kpi/IDataSet;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Ljava/lang/String;)V Lz {| getAggregate%()Lcom/edeal/frontline/kpi/Aggregate; ~  aggregate(Ljava/sql/Connection;Lcom/edeal/frontline/SnapshotBean;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Ljava/util/Date;Lcom/edeal/frontline/kpi/Aggregate;Ljava/lang/String;Z)V  (Ljava/sql/Connection;Lcom/edeal/frontline/SnapshotBean;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Lcom/edeal/frontline/kpi/ICalcAxis;Ljava/util/Date;Lcom/edeal/frontline/kpi/Aggregate;Ljava/lang/String;)V  com/edeal/frontline/SnapshotBean dgetSnaID  updateFobStringValues^(Ljava/sql/Connection;Ljava/util/Date;ILcom/edeal/frontline/kpi/ICalcAxis;Ljava/lang/String;)V java/lang/Throwable d getMessage = error*(Ljava/lang/Object;Ljava/lang/Throwable;)VError recording dataset  *(Ljava/lang/String;Ljava/lang/Throwable;)V L close d getSnaShsID com/edeal/frontline/FlContext getDataDictionary&()Lcom/edeal/frontline/DataDictionary;ShsNu1 "com/edeal/frontline/DataDictionary  getRefDispJ(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;java/lang/Double intValue()IShould only keep B I(I)Ljava/lang/StringBuilder; executions in stat records.  keepOnly&(ILcom/edeal/frontline/SnapshotBean;)V  getSnaLastRun()Ljava/util/Date;  setSnaPrevRun(Ljava/util/Date;)V  setSnaLastRun save'()Lcom/edeal/frontline/OperationResult;0com/edeal/frontline/FieldNotInitializedException)com/edeal/frontline/AccessDeniedExceptiondataset"Lcom/edeal/frontline/kpi/IDataSet;sb"Lcom/edeal/frontline/SnapshotBean;runDateLjava/util/Date; axisCountIisAggrLjava/lang/StringBuilder;axis1#Lcom/edeal/frontline/kpi/ICalcAxis;axis2axis3onlyNonAggregates insertQueryconLjava/sql/Connection;eLjava/lang/Throwable;refIdhistoryLjava/lang/Double;keep StackMapTable!com/edeal/frontline/kpi/ICalcAxisjava/lang/Stringjava/sql/Connectionjava/util/Date@SELECT DISTINCT SreSnapshotTime FROM StatRecords WHERE SreSnaID= ORDER BY 1 DESCNOT IN ( s()Ljava/sql/Connection;  createStatement()Ljava/sql/Statement; java/sql/Statement  executeQuery((Ljava/lang/String;)Ljava/sql/ResultSet;    java/sql/ResultSet   getTimestamp(I)Ljava/sql/Timestamp;, * 1C(Lcom/edeal/frontline/FlContext;Ljava/util/Date;)Ljava/lang/String;   next()Z.DELETE FROM StatRecords WHERE SreSnapshotTime  AND SreSnaID=   executeUpdate(Ljava/lang/String;)I!Deleted # rows to ensure history size == % . Query was '(java/lang/Exception ** +,cleanUp@(Ljava/sql/Connection;Ljava/sql/Statement;Ljava/sql/ResultSet;)VstLjava/sql/Statement;rsLjava/sql/ResultSet;qklidLjava/sql/Timestamp;deletesLjava/lang/Exception;9java/sql/Timestamp ; <=getType$()Lcom/edeal/frontline/kpi/AxisType; ?A@ com/edeal/frontline/kpi/AxisType BCFOB"Lcom/edeal/frontline/kpi/AxisType;E-com/edeal/frontline/kpi/FobToStringCalculator DG HY(Lcom/edeal/frontline/FlContext;Ljava/sql/Connection;Ljava/util/Date;Ljava/lang/String;)V DJ cK'(ILcom/edeal/frontline/kpi/ICalcAxis;)VaxisNumaxissnaID toStringC/Lcom/edeal/frontline/kpi/FobToStringCalculator;tSjava/sql/SQLException U VWprepareStatement0(Ljava/lang/String;)Ljava/sql/PreparedStatement; Y Z[ getIdFactory!()Lcom/edeal/frontline/IdFactory; ]_^com/edeal/frontline/IdFactory `dgetID bdcjava/sql/PreparedStatement ef setString(ILjava/lang/String;)V Lh ijgetValue%()Lcom/edeal/frontline/kpi/SnapValue; lnm!com/edeal/frontline/kpi/SnapValue io()Ljava/math/BigDecimal; bq rs setBigDecimal(ILjava/math/BigDecimal;)V lu Ov()Ljava/lang/Object; x yzvaluesG(Lcom/edeal/frontline/kpi/ICalcAxis;Ljava/lang/Object;)Ljava/util/List; |~}java/util/List iterator()Ljava/util/Iterator; java/util/Iterator v b  setObject(ILjava/lang/Object;)V  hasNext l [v l ^v b addBatch b  executeBatch()[I LDid  insertions. R R getNextException()Ljava/sql/SQLException;psLjava/sql/PreparedStatement; idFactoryLcom/edeal/frontline/IdFactory; totalInserted pendingBatchZv#Lcom/edeal/frontline/kpi/SnapValue;objectsLjava/util/List;oLjava/lang/Object;Ljava/sql/SQLException;e2LocalVariableTypeTable$Ljava/util/List;agg#Lcom/edeal/frontline/kpi/Aggregate; = isDebugEnabled aggregate a B I-(Ljava/lang/Object;)Ljava/lang/StringBuilder; a = Adebug B (I)VSELECT SreValue !com/edeal/frontline/kpi/Aggregate 2 getSqlMethod! FROM StatRecords WHERE SreSnaID= AND SreSnapshotTime= AND SreIsCmeRow= java/lang/Boolean valueOf(Z)Ljava/lang/Boolean; * 1F(Lcom/edeal/frontline/FlContext;Ljava/lang/Boolean;)Ljava/lang/String;  length GROUP BY   substring(I)Ljava/lang/String; =  isInfoEnabledaggregate query: !com/edeal/frontline/kpi/DBDataSet  (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;)Vinsert query: 'DELETE FROM StatRecords WHERE SreSnaID=+calcmethod rows deletions after aggregate:  aggCmeRows groupColsgroupquerydbDs#Lcom/edeal/frontline/kpi/DBDataSet;insertjava/util/ArrayList   getStorageColumns6(ILcom/edeal/frontline/kpi/ICalcAxis;)Ljava/util/List; | addAll(Ljava/util/Collection;)ZINSERT INTO StatRecords ( SreID,   SreSnaID,  SreValue,  SreCreID,  SreModID,  SreCrDt, SreUpd, SreSnapshotTime, SreSnapshotWeek,SreSnapshotWYear, SreIsCmeRow) VALUES ( ?, _#, ?, %'&java/util/GregorianCalendar (setTime %* +,get(I)I . /0 yearOfWeek1(Ljava/util/GregorianCalendar;)Ljava/lang/Object;2, ? |4 5sizeisCmeRowtoInsertfield dateString$Ljava/util/List; Signature[(Lcom/edeal/frontline/kpi/ICalcAxis;Ljava/lang/Object;)Ljava/util/List; > ?@getNullValuePlaceholder3(Lcom/edeal/frontline/FlContext;)Ljava/lang/Object;B&replacing null value with placeholder D (type: F userC: H Id getUserCode ?K LCTIME N OPgetTimeGranularity+()Lcom/edeal/frontline/kpi/TimeGranularity; RTS'com/edeal/frontline/kpi/TimeGranularity UVapplyTo>(Ljava/util/GregorianCalendar;Ljava/util/Date;)Ljava/sql/Date; XZYjava/lang/Integer [(I)Ljava/lang/Integer; ]_^java/util/Arrays `aasList%([Ljava/lang/Object;)Ljava/util/List;valueasDatetmpCalret g  ?i jordinallSreAxisnIntegerpFobrReftStringvDate axisNumberJ(ILcom/edeal/frontline/kpi/ICalcAxis;)Ljava/util/List; z|{java/util/Collections }~ emptyList()Ljava/util/List;WeekWYear   ? y%()[Lcom/edeal/frontline/kpi/AxisType; ? CDELAY ? CIGNORED ? CINT ? CREF ? CSTRINGjava/lang/NoSuchFieldError SourceFileDataSetRecorder.java!   ) o!*!*+#*,%**#+')/3#& '( ) !56!7! 89 j+:<6BYD:EGW+K:QG*SGWGW+Y:QG*SGWGW+\:QG*SGWGW_GWa: *,-e: BYik Gan+*#q: * + u* ,-+y }V* ,-+y * ,-+y * ,-+y * ,-+y +* ,-+y * ,-+y * ,-+y * -,* -,* -,+:   Y : + +,: *# :  6  -BYk Gan* ,: ,,¶Ƨ: ,-,W: HKMUX_dg>.01345#6+7093:J<R=W?Z@qByC~EFHIKLOQTUWX1YF[Z]`_t`bcefghiklopqptuvw#yAzH|K}MUXZ_dgij56jjjXO+?Ry   F 1 * f:B&&-, LB\ TJL 1N::BYk*#,/GGa:BYk:*#N-::6- :  GW*# GW _GWBYkaGG*#,/Ga:6 BY k "G$GGan,:&-): -) -)'v)4<DORU_dm|%(0z 15611/,-.)/0)1 42R3_ 45 /6 7JU  B8o '[ A:>DY*#+,F:I:$,/"$,/1@RA56AAALAMAN $OP1Q"DwxR:+T:*#X:6 6  6  \a,g:   kp: -<*- tw:  {:: =* w:  {:: =* w:  {:: 6  pW6 , WBYk GanH::  & ):))_bR0 "3;LOS_t &)27?_bds{56 IF C "3 ; O td-7  O d Lb]KLb]l| Lb]l|Lb]l| Lb]l|Lb]l| Lb]l|"LbR.I R *+,-}   \ 56 R,Q2BYk-GGaBY:  ĶGW *#ƶȶGWBY: - G*-SGW G*SGW G*SGW a:   GW BYͷk*#,/G϶GaGW *#GW BYQkGѶG*# ӸٶGaGW ܞ ߶GW  GW a: BYk Gan::+: :Y-+:*-,e:BYkGan*+-u xBYk*#,/G϶G*#GѶG*# ӸٶGa6BYkan:))r;;( :FOalp!"$%'#(+*4+@-G.R/l1o2r5z6789:;=>8@;B=CEDHCPEQ56QQQQQQQQ Q F 1 l  G  o/0r-. 6S:GBB+BB  gh Y:+*+W,*,W-*-WBYD:GW GW GW GWGWGWGWGWGWGWGW{:  : GW GW GWGW*#!/GW: "GW*3GGW*3GGW*#:  GWGW GWGW GWGW*%$*%)WGW**%-W6 1GW  3GW*#ӸٶGW_GWa:  2I JKM!N/P3QASJTSU\VeWnXwYZ[\]^_ab_dehij km"n2p=qErNsVt_vgwpyyz{|}~} 566 7J18 =9 3    7:[ |w |B0 |B yz;<;,N-S+*#=NBYAk+*#=CG+:EG+GG_Gan+:JI-:+M*%Q:*%$YSY*%)WSY**%-S\Y-S\* Vbhy456Mbh@c VQ/0v +)=+)2+)W  56 d eUVf,:h.+s+C[BYkkmGaBYkkoGaBYkkqGaBYkksGaBYkkuGa"8Ph 56wM 8;x%,yf,:h. ++Mo YBYkkmGaS\YBYkkoGaS\YBYkkqGaS\YBYkksGaS\YBYkkuGaSYBYkkGaSYBYkkGaS\y* @b! %56%w%M 7!!!!U sYW K*hOW*>hOW*hOW*hOW*hOW*hOW*JhOW*Y&)*478ADEORS\_`il2HKLKLKK