void setLink ( Node node , Relation relation , Node childNode , NodeLink nodeLink ) { nodeLink . setMultiplicity ( relation . getType ( ) ) ; EntityMetadata metadata = KunderaMetadataManager . getEntityMetadata ( node . getPersistenceDelegator ( ) . getKunderaMetadata ( ) , node . getDataClass ( ) ) ; nodeLink . setLinkProperties ( getLinkProperties ( metadata , relation , node . getPersistenceDelegator ( ) . getKunderaMetadata ( ) ) ) ; // Add Parent node to this child childNode . addParentNode ( nodeLink , node ) ; // Add child node to this node node . addChildNode ( nodeLink , childNode ) ; }
Set link property