org.talend.esb.sam.server.persistence
Class EventRepositoryImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
              extended by org.talend.esb.sam.server.persistence.EventRepositoryImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.talend.esb.sam.common.event.persistence.EventRepository

public class EventRepositoryImpl
extends org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
implements org.talend.esb.sam.common.event.persistence.EventRepository

The Class EventRepositoryImpl is implementing the event repository logic.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
EventRepositoryImpl()
           
 
Method Summary
 org.talend.esb.sam.common.event.Event readEvent(long id)
           
 void setDialect(DatabaseDialect dialect)
          Sets the database dialect.
 void writeEvent(org.talend.esb.sam.common.event.Event event)
           
 
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
getSimpleJdbcTemplate, initTemplateConfig
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventRepositoryImpl

public EventRepositoryImpl()
Method Detail

setDialect

public void setDialect(DatabaseDialect dialect)
Sets the database dialect.

Parameters:
dialect - the database dialect

writeEvent

public void writeEvent(org.talend.esb.sam.common.event.Event event)
Specified by:
writeEvent in interface org.talend.esb.sam.common.event.persistence.EventRepository

readEvent

public org.talend.esb.sam.common.event.Event readEvent(long id)
Specified by:
readEvent in interface org.talend.esb.sam.common.event.persistence.EventRepository


Copyright © 2011-2012 Talend Inc.. All Rights Reserved.