|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jdbc.utils.batchable.BatchOperationQueue
public class BatchOperationQueue
Queue of Batchable operations to execute. Operations of the same type are merged into into one prepared statement batch call.
| Constructor Summary | |
|---|---|
BatchOperationQueue(PreparedStatementCache cache)
Create a new queue |
|
| Method Summary | |
|---|---|
void |
addBatchable(Batchable.BatchOperation batchOperation)
Add a Batchable operation to the queue. |
void |
addBatchable(Batchable batchItem)
Add a Batchable to the queue |
java.util.TreeMap<java.lang.String,java.util.Map<Batchable.BatchOperation.ParamKey,java.sql.PreparedStatement>> |
getPreparedStatements()
Get the preparedStatements within this queue |
boolean |
getUseTempTables()
Return true if this queue uses temporary tables |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchOperationQueue(PreparedStatementCache cache)
cache - source of prepared statements| Method Detail |
|---|
public java.util.TreeMap<java.lang.String,java.util.Map<Batchable.BatchOperation.ParamKey,java.sql.PreparedStatement>> getPreparedStatements()
public boolean getUseTempTables()
public void addBatchable(Batchable batchItem)
throws java.sql.SQLException
batchItem - batchable to add
java.sql.SQLException
public void addBatchable(Batchable.BatchOperation batchOperation)
throws java.sql.SQLException
batchOperation - batchable operation to add
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||