|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.access.jdbc.EJBQLTranslationContext
public class EJBQLTranslationContext
A context used for translating of EJBQL to SQL.
| Constructor Summary | |
|---|---|
EJBQLTranslationContext(EntityResolver entityResolver,
EJBQLCompiledExpression compiledExpression,
Map<Object,Object> 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 |
|---|
public EJBQLTranslationContext(EntityResolver entityResolver,
EJBQLCompiledExpression compiledExpression,
Map<Object,Object> parameters,
EJBQLTranslatorFactory translatorFactory)
| Method Detail |
|---|
public ClassDescriptor getEntityDescriptor(String id)
public EJBQLTranslationContext append(String chunk)
public EJBQLTranslationContext append(char chunk)
protected String getTableAlias(String idPath,
String tableName)
public boolean isUsingAliases()
public void setUsingAliases(boolean useAliases)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||