CritterTranslationContext (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.grouping.CritterTranslationContext class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Constructor Summary
`CritterTranslationContext(AuthzSubject subj)`
`CritterTranslationContext(AuthzSubject subj, org.hibernate.Session s, HQDialect d, java.lang.String prefix)`

Method Summary
`java.lang.String` | `escape(java.lang.String var)`
`java.lang.String` | `escapeSql(java.lang.String sql)`
`org.hibernate.dialect.Dialect` | `getDialect()`
`HQDialect` | `getHQDialect()`
`org.hibernate.Session` | `getSession()`
`AuthzSubject` | `getSubject()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CritterTranslationContext

    public CritterTranslationContext(AuthzSubject subj)

### CritterTranslationContext

    public CritterTranslationContext(AuthzSubject subj,
                                     org.hibernate.Session s,
                                     HQDialect d,
                                     java.lang.String prefix)

Method Detail

### 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)

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.