private void reorder ( ) { if ( getTransaction ( ) . isOrdering ( ) && needsCommit && mhtObjectEnvelopes . size ( ) > 1 ) { ObjectEnvelopeOrdering ordering = new ObjectEnvelopeOrdering ( mvOrderOfIds , mhtObjectEnvelopes ) ; ordering . reorder ( ) ; Identity [ ] newOrder = ordering . getOrdering ( ) ; mvOrderOfIds . clear ( ) ; for ( int i = 0 ; i < newOrder . length ; i ++ ) { mvOrderOfIds . add ( newOrder [ i ] ) ; } } }
Reorder the objects in the table to resolve referential integrity dependencies .