gov.nih.nci.cagrid.data.sdk32query.experimental.hql313
Class CQL2HQL

java.lang.Object
  extended by gov.nih.nci.cagrid.data.sdk32query.experimental.hql313.CQL2HQL

public class CQL2HQL
extends java.lang.Object

CQL2HQL Converter utility to turn CQL into HQL compatible with Hibernate 3.1.3 for use with caCORE SDK 3.2

Version:
$Id: CQL2HQL.java,v 1.3 2008/02/05 21:33:09 dervin Exp $
Author:
David Ervin

Constructor Summary
CQL2HQL()
           
 
Method Summary
static java.lang.String convertToHql(CQLQuery query, boolean avoidSubclasses, boolean caseInsensitive)
          Converts CQL to HQL suitable for use with Hibernate v3.1.3 and the caCORE SDK version 3.2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CQL2HQL

public CQL2HQL()
Method Detail

convertToHql

public static java.lang.String convertToHql(CQLQuery query,
                                            boolean avoidSubclasses,
                                            boolean caseInsensitive)
                                     throws QueryProcessingException
Converts CQL to HQL suitable for use with Hibernate v3.1.3 and the caCORE SDK version 3.2

Parameters:
query - The query to convert
avoidSubclasses - A flag to indicate the target has subclasses, which we should not return
caseInsensitive - A flag to indicate the query should be performed without regard to case
Returns:
The result of converting CQL to HQL
Throws:
QueryProcessingException