org.jumpmind.symmetric.service.impl
Class ParameterService
java.lang.Object
org.jumpmind.symmetric.service.impl.ParameterService
- All Implemented Interfaces:
- IParameterService, org.springframework.beans.factory.BeanFactoryAware
public class ParameterService
- extends java.lang.Object
- implements IParameterService, org.springframework.beans.factory.BeanFactoryAware
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameterService
protected IParameterService parameterService
jdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
ParameterService
public ParameterService()
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
getDecimal
public java.math.BigDecimal getDecimal(java.lang.String key)
- Specified by:
getDecimal in interface IParameterService
is
public boolean is(java.lang.String key)
- Specified by:
is in interface IParameterService
getInt
public int getInt(java.lang.String key)
- Specified by:
getInt in interface IParameterService
getLong
public long getLong(java.lang.String key)
- Specified by:
getLong in interface IParameterService
getString
public java.lang.String getString(java.lang.String key)
- Specified by:
getString in interface IParameterService
saveParameter
public void saveParameter(java.lang.String key,
java.lang.Object paramValue)
- Specified by:
saveParameter in interface IParameterService
saveParameter
public void saveParameter(java.lang.String externalId,
java.lang.String nodeGroupId,
java.lang.String key,
java.lang.Object paramValue)
- Specified by:
saveParameter in interface IParameterService
saveParameters
public void saveParameters(java.lang.String externalId,
java.lang.String nodeGroupId,
java.util.Map<java.lang.String,java.lang.Object> parameters)
- Specified by:
saveParameters in interface IParameterService
rereadParameters
public void rereadParameters()
- Specified by:
rereadParameters in interface IParameterService
getAllParameters
public java.util.Map<java.lang.String,java.lang.String> getAllParameters()
- Specified by:
getAllParameters in interface IParameterService
getLastTimeParameterWereCached
public java.util.Date getLastTimeParameterWereCached()
- Specified by:
getLastTimeParameterWereCached in interface IParameterService
setParameterFilter
public void setParameterFilter(IParameterFilter parameterFilter)
- Specified by:
setParameterFilter in interface IParameterService
getExternalId
public java.lang.String getExternalId()
- Description copied from interface:
IParameterService
- Get the external id for this instance
- Specified by:
getExternalId in interface IParameterService
getMyUrl
public java.lang.String getMyUrl()
- Description copied from interface:
IParameterService
- Provide information about the URL used to contact this symmetric instance
- Specified by:
getMyUrl in interface IParameterService
getNodeGroupId
public java.lang.String getNodeGroupId()
- Description copied from interface:
IParameterService
- Get the group id for this instance
- Specified by:
getNodeGroupId in interface IParameterService
getRegistrationUrl
public java.lang.String getRegistrationUrl()
- Description copied from interface:
IParameterService
- Provide the url used to register at to get initial configuration
information
- Specified by:
getRegistrationUrl in interface IParameterService
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.