- 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)
Expression
getAndPredicate()
<E extends Expression>
EgetAndPredicate(Class<E> type)
Expression
getDeleteWhereCondition()
<E extends Expression>
EgetDeleteWhereCondition(Class<E> type)
List<UpdateSet>
getUpdateSets()
Expression
getWhereCondition()
<E extends Expression>
EgetWhereCondition(Class<E> type)
void
setAndPredicate(Expression andPredicate)
void
setDeleteWhereCondition(Expression deleteWhereCondition)
MergeUpdate
setUpdateSets(List<UpdateSet> updateSets)
void
setWhereCondition(Expression whereCondition)
String
toString()
MergeUpdate
withAndPredicate(Expression andPredicate)
MergeUpdate
withDeleteWhereCondition(Expression deleteWhereCondition)
MergeUpdate
withWhereCondition(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:
accept
in 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)
-
-