Top Description Constructors Methods
org.hibernate.boot.model.naming

public Class DatabaseIdentifier

extends Identifier
Class Inheritance
Imports
org.hibernate.internal.util.StringHelper

Models an identifier (name), retrieved from the database.
Author
Andrea Boriero

Constructor Summary

AccessConstructor and Description
protected
DatabaseIdentifier(String
The identifier text.
text
)

Constructs a database identifier instance.

Method Summary

Modifier and TypeMethod and Description
public static DatabaseIdentifier
toIdentifier(String
The text form
text
)

Hides org.hibernate.boot.model.naming.Identifier.toIdentifier.

Means to generate an Identifier instance from its simple text form.
Inherited from org.hibernate.boot.model.naming.Identifier:
areEqualcompareToequalsgetCanonicalNamegetTexthashCodeisQuotedisQuotedisQuotedmatchesquoterenderrendertoIdentifiertoIdentifiertoStringunQuote

Constructor Detail

DatabaseIdentifierback to summary
protected DatabaseIdentifier(String text)

Constructs a database identifier instance. It is assumed that text is unquoted.

Parameters
text:String

The identifier text.

Method Detail

toIdentifierback to summary
public static DatabaseIdentifier toIdentifier(String text)

Hides org.hibernate.boot.model.naming.Identifier.toIdentifier.

Doc from org.hibernate.boot.model.naming.Identifier.toIdentifier.

Means to generate an Identifier instance from its simple text form.

If passed text is null, null is returned.

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.

Parameters
text:String

The text form

Returns:DatabaseIdentifier

The identifier form, or null if text was null