private boolean convertRecord2Link ( final int iIndex ) { if ( contentType == MULTIVALUE_CONTENT_TYPE . ALL_RIDS ) // PRECONDITIONS return true ; final Object o = super . get ( iIndex ) ; if ( o != null ) { if ( o instanceof ORecord < ? > && ! ( ( ORecord < ? > ) o ) . isDirty ( ) ) { marshalling = true ; try { super . set ( iIndex , ( ( ORecord < ? > ) o ) . getIdentity ( ) ) ; // CONVERTED return true ; } catch ( ORecordNotFoundException e ) { // IGNORE THIS } finally { marshalling = false ; } } else if ( o instanceof ORID ) // ALREADY CONVERTED return true ; } return false ; }
Convert the item requested from record to link .