Modifier and Type | Class and Description |
---|---|
static class |
PostgreSqlUpsert.ConflictAction |
Constructor and Description |
---|
PostgreSqlUpsert() |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
addExceptionProperties(DataException exception) |
PostgreSqlUpsert |
clone() |
void |
close() |
void |
executeBatch() |
void |
executeUpdate() |
PostgreSqlUpsert.ConflictAction |
getConflictAction()
Returns the action to perform on conflict (default ConflictAction.UPDATE).
|
String |
getInsertSql() |
String |
getUpsertSql() |
PreparedStatement |
getUpsertStatement() |
boolean |
isBatchSupported() |
boolean |
isDebug()
Indicates if the generated SQL should be logged (default false).
|
void |
prepare(JdbcUpsertWriter writer,
Record record) |
PostgreSqlUpsert |
setConflictAction(PostgreSqlUpsert.ConflictAction conflictAction)
Indicates the action to perform on conflict (default ConflictAction.UPDATE).
|
PostgreSqlUpsert |
setDebug(boolean debug)
Set to
true to log generated SQL (default false). |
void |
setUpsertSql(String upsertSql) |
void |
setUpsertStatement(PreparedStatement upsertStatement) |
void |
setValues(JdbcUpsertWriter writer,
Record record) |
public String getInsertSql()
public String getUpsertSql()
public void setUpsertSql(String upsertSql)
public PreparedStatement getUpsertStatement()
public void setUpsertStatement(PreparedStatement upsertStatement)
public PostgreSqlUpsert.ConflictAction getConflictAction()
public PostgreSqlUpsert setConflictAction(PostgreSqlUpsert.ConflictAction conflictAction)
public boolean isDebug()
public PostgreSqlUpsert setDebug(boolean debug)
true
to log generated SQL (default false).public void prepare(JdbcUpsertWriter writer, Record record) throws Throwable
public void setValues(JdbcUpsertWriter writer, Record record) throws Throwable
public void executeUpdate() throws Throwable
executeUpdate
in interface IUpsert
Throwable
public boolean isBatchSupported()
isBatchSupported
in interface IUpsert
public void addBatch() throws Throwable
public void executeBatch() throws Throwable
executeBatch
in interface IUpsert
Throwable
public PostgreSqlUpsert clone()
public void close() throws Throwable
public void addExceptionProperties(DataException exception)
addExceptionProperties
in interface IUpsert
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.