TableInsertOrUpdateStatementExecutor@Internal public final class InsertOrUpdateJdbcExecutor<R,K,V> extends Object implements JdbcBatchStatementExecutor<R>
JdbcBatchStatementExecutor that provides upsert semantics by updating row if it exists
and inserting otherwise. Used in Table API.| 构造器和说明 |
|---|
InsertOrUpdateJdbcExecutor(String existSQL,
String insertSQL,
String updateSQL,
JdbcStatementBuilder<K> existSetter,
JdbcStatementBuilder<V> insertSetter,
JdbcStatementBuilder<V> updateSetter,
java.util.function.Function<R,K> keyExtractor,
java.util.function.Function<R,V> valueExtractor)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addToBatch(R record)
已过时。
|
void |
closeStatements()
已过时。
Close JDBC related statements.
|
void |
executeBatch()
已过时。
Submits a batch of commands to the database for execution.
|
void |
prepareStatements(Connection connection)
已过时。
Create statements from connection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyed, simplepublic InsertOrUpdateJdbcExecutor(@Nonnull String existSQL, @Nonnull String insertSQL, @Nonnull String updateSQL, @Nonnull JdbcStatementBuilder<K> existSetter, @Nonnull JdbcStatementBuilder<V> insertSetter, @Nonnull JdbcStatementBuilder<V> updateSetter, @Nonnull java.util.function.Function<R,K> keyExtractor, @Nonnull java.util.function.Function<R,V> valueExtractor)
public void prepareStatements(Connection connection) throws SQLException
JdbcBatchStatementExecutorprepareStatements 在接口中 JdbcBatchStatementExecutor<R>SQLExceptionpublic void addToBatch(R record)
addToBatch 在接口中 JdbcBatchStatementExecutor<R>public void executeBatch()
throws SQLException
JdbcBatchStatementExecutorexecuteBatch 在接口中 JdbcBatchStatementExecutor<R>SQLExceptionpublic void closeStatements()
throws SQLException
JdbcBatchStatementExecutorcloseStatements 在接口中 JdbcBatchStatementExecutor<R>SQLExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.