IJPQLQueryFormatter.
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | COMMA
The constant for a comma: ','. |
| protected static final String | COMMA_SPACE
The constant for a comma followed by a space: ', '. |
| protected static final String | LEFT_PARENTHESIS
The constant for the left parenthesis: '('. |
| protected static final String | RIGHT_PARENTHESIS
The constant for the right parenthesis: ')'. |
| protected static final String | SPACE
The constant for a space: ' '. |
| protected final IJPQLQueryFormatter. | style
Determines how the JPQL identifiers are written out. |
| protected final StringBuilder | writer
The holder of the string representation of the JPQL query. |
| Access | Constructor and Description |
|---|---|
| protected | BaseJPQLQueryFormatter(IJPQLQueryFormatter.
Determines how the JPQL identifiers are written out, which is used if the
styleStateObject was modified after its creationCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected String | Returns: By default the given identifier is returnedJPQL identifier to format identifier)Formats the given JPQL identifier, if it needs to be decorated with more information. |
| public IJPQLQueryFormatter. | Returns: One of the possible ways to format the JPQL identifiersReturns the style to use when formatting the JPQL identifiers. |
| public String | |
| public String | toString(StateObject
The stateObject)StateObject that represents a complete or incomplete JPQL queryImplements org. StateObject.
|
| protected void | toText(StateObject
The decorated stateObject)StateObject to traverse without going through the
decoratorVisits the given |
| COMMA | back to summary |
|---|---|
| protected static final String COMMA The constant for a comma: ','. | |
| COMMA_SPACE | back to summary |
|---|---|
| protected static final String COMMA_SPACE The constant for a comma followed by a space: ', '. | |
| LEFT_PARENTHESIS | back to summary |
|---|---|
| protected static final String LEFT_PARENTHESIS The constant for the left parenthesis: '('. | |
| RIGHT_PARENTHESIS | back to summary |
|---|---|
| protected static final String RIGHT_PARENTHESIS The constant for the right parenthesis: ')'. | |
| SPACE | back to summary |
|---|---|
| protected static final String SPACE The constant for a space: ' '. | |
| style | back to summary |
|---|---|
| protected final IJPQLQueryFormatter. Determines how the JPQL identifiers are written out. | |
| writer | back to summary |
|---|---|
| protected final StringBuilder writer The holder of the string representation of the JPQL query. | |
| BaseJPQLQueryFormatter | back to summary |
|---|---|
| protected BaseJPQLQueryFormatter(IJPQLQueryFormatter. Creates a new
| |
| formatIdentifier | back to summary |
|---|---|
| protected String formatIdentifier(String identifier) Formats the given JPQL identifier, if it needs to be decorated with more information. Which depends on how the string is created. | |
| getIdentifierStyle | back to summary |
|---|---|
| public IJPQLQueryFormatter. Returns the style to use when formatting the JPQL identifiers.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(StateObject stateObject) Implements org. Doc from org. Creates a string representation of the given
| |
| toText | back to summary |
|---|---|
| protected void toText(StateObject stateObject) Visits the given
| |