com.hack23.cia.model.application.impl.common
Class AbstractActionEvent

Package class diagram package AbstractActionEvent
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.application.impl.common.AbstractActionEvent
All Implemented Interfaces:
ActionEvent, Event, ModelObject, PersistedModelObject, Serializable
Direct Known Subclasses:
AbstractAdminActionEvent, AbstractUserActionEvent, ApplicationActionEvent, ApplicationErrorActionEvent

@Entity
public abstract class AbstractActionEvent
extends BaseEntity
implements ActionEvent

The Class AbstractActionEvent.

See Also:
Serialized Form

Constructor Summary
AbstractActionEvent(ActionEventType actionEventType)
          Instantiates a new abstract action event.
AbstractActionEvent(Date createdDate, UserSession userSession)
          Instantiates a new abstract action event.
 
Method Summary
 void computeExutionTime()
          Compute exution time.
 ActionEventType getActionEventType()
          Gets the action event type.
 Date getCreatedDate()
          Gets the created date.
 Long getExecutionTime()
          Gets the execution time.
 Long getId()
          Gets the id.
 UserSession getUserSession()
          Gets the user session.
 Long getVersion()
          Gets the version.
 void setActionEventType(ActionEventType actionEventType)
          Sets the action event type.
 void setCreatedDate(Date createdDate)
          Sets the created date.
 void setExecutionTime(Long executionTime)
          Sets the execution time.
 void setId(Long id)
          Sets the id.
 void setUserSession(UserSession userSession)
          Sets the user session.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity
equals, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject
isNew
 

Constructor Detail

AbstractActionEvent

public AbstractActionEvent(ActionEventType actionEventType)
Instantiates a new abstract action event.

Parameters:
actionEventType - the action event type

AbstractActionEvent

public AbstractActionEvent(Date createdDate,
                           UserSession userSession)
Instantiates a new abstract action event.

Parameters:
createdDate - the created date
userSession - the user session
Method Detail

computeExutionTime

public void computeExutionTime()
Description copied from interface: ActionEvent
Compute exution time.

Specified by:
computeExutionTime in interface ActionEvent

getActionEventType

public ActionEventType getActionEventType()
Description copied from interface: ActionEvent
Gets the action event type.

Specified by:
getActionEventType in interface ActionEvent
Returns:
the action event type

getCreatedDate

public Date getCreatedDate()
Description copied from interface: ActionEvent
Gets the created date.

Specified by:
getCreatedDate in interface ActionEvent
Returns:
the created date

getExecutionTime

public Long getExecutionTime()
Description copied from interface: ActionEvent
Gets the execution time.

Specified by:
getExecutionTime in interface ActionEvent
Returns:
the execution time

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getUserSession

public UserSession getUserSession()
Gets the user session.

Returns:
the user session

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

setActionEventType

public void setActionEventType(ActionEventType actionEventType)
Description copied from interface: ActionEvent
Sets the action event type.

Specified by:
setActionEventType in interface ActionEvent
Parameters:
actionEventType - the new action event type

setCreatedDate

public void setCreatedDate(Date createdDate)
Description copied from interface: ActionEvent
Sets the created date.

Specified by:
setCreatedDate in interface ActionEvent
Parameters:
createdDate - the new created date

setExecutionTime

public void setExecutionTime(Long executionTime)
Description copied from interface: ActionEvent
Sets the execution time.

Specified by:
setExecutionTime in interface ActionEvent
Parameters:
executionTime - the new execution time

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setUserSession

public void setUserSession(UserSession userSession)
Sets the user session.

Parameters:
userSession - the new user session

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.