ibspan.ecap.merchant.shopdecisions.dataaccess
Class TimeEntity

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.dataaccess.TimeEntity

public class TimeEntity
extends java.lang.Object

A class representing a time dimension entity.

Author:
Micha³ Drozdowicz

Constructor Summary
TimeEntity(java.util.Date fullTime, int hour, java.lang.String amPmIndicator)
          Creates a new instance of TimeEntity.
 
Method Summary
 java.lang.String getAmPmIndicator()
          Gets the AM/PM indicator.
 java.util.Date getFullTime()
          Gets the full timestamp.
 int getHour()
          Gets the hour part of the time (0-23)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeEntity

public TimeEntity(java.util.Date fullTime,
                  int hour,
                  java.lang.String amPmIndicator)
Creates a new instance of TimeEntity.

Parameters:
fullTime - the full timestamp.
hour - the hour part of the time (1-24)
amPmIndicator - the AM/PM indicator. Can take the value of 'AM' or 'PM'.
Method Detail

getAmPmIndicator

public java.lang.String getAmPmIndicator()
Gets the AM/PM indicator. Can take the value of 'AM' or 'PM'.

Returns:
the AM/PM indicator. Can take the value of 'AM' or 'PM'.

getFullTime

public java.util.Date getFullTime()
Gets the full timestamp.

Returns:
the full timestamp.

getHour

public int getHour()
Gets the hour part of the time (0-23)

Returns:
the hour part of the time (0-23)