- java.lang.Object
-
- net.sf.jsqlparser.statement.upsert.Upsert
-
public class Upsert extends java.lang.Object implements Statement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ExpressionList<Column>
columns
private java.util.List<UpdateSet>
duplicateUpdateSets
private ExpressionList<?>
expressions
private boolean
isUsingInto
private Select
select
private Table
table
private java.util.List<UpdateSet>
updateSets
private UpsertType
upsertType
-
Constructor Summary
Constructors Constructor Description Upsert()
-
Method Summary
-
-
-
Field Detail
-
table
private Table table
-
columns
private ExpressionList<Column> columns
-
expressions
private ExpressionList<?> expressions
-
select
private Select select
-
updateSets
private java.util.List<UpdateSet> updateSets
-
duplicateUpdateSets
private java.util.List<UpdateSet> duplicateUpdateSets
-
upsertType
private UpsertType upsertType
-
isUsingInto
private boolean isUsingInto
-
-
Method Detail
-
getUpdateSets
public java.util.List<UpdateSet> getUpdateSets()
-
getDuplicateUpdateSets
public java.util.List<UpdateSet> getDuplicateUpdateSets()
-
setDuplicateUpdateSets
public Upsert setDuplicateUpdateSets(java.util.List<UpdateSet> duplicateUpdateSets)
-
accept
public <T,S> T accept(StatementVisitor<T> statementVisitor, S context)
-
getUpsertType
public UpsertType getUpsertType()
-
setUpsertType
public void setUpsertType(UpsertType upsertType)
-
withUpsertType
public Upsert withUpsertType(UpsertType upsertType)
-
isUsingInto
public boolean isUsingInto()
-
setUsingInto
public void setUsingInto(boolean useInto)
-
withUsingInto
public Upsert withUsingInto(boolean useInto)
-
getTable
public Table getTable()
-
setTable
public void setTable(Table name)
-
getColumns
public ExpressionList<Column> getColumns()
-
setColumns
public void setColumns(ExpressionList<Column> list)
-
getExpressions
public ExpressionList getExpressions()
-
setExpressions
public void setExpressions(ExpressionList list)
-
getSetExpressions
@Deprecated public ExpressionList<?> getSetExpressions()
Deprecated.
-
getSelect
public Select getSelect()
-
setSelect
public void setSelect(Select select)
-
getValues
public Values getValues()
-
getPlainSelect
public PlainSelect getPlainSelect()
-
getSetOperationList
public SetOperationList getSetOperationList()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
withColumns
public Upsert withColumns(ExpressionList<Column> columns)
-
withExpressions
public Upsert withExpressions(ExpressionList expressions)
-
-