public class BatchDepthComparator extends Object implements Comparator<BatchedBeanHolder>, Serializable
Beans are queued and put into BatchedBeanHolder along with their depth. This delays the actually binding to PreparedStatements until the BatchedBeanHolder's are flushed. This is so that we can get the generated keys from inserts. These values are required to persist the 'detail' beans.
| Constructor and Description |
|---|
BatchDepthComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BatchedBeanHolder b1,
BatchedBeanHolder b2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(BatchedBeanHolder b1, BatchedBeanHolder b2)
compare in interface Comparator<BatchedBeanHolder>Copyright © 2014. All Rights Reserved.