java.lang.Object
java.lang.Record
org.litebridge.orm.expression.select.AliasReferenceSpec
- All Implemented Interfaces:
ExpressionSpec,SelectTargetSpec
public record AliasReferenceSpec(@Nullable String alias, @Nullable ExpressionSpec expression, @Nullable String tableAlias)
extends Record
implements ExpressionSpec, SelectTargetSpec
-
Constructor Summary
ConstructorsConstructorDescriptionAliasReferenceSpec(@Nullable String alias, @Nullable ExpressionSpec expression, @Nullable String tableAlias) Creates an instance of aAliasReferenceSpecrecord class.AliasReferenceSpec(String alias) AliasReferenceSpec(String alias, String tableAlias) AliasReferenceSpec(ExpressionSpec expression, String tableAlias) -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ExpressionSpecReturns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thetableAliasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AliasReferenceSpec
public AliasReferenceSpec(@Nullable String alias, @Nullable ExpressionSpec expression, @Nullable String tableAlias) Creates an instance of aAliasReferenceSpecrecord class.- Parameters:
alias- the value for thealiasrecord componentexpression- the value for theexpressionrecord componenttableAlias- the value for thetableAliasrecord component
-
AliasReferenceSpec
-
AliasReferenceSpec
-
AliasReferenceSpec
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
tableAlias
Returns the value of thetableAliasrecord component.- Returns:
- the value of the
tableAliasrecord component
-