Module spring.data.cassandra
Class CqlIdentifier
java.lang.Object
org.springframework.data.cassandra.core.cql.CqlIdentifier
- All Implemented Interfaces:
Serializable,Comparable<CqlIdentifier>
@Deprecated(forRemoval=true)
public final class CqlIdentifier
extends Object
implements Comparable<CqlIdentifier>, Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
This encapsulates the logic for CQL quoted and unquoted identifiers.
CQL identifiers, when unquoted, are converted to lower case. When quoted, they are returned as-is with no lower
casing and encased in double quotes. To render, use any of the methods toCql(),
toCql(StringBuilder), or toString().
- Author:
- John McPeek, Matthew T. Adams, Mark Paluch, John Blum
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final PatternDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CqlIdentifier identifier) Deprecated, for removal: This API element is subject to removal in a future version.Unquoted identifiers sort before quoted ones.static CqlIdentifiercqlId(CharSequence identifier) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0, useof(CharSequence)static CqlIdentifiercqlId(CharSequence identifier, boolean forceQuote) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0, useof(CharSequence, boolean)booleanDeprecated, for removal: This API element is subject to removal in a future version.Compares thisCqlIdentifierto the given object.Deprecated, for removal: This API element is subject to removal in a future version.Returns the identifier without encasing quotes, regardless of the value ofisQuoted().inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanisQuoted()Deprecated, for removal: This API element is subject to removal in a future version.Whether or not this identifier is quoted.static booleanisQuotedIdentifier(CharSequence chars) Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the givenCharSequenceis an identifier with quotes.static booleanisUnquotedIdentifier(CharSequence chars) Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the givenCharSequenceis a legal unquoted identifier.static CqlIdentifierof(CharSequence identifier) Deprecated, for removal: This API element is subject to removal in a future version.Factory method forCqlIdentifier.static CqlIdentifierof(CharSequence identifier, boolean forceQuote) Deprecated, for removal: This API element is subject to removal in a future version.Factory method forCqlIdentifier.static CqlIdentifierquoted(CharSequence identifier) Deprecated, for removal: This API element is subject to removal in a future version.Factory method for a force-quotedCqlIdentifier.static CqlIdentifierquotedCqlId(CharSequence identifier) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0, usequoted(CharSequence).static booleanrequiresQuoting(CharSequence chars) Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the givenCharSequencerequires quoting.toCql()Deprecated, for removal: This API element is subject to removal in a future version.Renders this identifier appropriately.toCql(StringBuilder builder) Deprecated, for removal: This API element is subject to removal in a future version.Appends the rendering of this identifier to the givenStringBuilder, then returns thatStringBuilder.com.datastax.oss.driver.api.core.CqlIdentifierDeprecated, for removal: This API element is subject to removal in a future version.Create a Cassandra driverCqlIdentifierfrom thisCqlIdentifier.toString()Deprecated, for removal: This API element is subject to removal in a future version.Alias fortoCql().
-
Field Details
-
UNQUOTED_REGEX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
UNQUOTED
Deprecated, for removal: This API element is subject to removal in a future version. -
QUOTED_REGEX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
QUOTED
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
cqlId
Deprecated, for removal: This API element is subject to removal in a future version.since 2.0, useof(CharSequence)Factory method forCqlIdentifier. Convenient if imported statically.- See Also:
-
CqlIdentifier(CharSequence)
-
cqlId
@Deprecated(forRemoval=true) public static CqlIdentifier cqlId(CharSequence identifier, boolean forceQuote) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0, useof(CharSequence, boolean)Factory method forCqlIdentifier. Convenient if imported statically.- See Also:
-
CqlIdentifier(CharSequence, boolean)
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Factory method forCqlIdentifier.- Since:
- 2.0
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Factory method forCqlIdentifier.- Since:
- 2.0
-
quotedCqlId
Deprecated, for removal: This API element is subject to removal in a future version.since 2.0, usequoted(CharSequence).Factory method for a force-quotedCqlIdentifier. Convenient if imported statically.- See Also:
-
CqlIdentifier(CharSequence, boolean)
-
quoted
Deprecated, for removal: This API element is subject to removal in a future version.Factory method for a force-quotedCqlIdentifier.- Since:
- 2.0.
-
isUnquotedIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the givenCharSequenceis a legal unquoted identifier. -
isQuotedIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the givenCharSequenceis an identifier with quotes. -
requiresQuoting
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrueif the givenCharSequencerequires quoting.- Since:
- 2.2
-
getUnquoted
Deprecated, for removal: This API element is subject to removal in a future version.Returns the identifier without encasing quotes, regardless of the value ofisQuoted(). For example, ifisQuoted()istrue, then this value will be the same astoCql()andtoString().This is needed, for example, to get the correct
TableMetadatafromKeyspaceMetadata.getTable(String): the given string must not be quoted. -
toCql
Deprecated, for removal: This API element is subject to removal in a future version.Renders this identifier appropriately. -
toCql
Deprecated, for removal: This API element is subject to removal in a future version.Appends the rendering of this identifier to the givenStringBuilder, then returns thatStringBuilder. If null is given, a newStringBuilderis created, appended to, and returned. -
isQuoted
public boolean isQuoted()Deprecated, for removal: This API element is subject to removal in a future version.Whether or not this identifier is quoted. -
compareTo
Deprecated, for removal: This API element is subject to removal in a future version.Unquoted identifiers sort before quoted ones. Otherwise, they compare according to their identifiers.- Specified by:
compareToin interfaceComparable<CqlIdentifier>
-
equals
Deprecated, for removal: This API element is subject to removal in a future version.Compares thisCqlIdentifierto the given object. Note that if aCharSequenceis given, a newCqlIdentifieris created from it and compared, such that aCharSequencecan be effectively equal to aCqlIdentifier. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.Alias fortoCql(). -
toCqlIdentifier
public com.datastax.oss.driver.api.core.CqlIdentifier toCqlIdentifier()Deprecated, for removal: This API element is subject to removal in a future version.Create a Cassandra driverCqlIdentifierfrom thisCqlIdentifier.- Returns:
- the
CqlIdentifierfrom thisCqlIdentifier. - Since:
- 3.0
-
CqlIdentifierinstead.