boolean checkUpdate ( final INodeReadTrx paramNewRtx , final INodeReadTrx paramOldRtx ) throws TTIOException { assert paramNewRtx != null ; assert paramOldRtx != null ; boolean updated = false ; final long newKey = paramNewRtx . getNode ( ) . getDataKey ( ) ; boolean movedNewRtx = paramNewRtx . moveTo ( ( ( ITreeStructData ) paramNewRtx . getNode ( ) ) . getRightSiblingKey ( ) ) ; final long oldKey = paramOldRtx . getNode ( ) . getDataKey ( ) ; boolean movedOldRtx = paramOldRtx . moveTo ( ( ( ITreeStructData ) paramOldRtx . getNode ( ) ) . getRightSiblingKey ( ) ) ; if ( movedNewRtx && movedOldRtx && checkNodes ( paramNewRtx , paramOldRtx ) ) { updated = true ; } else if ( ! movedNewRtx && ! movedOldRtx ) { movedNewRtx = paramNewRtx . moveTo ( paramNewRtx . getNode ( ) . getParentKey ( ) ) ; movedOldRtx = paramOldRtx . moveTo ( paramOldRtx . getNode ( ) . getParentKey ( ) ) ; if ( movedNewRtx && movedOldRtx && checkNodes ( paramNewRtx , paramOldRtx ) ) { updated = true ; } } paramNewRtx . moveTo ( newKey ) ; paramOldRtx . moveTo ( oldKey ) ; if ( ! updated ) { updated = paramNewRtx . getNode ( ) . getDataKey ( ) == paramOldRtx . getNode ( ) . getDataKey ( ) ; } return updated ; }
Check for an update of a node .