package io.ebeaninternal.server.persist; import java.io.Serializable; import java.util.Comparator; /** * Used to sort BatchedBeanHolder by their depth. *
* 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. *
*/ public class BatchDepthComparator implements Comparator