org.jumpmind.symmetric.service.impl
Class StatisticService

java.lang.Object
  extended by org.jumpmind.symmetric.service.impl.StatisticService
All Implemented Interfaces:
IStatisticService

public class StatisticService
extends java.lang.Object
implements IStatisticService


Field Summary
protected  org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
           
protected  IParameterService parameterService
           
 
Constructor Summary
StatisticService()
           
 
Method Summary
 java.util.List<StatisticAlertThresholds> getAlertThresholds()
           
protected  org.springframework.jdbc.core.simple.SimpleJdbcTemplate getSimpleTemplate()
           
 java.lang.String getSql(java.lang.String key)
           
 boolean removeStatisticAlertThresholds(java.lang.String statisticName)
           
 void save(java.util.Collection<Statistic> stats, java.util.Date captureEndTime)
           
 void saveStatisticAlertThresholds(StatisticAlertThresholds threshold)
           
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbc)
           
 void setParameterService(IParameterService parameterService)
           
 void setSql(java.util.Map<java.lang.String,java.lang.String> sql)
           
protected  java.sql.SQLException unwrapSqlException(java.lang.Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameterService

protected IParameterService parameterService

jdbcTemplate

protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
Constructor Detail

StatisticService

public StatisticService()
Method Detail

save

public void save(java.util.Collection<Statistic> stats,
                 java.util.Date captureEndTime)
Specified by:
save in interface IStatisticService

getAlertThresholds

public java.util.List<StatisticAlertThresholds> getAlertThresholds()
Specified by:
getAlertThresholds in interface IStatisticService

saveStatisticAlertThresholds

public void saveStatisticAlertThresholds(StatisticAlertThresholds threshold)
Specified by:
saveStatisticAlertThresholds in interface IStatisticService

removeStatisticAlertThresholds

public boolean removeStatisticAlertThresholds(java.lang.String statisticName)
Specified by:
removeStatisticAlertThresholds in interface IStatisticService

setJdbcTemplate

public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbc)

getSimpleTemplate

protected org.springframework.jdbc.core.simple.SimpleJdbcTemplate getSimpleTemplate()

unwrapSqlException

protected java.sql.SQLException unwrapSqlException(java.lang.Throwable e)

setSql

public void setSql(java.util.Map<java.lang.String,java.lang.String> sql)

getSql

public java.lang.String getSql(java.lang.String key)

setParameterService

public void setParameterService(IParameterService parameterService)


Copyright © 2007-2008. All Rights Reserved.