it.eng.spagobi.bo.dao.hibernate
Class EventLogDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.hibernate.EventLogDAOHibImpl
All Implemented Interfaces:
IEventLogDAO

public class EventLogDAOHibImpl
extends AbstractHibernateDAO
implements IEventLogDAO

Author:
Gioia

Constructor Summary
EventLogDAOHibImpl()
           
 
Method Summary
 void eraseEventLog(EventLog eventLog)
          Erase an event log.
 void eraseEventsLogByUser(java.lang.String user)
          Erase all event logs related to events registered by the specificated user.
 void insertEventLog(EventLog eventLog)
          Register a new EventLog.
 EventLog loadEventLog(java.lang.String id, java.lang.String user, java.lang.String date)
          Loads an event log
 java.util.List loadEventsLogByUser(java.lang.String user)
          Loads a list of all logs associated to events registered by the specified user
private  EventLog toEventsLog(SbiEventsLog hibEventLog)
           
private  SbiEventsLog toSbiEventsLog(EventLog eventLog)
           
 
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventLogDAOHibImpl

public EventLogDAOHibImpl()
Method Detail

loadEventLog

public EventLog loadEventLog(java.lang.String id,
                             java.lang.String user,
                             java.lang.String date)
                      throws EMFUserError
Description copied from interface: IEventLogDAO
Loads an event log

Specified by:
loadEventLog in interface IEventLogDAO
user - The user that has registered the events
Returns:
A List of EventLog containing all loaded information
Throws:
EMFUserError - If an Exception occurred

loadEventsLogByUser

public java.util.List loadEventsLogByUser(java.lang.String user)
                                   throws EMFUserError
Description copied from interface: IEventLogDAO
Loads a list of all logs associated to events registered by the specified user

Specified by:
loadEventsLogByUser in interface IEventLogDAO
Parameters:
user - The user that has registered the events
Returns:
A List of EventLog containing all loaded information
Throws:
EMFUserError - If an Exception occurred

insertEventLog

public void insertEventLog(EventLog eventLog)
                    throws EMFUserError
Description copied from interface: IEventLogDAO
Register a new EventLog.

Specified by:
insertEventLog in interface IEventLogDAO
Throws:
EMFUserError - If an Exception occurred

eraseEventLog

public void eraseEventLog(EventLog eventLog)
                   throws EMFUserError
Description copied from interface: IEventLogDAO
Erase an event log.

Specified by:
eraseEventLog in interface IEventLogDAO
Throws:
EMFUserError - If an Exception occurred

eraseEventsLogByUser

public void eraseEventsLogByUser(java.lang.String user)
                          throws EMFUserError
Description copied from interface: IEventLogDAO
Erase all event logs related to events registered by the specificated user.

Specified by:
eraseEventsLogByUser in interface IEventLogDAO
Throws:
EMFUserError - If an Exception occurred

toEventsLog

private EventLog toEventsLog(SbiEventsLog hibEventLog)

toSbiEventsLog

private SbiEventsLog toSbiEventsLog(EventLog eventLog)