se.citerus.dddsample.application.util
Class SampleDataGenerator

java.lang.Object
  extended by se.citerus.dddsample.application.util.SampleDataGenerator
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class SampleDataGenerator
extends java.lang.Object
implements javax.servlet.ServletContextListener

Provides sample data.


Constructor Summary
SampleDataGenerator()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
static void loadHibernateData(org.springframework.transaction.support.TransactionTemplate tt, org.hibernate.SessionFactory sf, HandlingEventFactory handlingEventFactory, HandlingEventRepository handlingEventRepository)
           
static void loadSampleData(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
static java.util.Date offset(int hours)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleDataGenerator

public SampleDataGenerator()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

loadHibernateData

public static void loadHibernateData(org.springframework.transaction.support.TransactionTemplate tt,
                                     org.hibernate.SessionFactory sf,
                                     HandlingEventFactory handlingEventFactory,
                                     HandlingEventRepository handlingEventRepository)

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

loadSampleData

public static void loadSampleData(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
                                  org.springframework.transaction.support.TransactionTemplate transactionTemplate)

offset

public static java.util.Date offset(int hours)


Copyright © 2009. All Rights Reserved.