Class OnDuplicateUpdateContext
- java.lang.Object
-
- org.apache.shardingsphere.infra.binder.segment.insert.values.OnDuplicateUpdateContext
-
public final class OnDuplicateUpdateContext extends Object
-
-
Constructor Summary
Constructors Constructor Description OnDuplicateUpdateContext(Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.AssignmentSegment> assignments, List<Object> params, int parametersOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegmentgetColumn(int index)Get on duplicate key update column by index of this clause.ObjectgetValue(int index)Get value.
-
-
-
Constructor Detail
-
OnDuplicateUpdateContext
public OnDuplicateUpdateContext(Collection<org.apache.shardingsphere.sql.parser.sql.common.segment.dml.assignment.AssignmentSegment> assignments, List<Object> params, int parametersOffset)
-
-
Method Detail
-
getValue
public Object getValue(int index)
Get value.- Parameters:
index- index- Returns:
- value
-
getColumn
public org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment getColumn(int index)
Get on duplicate key update column by index of this clause.- Parameters:
index- index- Returns:
- columnSegment
-
-