Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.access.jdbc
Class EJBQLTranslationContext

    java.lang.Object
      org.apache.cayenne.access.jdbc.EJBQLTranslationContext

    public class EJBQLTranslationContext

extends Object

A context used for translating of EJBQL to SQL.

Since:
  3.0
Author:
  Andrus Adamchik

Constructor Summary
`EJBQLTranslationContext(EJBQLCompiledExpression compiledExpression, Map parameters, EJBQLTranslatorFactory translatorFactory)`

Method Summary
`EJBQLTranslationContext` | `append(char chunk)` Appends a piece of SQL to the internal buffer.
`EJBQLTranslationContext` | `append(String chunk)` Appends a piece of SQL to the internal buffer.
`ClassDescriptor` | `getEntityDescriptor(String id)` Looks up entity descriptor for an identifier that can be a compiled expression id or one of the aliases.
`protected String` | `getTableAlias(String idPath, String tableName)` Retrieves a SQL alias for the combination of EJBQL id variable and a table name.
`boolean` | `isUsingAliases()`
`void` | `setUsingAliases(boolean useAliases)`

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

Constructor Detail

### EJBQLTranslationContext

    public EJBQLTranslationContext(EJBQLCompiledExpression compiledExpression,
                                   Map parameters,
                                   EJBQLTranslatorFactory translatorFactory)

Method Detail

### getEntityDescriptor

    public ClassDescriptor getEntityDescriptor(String id)

  Looks up entity descriptor for an identifier that can be a compiled expression id or one of the aliases.

### append

    public EJBQLTranslationContext append(String chunk)

  Appends a piece of SQL to the internal buffer.

### append

    public EJBQLTranslationContext append(char chunk)

  Appends a piece of SQL to the internal buffer.

### getTableAlias

    protected String getTableAlias(String idPath,
                                   String tableName)

  Retrieves a SQL alias for the combination of EJBQL id variable and a table name. If such alias hasn't been used, it is created on the fly.

### isUsingAliases

    public boolean isUsingAliases()

### setUsingAliases

    public void setUsingAliases(boolean useAliases)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.