|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.model.BaseJPQLQueryFormatter
org.eclipse.persistence.jpa.jpql.model.AbstractActualJPQLQueryFormatter
org.eclipse.persistence.jpa.jpql.model.DefaultActualJPQLQueryFormatter
public class DefaultActualJPQLQueryFormatter
This IJPQLQueryFormatter is used to generate a string representation of a StateObject based on how it was parsed,
which means this formatter can only be used when the model.query.StateObject StateObject was created by parsing a JPQL query because it needs to
retrieve parsing information from the corresponding parser.Expression Expression.
It is possible to partially match the JPQL query that was parsed, the value of the exactMatch
will determine whether the string representation of any given jpql.model.query.StateObject StateObject should reflect the exact string that was parsed.
true will use every bit of information contained in the corresponding Expression to perfectly match what was parsed;
false will only match the case sensitivity of the JPQL identifiers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.jpql.model.IJPQLQueryFormatter |
|---|
IJPQLQueryFormatter.IdentifierStyle |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.jpa.jpql.model.AbstractActualJPQLQueryFormatter |
|---|
exactMatch |
| Fields inherited from class org.eclipse.persistence.jpa.jpql.model.BaseJPQLQueryFormatter |
|---|
COMMA, COMMA_SPACE, LEFT_PARENTHESIS, RIGHT_PARENTHESIS, SPACE, style, writer |
| Constructor Summary | |
|---|---|
DefaultActualJPQLQueryFormatter(boolean exactMatch)
Creates a new DefaultActualJPQLQueryFormatter. |
|
DefaultActualJPQLQueryFormatter(boolean exactMatch,
IJPQLQueryFormatter.IdentifierStyle style)
Creates a new DefaultActualJPQLQueryFormatter. |
|
| Method Summary |
|---|
| Methods inherited from class org.eclipse.persistence.jpa.jpql.model.BaseJPQLQueryFormatter |
|---|
formatIdentifier, getIdentifierStyle, toString, toString, toText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultActualJPQLQueryFormatter(boolean exactMatch)
DefaultActualJPQLQueryFormatter.
exactMatch - Determines whether the string representation of any given persistence.jpa.jpql.model.query.StateObject StateObject should reflect the exact string that
was parsed: true will use every bit of information contained in the corresponding
Expression to perfectly match what
was parsed (case of JPQL identifiers and the presence of whitespace); false will
only match the case sensitivity of the JPQL identifiers
public DefaultActualJPQLQueryFormatter(boolean exactMatch,
IJPQLQueryFormatter.IdentifierStyle style)
DefaultActualJPQLQueryFormatter.
exactMatch - Determines whether the string representation of any given persistence.jpa.jpql.model.query.StateObject StateObject should reflect the exact string that
was parsed: true will use every bit of information contained in the corresponding
Expression to perfectly match what
was parsed (case of JPQL identifiers and the presence of whitespace); false will
only match the case sensitivity of the JPQL identifiersstyle - Determines how the JPQL identifiers are written out, which is used if the StateObject was modified after its
creation
java.lang.NullPointerException - The IdentifierStyle cannot be null
|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||