se.citerus.dddsample.infrastructure.persistence.hibernate
Class HandlingEventRepositoryHibernate

java.lang.Object
  extended by se.citerus.dddsample.infrastructure.persistence.hibernate.HibernateRepository
      extended by se.citerus.dddsample.infrastructure.persistence.hibernate.HandlingEventRepositoryHibernate
All Implemented Interfaces:
HandlingEventRepository

@Repository
public class HandlingEventRepositoryHibernate
extends HibernateRepository
implements HandlingEventRepository

Hibernate implementation of HandlingEventRepository.


Constructor Summary
HandlingEventRepositoryHibernate()
           
 
Method Summary
 HandlingHistory lookupHandlingHistoryOfCargo(TrackingId trackingId)
           
 void store(HandlingEvent event)
          Stores a (new) handling event.
 
Methods inherited from class se.citerus.dddsample.infrastructure.persistence.hibernate.HibernateRepository
getSession, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlingEventRepositoryHibernate

public HandlingEventRepositoryHibernate()
Method Detail

store

public void store(HandlingEvent event)
Description copied from interface: HandlingEventRepository
Stores a (new) handling event.

Specified by:
store in interface HandlingEventRepository
Parameters:
event - handling event to save

lookupHandlingHistoryOfCargo

public HandlingHistory lookupHandlingHistoryOfCargo(TrackingId trackingId)
Specified by:
lookupHandlingHistoryOfCargo in interface HandlingEventRepository
Parameters:
trackingId - cargo tracking id
Returns:
The handling history of this cargo


Copyright © 2009. All Rights Reserved.