public class EJBQLTranslationContext extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
namedParameters |
protected Map<Integer,Object> |
positionalParameters |
Constructor and Description |
---|
EJBQLTranslationContext(EntityResolver entityResolver,
EJBQLQuery query,
EJBQLCompiledExpression compiledExpression,
EJBQLTranslatorFactory translatorFactory,
QuotingStrategy quotingStrategy) |
Modifier and Type | Method and Description |
---|---|
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.
|
QueryMetadata |
getMetadata() |
SQLTemplate |
getQuery() |
QuotingStrategy |
getQuotingStrategy() |
protected String |
getTableAlias(String idPath,
String tableName)
Retrieves a SQL alias for the combination of EJBQL id variable and a table name.
|
boolean |
isAppendingResultColumns() |
boolean |
isCaseInsensitive() |
boolean |
isUsingAliases() |
String |
makeDistinctMarker() |
void |
onSubselect() |
void |
pushMarker(String marker,
boolean reset)
Switches the current buffer to a marked buffer, pushing the currently used buffer
on the stack.
|
void |
setCaseInsensitive(boolean caseInsensitive) |
void |
setUsingAliases(boolean useAliases) |
public EJBQLTranslationContext(EntityResolver entityResolver, EJBQLQuery query, EJBQLCompiledExpression compiledExpression, EJBQLTranslatorFactory translatorFactory, QuotingStrategy quotingStrategy)
public SQLTemplate getQuery()
public QueryMetadata getMetadata()
public ClassDescriptor getEntityDescriptor(String id)
public void pushMarker(String marker, boolean reset)
public EJBQLTranslationContext append(String chunk)
public EJBQLTranslationContext append(char chunk)
protected String getTableAlias(String idPath, String tableName)
public boolean isAppendingResultColumns()
public boolean isUsingAliases()
public void setUsingAliases(boolean useAliases)
public boolean isCaseInsensitive()
public void setCaseInsensitive(boolean caseInsensitive)
public QuotingStrategy getQuotingStrategy()
public void onSubselect()
public String makeDistinctMarker()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.