protected boolean fixLink ( final Object fieldValue ) { if ( fieldValue instanceof OIdentifiable ) { final ORID id = ( ( OIdentifiable ) fieldValue ) . getIdentity ( ) ; if ( id . getClusterId ( ) == 0 && id . getClusterPosition ( ) == 0 ) return true ; if ( id . isValid ( ) ) if ( id . isPersistent ( ) ) { final ORecord connected = ( ( OIdentifiable ) fieldValue ) . getRecord ( ) ; if ( connected == null ) return true ; } else return true ; } return false ; }
Checks if the link must be fixed .