@Override public void deleteLastStartTimes(final InternalCallContext context) { delegate.deleteLastStartTimes(context); }
@Override public String getEventCategory(final Integer eventCategoryId, final InternalTenantContext context) throws UnableToObtainConnectionException, CallbackFailedException { return delegate.getCategory(eventCategoryId, context); }
@Override public Integer getEventCategoryId(final String eventCategory, final InternalTenantContext context) throws UnableToObtainConnectionException, CallbackFailedException { return delegate.getCategoryRecordId(eventCategory, context); }
@Override public Long inTransaction(final TimelineSqlDao transactional, final TransactionStatus status) throws Exception { transactional.insertTimelineChunk(timelineChunk, context); final long timelineChunkId = transactional.getLastInsertedRecordId(context); return timelineChunkId; } });
@Override public Integer getMetricId(final int eventCategoryId, final String metric, final InternalTenantContext context) throws UnableToObtainConnectionException, CallbackFailedException { return delegate.getMetricRecordId(eventCategoryId, metric, context); }
@Override public StartTimes getLastStartTimes(final InternalTenantContext context) { return delegate.getLastStartTimes(context); }
@Override public CategoryRecordIdAndMetric getCategoryIdAndMetric(final Integer metricId, final InternalTenantContext context) throws UnableToObtainConnectionException, CallbackFailedException { return delegate.getCategoryRecordIdAndMetric(metricId, context); }
@Override public void bulkInsertTimelineChunks(final List<TimelineChunk> timelineChunkList, final InternalCallContext context) { delegate.bulkInsertTimelineChunks(timelineChunkList.iterator(), context); }
@Override public BiMap<Integer, String> getEventCategories(final InternalTenantContext context) throws UnableToObtainConnectionException, CallbackFailedException { final HashBiMap<Integer, String> accumulator = HashBiMap.create(); for (final Map<String, Object> eventCategory : delegate.getCategories(context)) { accumulator.put(Integer.valueOf(eventCategory.get("record_id").toString()), eventCategory.get("category").toString()); } return accumulator; }
@Override public BiMap<Integer, CategoryRecordIdAndMetric> getMetrics(final InternalTenantContext context) throws UnableToObtainConnectionException, CallbackFailedException { final HashBiMap<Integer, CategoryRecordIdAndMetric> accumulator = HashBiMap.create(); for (final Map<String, Object> metricInfo : delegate.getMetrics(context)) { accumulator.put(Integer.valueOf(metricInfo.get("record_id").toString()), new CategoryRecordIdAndMetric((Integer) metricInfo.get("category_record_id"), metricInfo.get("metric").toString())); } return accumulator; }