@@ -88,20 +88,21 @@ public void loadAllHelper( List<T> l, String query, FieldList fields, RSExtracto
8888 try {
8989 long startTime = System .currentTimeMillis ();
9090 String queryId = this .createQueryId (startTime );
91- log .debug ( "queryId:{}, loadAll START list : '{}' " , queryId , l .size () );
92- log .debug ( "queryId:{}, loadAll fields : '{}'" , queryId , fields .size () );
93- log .debug ( "queryId:{}, loadAll RSExtractor : '{}'" , queryId , re );
91+ log .debug ( "queryId:'{}', loadAll START list : '{}'" , queryId , l .size () );
92+ log .debug ( "queryId:'{}', loadAll sql : '{}'" , queryId , query );
93+ log .debug ( "queryId:'{}', loadAll fields : '{}'" , queryId , fields .size () );
94+ log .debug ( "queryId:'{}', loadAll RSExtractor : '{}'" , queryId , re );
9495 Connection conn = this .daoContext .getConnection ();
9596 int i =0 ;
9697 try ( PreparedStatement ps = conn .prepareStatement ( query ) ) {
97- DAOHelper .setAll ( ps , fields , this );
98+ DAOHelper .setAll ( queryId , ps , fields , log );
9899 try ( ResultSet rs = ps .executeQuery () ) {
99- log .debug ("queryId:{} , loadAll query execute end time : '{}'" , queryId , CheckpointUtils .formatTimeDiff (startTime , System .currentTimeMillis ()) );
100+ log .debug ("queryId:'{}' , loadAll query execute end time : '{}'" , queryId , CheckpointUtils .formatTimeDiff (startTime , System .currentTimeMillis ()) );
100101 while (rs .next ()) {
101102 l .add ( re .extractNext ( rs ) );
102103 i ++;
103104 }
104- log .debug ("queryId:{} , loadAll query result end time : '{}'" , queryId , CheckpointUtils .formatTimeDiff (startTime , System .currentTimeMillis ()) );
105+ log .debug ("queryId:'{}' , loadAll query result end time : '{}'" , queryId , CheckpointUtils .formatTimeDiff (startTime , System .currentTimeMillis ()) );
105106 }
106107 } catch (SQLException e ) {
107108 throw (new DAOException ( e .getMessage ()+"[query:" +query +",record:" +i +"]" , e ));
0 commit comments