@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.BatchUpdate
insert
in interface Statements.BatchUpdate
documentsById
- a Map
of documents keyed by their id; may not be null
SQLException
- if the operation fails.protected void insertDocument(PreparedStatement statement, String id, Document document)
public void update(Map<String,Document> documentsById) throws SQLException
Statements.BatchUpdate
update
in interface Statements.BatchUpdate
documentsById
- a Map
of documents keyed by their id; may not be null
SQLException
- if the operation fails.protected void updateDocument(PreparedStatement statement, String id, Document document)
public void remove(List<String> ids) throws SQLException
Statements.BatchUpdate
remove
in interface Statements.BatchUpdate
SQLException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.