java.lang.Object
java.lang.Record
org.litebridge.db.spi.update.UpdateColumn
public record UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator, @Nullable Integer bindValueIndex, @Nullable SelectExpression staticValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateColumn(String name) UpdateColumn(String name, @Nullable SelectExpression staticValue) UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator) UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator, @Nullable Integer bindValueIndex) UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator, @Nullable Integer bindValueIndex, @Nullable SelectExpression staticValue) Creates an instance of aUpdateColumnrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable IntegerReturns the value of thebindValueIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ColumnValueGeneratorReturns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.@Nullable MathOperatorReturns the value of themathOperatorrecord component.name()Returns the value of thenamerecord component.@Nullable SelectExpressionReturns the value of thestaticValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UpdateColumn
public UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator, @Nullable Integer bindValueIndex) -
UpdateColumn
-
UpdateColumn
-
UpdateColumn
public UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator) -
UpdateColumn
public UpdateColumn(String name, @Nullable ColumnValueGenerator generator, @Nullable MathOperator mathOperator, @Nullable Integer bindValueIndex, @Nullable SelectExpression staticValue) Creates an instance of aUpdateColumnrecord class.- Parameters:
name- the value for thenamerecord componentgenerator- the value for thegeneratorrecord componentmathOperator- the value for themathOperatorrecord componentbindValueIndex- the value for thebindValueIndexrecord componentstaticValue- the value for thestaticValuerecord component
-
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-
mathOperator
Returns the value of themathOperatorrecord component.- Returns:
- the value of the
mathOperatorrecord component
-
bindValueIndex
Returns the value of thebindValueIndexrecord component.- Returns:
- the value of the
bindValueIndexrecord component
-
staticValue
Returns the value of thestaticValuerecord component.- Returns:
- the value of the
staticValuerecord component
-