java.lang.Object | |
↳ | org.hibernate.util.StringHelper |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | WHITESPACE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Collapses a name.
| |||||||||||
Given a qualifier, collapse it.
| |||||||||||
Cross between
collapse(String) and partiallyUnqualify(String, String) . | |||||||||||
Generate a nice alias for the given class name or collection role name and unique integer.
| |||||||||||
Determine if the given name is quoted.
| |||||||||||
Determine if the given string is quoted (wrapped by '`' characters at beginning and end).
| |||||||||||
Partially unqualifies a qualified name.
| |||||||||||
Return a representation of the given name ensuring quoting (wrapped with '`' characters).
| |||||||||||
Return the unquoted version of name (stripping the start and end '`' characters if present).
| |||||||||||
Return the unquoted version of name stripping the start and end quote characters.
| |||||||||||
Return the unquoted version of name stripping the start and end quote characters.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Collapses a name. Mainly intended for use with classnames, where an example might serve best to explain. Imagine you have a class named 'org.hibernate.util.StringHelper'; calling collapse on that classname will result in 'o.h.u.StringHelper'.
name | The name to collapse. |
---|
Given a qualifier, collapse it.
qualifier | The qualifier to collapse. |
---|---|
includeDots | Should we include the dots in the collapsed form? |
Cross between collapse(String)
and partiallyUnqualify(String, String)
. Functions much like collapse(String)
except that only the qualifierBase is collapsed. For example, with a base of 'org.hibernate' the name
'org.hibernate.util.StringHelper' would become 'o.h.util.StringHelper'.
name | The (potentially) qualified name. |
---|---|
qualifierBase | The qualifier base. |
Generate a nice alias for the given class name or collection role name and unique integer. Subclasses of Loader do not have to use aliases of this form.
description | The base name (usually an entity-name or collection-role) |
---|---|
unique | A uniquing value |
Determine if the given name is quoted. It is considered quoted if either:
open-quote
AND ends with dialect-specified close-quote
name | The name to check |
---|---|
dialect | The dialect (to determine the "real" quoting chars). |
Determine if the given string is quoted (wrapped by '`' characters at beginning and end).
name | The name to check. |
---|
Partially unqualifies a qualified name. For example, with a base of 'org.hibernate' the name 'org.hibernate.util.StringHelper' would become 'util.StringHelper'.
name | The (potentially) qualified name. |
---|---|
qualifierBase | The qualifier base. |
Return a representation of the given name ensuring quoting (wrapped with '`' characters). If already wrapped return name.
name | The name to quote. |
---|
Return the unquoted version of name (stripping the start and end '`' characters if present).
name | The name to be unquoted. |
---|
Return the unquoted version of name stripping the start and end quote characters.
names | The names to be unquoted. |
---|---|
dialect | The dialect (to determine the "real" quoting chars). |
Return the unquoted version of name stripping the start and end quote characters.
name | The name to be unquoted. |
---|---|
dialect | The dialect (to determine the "real" quoting chars). |