net.mlw.vlh.adapter.hibernate.util
Class StatementBuilder
java.lang.Object
net.mlw.vlh.adapter.hibernate.util.StatementBuilder
- public class StatementBuilder
- extends Object
Utility for working with hibernate.
- Version:
- $Revision: 1.4 $ $Date: 2005/12/16 15:40:12 $
- Author:
- Matthew L. Wilson, Andrej Zachar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementBuilder
public StatementBuilder()
generate
public net.sf.hibernate.Query generate(net.sf.hibernate.Session session,
StringBuffer hql,
Map whereClause,
boolean isRemoveEmptyStrings)
throws net.sf.hibernate.HibernateException,
ParseException
- Usage of filters: {key} -> :keyName add to query's parameter map keyValue
[key] -> keyValue
- Parameters:
hql
- whereClause
-
- Returns:
- Query for ordinary list
- Throws:
net.sf.hibernate.HibernateException
ParseException
generateForFocus
public net.sf.hibernate.Query generateForFocus(net.sf.hibernate.Session session,
StringBuffer hql,
Map whereClause,
boolean isRemoveEmptyStrings,
String defaultFocusPropertyObjectAlias,
String focusProperty)
throws net.sf.hibernate.HibernateException,
ParseException
- Generete optimalized query for focusing large amount of data.
- Parameters:
session
- hql
- whereClause
- isRemoveEmptyStrings
- defaultFocusPropertyObjectAlias
- focusProperty
-
- Returns:
-
- Throws:
net.sf.hibernate.HibernateException
ParseException
setSetters
public void setSetters(Map setters)
- Parameters:
setters
- The setters to set.
getSetter
public Setter getSetter(String key)
getDefaultSetter
public Setter getDefaultSetter()
- Returns:
- Returns the defaultSetter.
setDefaultSetter
public void setDefaultSetter(Setter defaultSetter)
- Parameters:
defaultSetter
- The defaultSetter to set.
Copyright © 2003-2006 mlavilson. All Rights Reserved.