public class BatchedBeanHolder extends Object
This is used to delay the actual binding of the bean to PreparedStatements. The reason is that don't have all the bind values yet in the case of inserts with getGeneratedKeys.
Has a depth which is used to determine the order in which it should be executed. The lowest depth is executed first.
| Constructor and Description |
|---|
BatchedBeanHolder(BatchControl control,
BeanDescriptor<?> beanDescriptor,
int order)
Create a new entry with a given type and depth.
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeNow()
Execute all the persist requests in this entry.
|
ArrayList<PersistRequest> |
getList(PersistRequestBean<?> request)
Return the list for the typeCode.
|
int |
getOrder()
Return the depth.
|
String |
toString() |
public BatchedBeanHolder(BatchControl control, BeanDescriptor<?> beanDescriptor, int order)
public int getOrder()
public void executeNow()
This will Batch all the similar requests into one or more BatchStatements and then execute them.
public ArrayList<PersistRequest> getList(PersistRequestBean<?> request)
Copyright © 2014. All Rights Reserved.