コード例 #1
0
 ResultSetInternalMethods execSQL(
     final StatementImpl callingStatement,
     final String sql,
     final int maxRows,
     final Buffer packet,
     final int resultSetType,
     final int resultSetConcurrency,
     final boolean streamResults,
     final String catalog,
     final Field[] fields,
     final boolean isBatch)
     throws SQLException {
   final TimeCounter timeCounter = createTimeCounter(createTimeCounterName(callingStatement));
   try {
     return super.execSQL(
         callingStatement,
         sql,
         maxRows,
         packet,
         resultSetType,
         resultSetConcurrency,
         streamResults,
         catalog,
         fields,
         isBatch);
   } finally {
     timeCounter.stop();
   }
 }
コード例 #2
0
 @Override
 public International get(final String part, final Locale locale) {
   final TimeCounter timeCounter = createTimeCounter(part);
   try {
     return new InternationalTimeCounter(internationalStorage.get(part, locale), part);
   } finally {
     timeCounter.stop();
   }
 }