Module litebridge.orm
Package org.litebridgedb.orm.expression
Record Class ProtoColumnExpressionSpec
java.lang.Object
java.lang.Record
org.litebridgedb.orm.expression.ProtoColumnExpressionSpec
- Record Components:
type- The type of expression to create.column- The column name to select.alias- The column alias to use, ornullif not specified.
- All Implemented Interfaces:
ExpressionSpec,ProtoExpressionSpec,Resolvable
public record ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias, @Nullable Object @Nullable [] args)
extends Record
implements ProtoExpressionSpec
Proto-expression, used to specify column names/aliases for use in the target expression type.
This record is used to create an expression instance (e.g. SelectColumnSpec) when table information is available.
-
Constructor Summary
ConstructorsConstructorDescriptionProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column) ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias) ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias, @Nullable Object @Nullable [] args) Creates an instance of aProtoColumnExpressionSpecrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()Returns the value of thealiasrecord component.@Nullable Object @Nullable []args()Returns the value of theargsrecord component.column()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Class<? extends ExpressionSpec> type()Returns the value of thetyperecord component.
-
Constructor Details
-
ProtoColumnExpressionSpec
public ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias) -
ProtoColumnExpressionSpec
-
ProtoColumnExpressionSpec
public ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias, @Nullable Object @Nullable [] args) Creates an instance of aProtoColumnExpressionSpecrecord class.
-
-
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). -
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceResolvable- Returns:
- the value of the
typerecord component
-
column
Returns the value of thecolumnrecord component.- Specified by:
columnin interfaceResolvable- Returns:
- the value of the
columnrecord component
-
alias
Returns the value of thealiasrecord component.- Specified by:
aliasin interfaceProtoExpressionSpec- Returns:
- the value of the
aliasrecord component
-
args
Returns the value of theargsrecord component.- Specified by:
argsin interfaceProtoExpressionSpec- Returns:
- the value of the
argsrecord component
-