- java.lang.Object
-
- net.sf.jsqlparser.statement.merge.MergeUpdate
-
- All Implemented Interfaces:
Serializable,MergeOperation
public class MergeUpdate extends Object implements Serializable, MergeOperation
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MergeUpdate()MergeUpdate(List<UpdateSet> updateSets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S,T>
Taccept(MergeOperationVisitor<T> mergeOperationVisitor, S context)ExpressiongetAndPredicate()<E extends Expression>
EgetAndPredicate(Class<E> type)ExpressiongetDeleteWhereCondition()<E extends Expression>
EgetDeleteWhereCondition(Class<E> type)List<UpdateSet>getUpdateSets()ExpressiongetWhereCondition()<E extends Expression>
EgetWhereCondition(Class<E> type)voidsetAndPredicate(Expression andPredicate)voidsetDeleteWhereCondition(Expression deleteWhereCondition)MergeUpdatesetUpdateSets(List<UpdateSet> updateSets)voidsetWhereCondition(Expression whereCondition)StringtoString()MergeUpdatewithAndPredicate(Expression andPredicate)MergeUpdatewithDeleteWhereCondition(Expression deleteWhereCondition)MergeUpdatewithWhereCondition(Expression whereCondition)
-
-
-
Method Detail
-
setUpdateSets
public MergeUpdate setUpdateSets(List<UpdateSet> updateSets)
-
getAndPredicate
public Expression getAndPredicate()
-
setAndPredicate
public void setAndPredicate(Expression andPredicate)
-
getWhereCondition
public Expression getWhereCondition()
-
setWhereCondition
public void setWhereCondition(Expression whereCondition)
-
getDeleteWhereCondition
public Expression getDeleteWhereCondition()
-
setDeleteWhereCondition
public void setDeleteWhereCondition(Expression deleteWhereCondition)
-
accept
public <S,T> T accept(MergeOperationVisitor<T> mergeOperationVisitor, S context)
- Specified by:
acceptin interfaceMergeOperation
-
withAndPredicate
public MergeUpdate withAndPredicate(Expression andPredicate)
-
withWhereCondition
public MergeUpdate withWhereCondition(Expression whereCondition)
-
withDeleteWhereCondition
public MergeUpdate withDeleteWhereCondition(Expression deleteWhereCondition)
-
getAndPredicate
public <E extends Expression> E getAndPredicate(Class<E> type)
-
getWhereCondition
public <E extends Expression> E getWhereCondition(Class<E> type)
-
getDeleteWhereCondition
public <E extends Expression> E getDeleteWhereCondition(Class<E> type)
-
-