IJPQLQueryFormatter helps to write a string representation of a StateObject.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | IJPQLQueryFormatter.IdentifierStyle
This enumeration determines how the JPQL identifiers are formatted when written out. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The string representation of the givenStateObjectThe stateObject)StateObject that represents a complete or incomplete JPQL queryCreates a string representation of the given |
| toString | back to summary |
|---|---|
| public String toString(StateObject stateObject) Creates a string representation of the given
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IJPQLQueryFormatter. | CAPITALIZE_EACH_WORD
The JPQL identifiers are written out the first letter being uppercase and the rest being lower case. |
| public static final IJPQLQueryFormatter. | LOWERCASE
The JPQL identifiers are written out with lowercase letters. |
| public static final IJPQLQueryFormatter. | UPPERCASE
The JPQL identifiers are written out with uppercase letters. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The formatted JPQL identifierThe JPQL identifier to format identifier)Returns the given JPQL identifier with the first letter of each word capitalized and the rest being lower case. |
| public 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 static IJPQLQueryFormatter. | |
| public static IJPQLQueryFormatter. |
| CAPITALIZE_EACH_WORD | back to summary |
|---|---|
| public static final IJPQLQueryFormatter. The JPQL identifiers are written out the first letter being uppercase and the rest being lower case. | |
| LOWERCASE | back to summary |
|---|---|
| public static final IJPQLQueryFormatter. The JPQL identifiers are written out with lowercase letters. | |
| UPPERCASE | back to summary |
|---|---|
| public static final IJPQLQueryFormatter. The JPQL identifiers are written out with uppercase letters. | |
| IdentifierStyle | back to summary |
|---|---|
| private IdentifierStyle() | |
| capitalizeEachWord | back to summary |
|---|---|
| public String capitalizeEachWord(String identifier) Returns the given JPQL identifier with the first letter of each word capitalized and the rest being lower case. | |
| formatIdentifier | back to summary |
|---|---|
| public 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. | |
| valueOf | back to summary |
|---|---|
| public static IJPQLQueryFormatter. | |
| values | back to summary |
|---|---|
| public static IJPQLQueryFormatter. | |