| 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 IUpsertThrowablepublic boolean isBatchSupported()
isBatchSupported in interface IUpsertpublic void addBatch()
throws Throwable
public void executeBatch()
throws Throwable
executeBatch in interface IUpsertThrowablepublic PostgreSqlUpsert clone()
public void close()
throws Throwable
public void addExceptionProperties(DataException exception)
addExceptionProperties in interface IUpsertCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.