org.jumpmind.symmetric.service.impl
Class BootstrapService

java.lang.Object
  extended by org.jumpmind.symmetric.service.impl.BootstrapService
All Implemented Interfaces:
IBootstrapService

public class BootstrapService
extends java.lang.Object
implements IBootstrapService


Field Summary
protected  org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
           
protected  IParameterService parameterService
           
 
Constructor Summary
BootstrapService()
           
 
Method Summary
 java.util.Map<java.lang.Integer,Trigger> getCachedTriggers(boolean refreshCache)
           
protected  org.springframework.jdbc.core.simple.SimpleJdbcTemplate getSimpleTemplate()
           
 java.lang.String getSql(java.lang.String key)
           
 void heartbeat()
           
 void register()
          Deprecated. 
 void setClusterService(IClusterService clusterService)
           
 void setConfigurationService(IConfigurationService configurationService)
           
 void setDataService(IDataService dataService)
           
 void setDbDialect(IDbDialect dbDialect)
           
 void setDefaultChannels(java.util.List<Channel> defaultChannels)
           
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbc)
           
 void setNodeService(INodeService nodeService)
           
 void setParameterService(IParameterService parameterService)
           
 void setRegistrationService(IRegistrationService registrationService)
           
 void setSql(java.util.Map<java.lang.String,java.lang.String> sql)
           
 void setTablePrefix(java.lang.String tablePrefix)
           
 void setupDatabase()
           
 void setupDatabase(boolean force)
           
 void setUpgradeService(IUpgradeService upgradeService)
           
 void syncTriggers()
          This is done periodically throughout the day (so it needs to be efficient).
protected  java.sql.SQLException unwrapSqlException(java.lang.Throwable e)
           
 void validateConfiguration()
           
 
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

BootstrapService

public BootstrapService()
Method Detail

setupDatabase

public void setupDatabase()
Specified by:
setupDatabase in interface IBootstrapService

setupDatabase

public void setupDatabase(boolean force)
Specified by:
setupDatabase in interface IBootstrapService

syncTriggers

public void syncTriggers()
This is done periodically throughout the day (so it needs to be efficient). If the trigger is created for the first time (no previous trigger existed), then should we auto-resync data?

Specified by:
syncTriggers in interface IBootstrapService

getCachedTriggers

public java.util.Map<java.lang.Integer,Trigger> getCachedTriggers(boolean refreshCache)
Specified by:
getCachedTriggers in interface IBootstrapService

register

@Deprecated
public void register()
Deprecated. 

Specified by:
register in interface IBootstrapService

validateConfiguration

public void validateConfiguration()
Specified by:
validateConfiguration in interface IBootstrapService

heartbeat

@Transactional
public void heartbeat()
Specified by:
heartbeat in interface IBootstrapService

setConfigurationService

public void setConfigurationService(IConfigurationService configurationService)

setDbDialect

public void setDbDialect(IDbDialect dbDialect)

setNodeService

public void setNodeService(INodeService nodeService)

setTablePrefix

public void setTablePrefix(java.lang.String tablePrefix)

setDataService

public void setDataService(IDataService dataService)

setUpgradeService

public void setUpgradeService(IUpgradeService upgradeService)

setClusterService

public void setClusterService(IClusterService clusterService)

setRegistrationService

public void setRegistrationService(IRegistrationService registrationService)

setDefaultChannels

public void setDefaultChannels(java.util.List<Channel> defaultChannels)

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.