ca.uhn.cache.internal.hibernate.impl
Class DateParamField

java.lang.Object
  extended byca.uhn.cache.impl.CommonsLangObject
      extended byca.uhn.cache.internal.hibernate.impl.HibernateObject
          extended byca.uhn.cache.internal.hibernate.impl.Field
              extended byca.uhn.cache.internal.hibernate.impl.DateParamField
All Implemented Interfaces:
java.lang.Comparable

public class DateParamField
extends Field

Hibernate persistable object with xdoclet annotations for DateParam.

Version:
$Revision: 1.1 $ updated on $Date: 2005/01/24 22:52:40 $ by $Author: bryan_tripp $
Author:
Alexei Guevara

Constructor Summary
DateParamField()
           
DateParamField(Record theRecord, DateParam theParam)
          Constructs a DateParamField from a source DateParam.
 
Method Summary
 boolean equals(java.lang.Object theObj)
          
 java.sql.Timestamp getValue()
           
 int hashCode()
          
 void setValue(java.sql.Timestamp theValue)
           
 IQueryParam toQueryParam(java.util.Map theDimensionNameToDimensionMap)
          TODO refactor the parameter theDimensionNameToDimensionMap to use a typed map!
 java.lang.String toString()
          
 
Methods inherited from class ca.uhn.cache.internal.hibernate.impl.Field
compareTo, getDimensionName, getRecord, setDimensionName, setRecord
 
Methods inherited from class ca.uhn.cache.internal.hibernate.impl.HibernateObject
getHibernateId, setHibernateId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateParamField

public DateParamField(Record theRecord,
                      DateParam theParam)
Constructs a DateParamField from a source DateParam.

Parameters:
theRecord - The record this field belongs to.
theParam - The source DateParam.

DateParamField

public DateParamField()
Method Detail

getValue

public java.sql.Timestamp getValue()
Returns:
Returns the value.

setValue

public void setValue(java.sql.Timestamp theValue)
Parameters:
theValue - The value to set.

toQueryParam

public IQueryParam toQueryParam(java.util.Map theDimensionNameToDimensionMap)
TODO refactor the parameter theDimensionNameToDimensionMap to use a typed map!

Specified by:
toQueryParam in class Field
Parameters:
theDimensionNameToDimensionMap - Map of dimension name to dimension.
Returns:
The IQueryParam implementation corresponding to this field.

hashCode

public int hashCode()

Overrides:
hashCode in class Field

equals

public boolean equals(java.lang.Object theObj)

Overrides:
equals in class Field

toString

public java.lang.String toString()

Overrides:
toString in class Field


Copyright © 2004-2005 University Health Network. All Rights Reserved.