@NotThreadSafe protected class DefaultStatements.DefaultBatchUpdate extends Object implements Statements.BatchUpdate
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultBatchUpdate(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
insert(Map<String,Document> documentsById)
Inserts a bunch of documents into a table.
|
protected void |
insertDocument(PreparedStatement statement,
String id,
Document document) |
void |
remove(List<String> ids)
Removes a bunch of documents with a list of ids.
|
void |
update(Map<String,Document> documentsById)
Updates a bunch of documents from a table.
|
protected void |
updateDocument(PreparedStatement statement,
String id,
Document document) |
protected DefaultBatchUpdate(Connection connection)
public void insert(Map<String,Document> documentsById) throws SQLException
Statements.BatchUpdateinsert in interface Statements.BatchUpdatedocumentsById - a Map of documents keyed by their id; may not be nullSQLException - if the operation fails.protected void insertDocument(PreparedStatement statement, String id, Document document)
public void update(Map<String,Document> documentsById) throws SQLException
Statements.BatchUpdateupdate in interface Statements.BatchUpdatedocumentsById - a Map of documents keyed by their id; may not be nullSQLException - if the operation fails.protected void updateDocument(PreparedStatement statement, String id, Document document)
public void remove(List<String> ids) throws SQLException
Statements.BatchUpdateremove in interface Statements.BatchUpdateSQLExceptionCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.