org.hyperic.hq.grouping
Class CritterTranslationContext
java.lang.Object
org.hyperic.hq.grouping.CritterTranslationContext
public class CritterTranslationContext
- extends java.lang.Object
This context is used to provide additional information to Critter
s
which they may use to generate more specific SQL (i.e. based on the
executing user, or more specific SQL from the dialect)
The context also provides utility methods for getting unique strings for
SQL aliases or Hibernate bindings -- used to prevent collisions between
criteria which use the same variable names.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CritterTranslationContext
public CritterTranslationContext(AuthzSubject subj)
CritterTranslationContext
public CritterTranslationContext(AuthzSubject subj,
org.hibernate.Session s,
HQDialect d,
java.lang.String prefix)
getSubject
public AuthzSubject getSubject()
getSession
public org.hibernate.Session getSession()
getDialect
public org.hibernate.dialect.Dialect getDialect()
getHQDialect
public HQDialect getHQDialect()
escapeSql
public java.lang.String escapeSql(java.lang.String sql)
escape
public java.lang.String escape(java.lang.String var)
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.