| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | Identifier(String
The identifier text. text, boolean Is this a quoted identifier? quoted)Constructs an identifier instance. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public int | compareTo(Identifier
the object to be compared. o)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public String | |
| public String | |
| public int | |
| public static boolean | |
| public static boolean | |
| public boolean | |
| public boolean | |
| public static Identifier | |
| public String | Returns: if quoted, identifier name enclosed in dialect-specific open- and end-quotes; otherwise, the unquoted identifier.The dialect whose dialect-specific quoting should be used. dialect)If this is a quoted identifier, then return the identifier name enclosed in dialect-specific open- and end-quotes; otherwise, simply return the unquoted identifier. |
| public String | |
| public static Identifier | Returns: The identifier form, ornull if text was nullThe text form text)Means to generate an |
| public static Identifier | Returns: The identifier form, ornull if text was nullThe text form text, boolean Whether to quote unquoted text forms quote)Means to generate an |
| public static Identifier | Returns: The identifier form, ornull if text was nullThe text form text, boolean Whether to quote unquoted text forms quote, boolean Controls whether to treat the result as quoted if text contains characters that are invalid for identifiers quoteOnNonIdentifierChar)Means to generate an |
| public String | |
| public static String |
| isQuoted | back to summary |
|---|---|
| private final boolean isQuoted | |
| text | back to summary |
|---|---|
| private final String text | |
| Identifier | back to summary |
|---|---|
| public Identifier(String text, boolean quoted) Constructs an identifier instance.
| |
| Identifier | back to summary |
|---|---|
| protected Identifier(String text) Constructs an unquoted identifier instance.
| |
| areEqual | back to summary |
|---|---|
| public static boolean areEqual(Identifier id1, Identifier id2) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Identifier o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCanonicalName | back to summary |
|---|---|
| public String getCanonicalName() | |
| getText | back to summary |
|---|---|
| public String getText() Get the identifiers name (text)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isQuoted | back to summary |
|---|---|
| public static boolean isQuoted(String name) Is the given identifier text considered quoted. The following patterns are recognized as quoted:
That final form using double-quote (") is the JPA-defined quoting pattern. Although it is the standard, it makes for ugly declarations.
| |
| isQuoted | back to summary |
|---|---|
| public static boolean isQuoted(String name, int start, int end) | |
| isQuoted | back to summary |
|---|---|
| public boolean isQuoted() Is this a quoted identifier?
| |
| matches | back to summary |
|---|---|
| public boolean matches(String name) | |
| quote | back to summary |
|---|---|
| public static Identifier quote(Identifier identifier) | |
| render | back to summary |
|---|---|
| public String render(Dialect dialect) If this is a quoted identifier, then return the identifier name enclosed in dialect-specific open- and end-quotes; otherwise, simply return the unquoted identifier. | |
| render | back to summary |
|---|---|
| public String render() | |
| toIdentifier | back to summary |
|---|---|
| public static Identifier toIdentifier(String text) Means to generate an
If passed text is If passed text is surrounded in quote markers, the generated Identifier is considered quoted. Quote markers include back-ticks (`), double-quotes (") and brackets ([ and ]). If the text, after trimming, contains a character that is not a valid identifier character, the identifier is treated as quoted.
| |
| toIdentifier | back to summary |
|---|---|
| public static Identifier toIdentifier(String text, boolean quote) Means to generate an
If passed text is If passed text is surrounded in quote markers, the generated Identifier is considered quoted. Quote markers include back-ticks (`), double-quotes (") and brackets ([ and ]). If the text, after trimming, contains a character that is not a valid identifier character, the identifier is treated as quoted.
| |
| toIdentifier | back to summary |
|---|---|
| public static Identifier toIdentifier(String text, boolean quote, boolean quoteOnNonIdentifierChar) Means to generate an
If passed text is If passed text is surrounded in quote markers, the generated Identifier is considered quoted. Quote markers include back-ticks (`), double-quotes (") and brackets ([ and ]).
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unQuote | back to summary |
|---|---|
| public static String unQuote(String name) | |