se.citerus.dddsample.application.util
Class SampleDataGenerator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleDataGenerator
public SampleDataGenerator()
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.