com.geekologue.md4j.dao.hibernate
Class Helper

java.lang.Object
  extended by com.geekologue.md4j.dao.hibernate.Helper

public class Helper
extends java.lang.Object

Author:
manos

Constructor Summary
Helper()
           
 
Method Summary
static java.util.Map getQueryResultAsMap(org.hibernate.Criteria query, java.lang.String keyProjectionProp, java.lang.String valueProjectionProp)
           
static java.util.List getQueryResultAsMapList(org.hibernate.Criteria query, java.util.Set projectionProps)
          Produce a List containint Maps for each row for the given scalar query This method will only change the given criteria to add the appropriate projections, aliases must already be properly set, for example, a projection "foo.bar" assumes "foo" is already an alias.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helper

public Helper()
Method Detail

getQueryResultAsMapList

public static final java.util.List getQueryResultAsMapList(org.hibernate.Criteria query,
                                                           java.util.Set projectionProps)
Produce a List containint Maps for each row for the given scalar query This method will only change the given criteria to add the appropriate projections, aliases must already be properly set, for example, a projection "foo.bar" assumes "foo" is already an alias.

Parameters:
query -
projectionProps -

getQueryResultAsMap

public static final java.util.Map getQueryResultAsMap(org.hibernate.Criteria query,
                                                      java.lang.String keyProjectionProp,
                                                      java.lang.String valueProjectionProp)
Parameters:
query -
projectionProps -


Copyright © 2003-2007 Manos Batsis. All Rights Reserved.