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

java.lang.Object
  extended byca.uhn.cache.internal.hibernate.impl.StringParamHelper
All Implemented Interfaces:
IQueryParamHelper

public class StringParamHelper
extends java.lang.Object
implements IQueryParamHelper

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

Constructor Summary
StringParamHelper()
           
 
Method Summary
 Field createField(Record theRecord, IPointQueryParam theQueryParam)
          Creates an instance of the Field subclass corresponding to the provided IQueryParam.
 java.lang.String generateHql(IGroupQueryParam theGroupQueryParam, int theIndex)
          Generates the HQL corresponding to the provided "point" query param.
 java.lang.String generateHql(IPointQueryParam thePointQueryParam, int theIndex)
          Generates the HQL corresponding to the provided "point" query param.
 java.util.Map generateHqlParamMap(IGroupQueryParam theGroupQueryParam, int theIndex)
          Generates a Map of paramName => paramValue corresponding to the provided "point" query param.
 java.util.Map generateHqlParamMap(IPointQueryParam thePointQueryParam, int theIndex)
          Generates a Map of paramName => paramValue corresponding to the provided "point" query param.
 java.lang.Class getFieldClass()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringParamHelper

public StringParamHelper()
Method Detail

createField

public Field createField(Record theRecord,
                         IPointQueryParam theQueryParam)
Creates an instance of the Field subclass corresponding to the provided IQueryParam.

Specified by:
createField in interface IQueryParamHelper
Parameters:
theRecord - The record this field belongs to.
theQueryParam - The provided query param.
Returns:
The created Field subclass.

getFieldClass

public java.lang.Class getFieldClass()

Specified by:
getFieldClass in interface IQueryParamHelper
Returns:
The class of the field that is created when invoking the method IQueryParamHelper.createField(Record, IPointQueryParam)

generateHql

public java.lang.String generateHql(IPointQueryParam thePointQueryParam,
                                    int theIndex)
Generates the HQL corresponding to the provided "point" query param.

Specified by:
generateHql in interface IQueryParamHelper
Parameters:
thePointQueryParam - The provided "point" query param.
theIndex - The index of the query param within the containing query.
Returns:
The generated HQL.

generateHqlParamMap

public java.util.Map generateHqlParamMap(IPointQueryParam thePointQueryParam,
                                         int theIndex)
Generates a Map of paramName => paramValue corresponding to the provided "point" query param.

Specified by:
generateHqlParamMap in interface IQueryParamHelper
Parameters:
thePointQueryParam - The provided "point" query param.
theIndex - The index of the query param within the containing query.
Returns:
The generated Map.

generateHql

public java.lang.String generateHql(IGroupQueryParam theGroupQueryParam,
                                    int theIndex)
Generates the HQL corresponding to the provided "point" query param.

Specified by:
generateHql in interface IQueryParamHelper
Parameters:
theGroupQueryParam - The provided "group" query param.
theIndex - The index of the query param within the containing query.
Returns:
The generated HQL.

generateHqlParamMap

public java.util.Map generateHqlParamMap(IGroupQueryParam theGroupQueryParam,
                                         int theIndex)
Generates a Map of paramName => paramValue corresponding to the provided "point" query param.

Specified by:
generateHqlParamMap in interface IQueryParamHelper
Parameters:
theGroupQueryParam - The provided "group" query param.
theIndex - The index of the query param within the containing query.
Returns:
The generated Map.


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