Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pr_methods:getallreferences [2023/04/04 05:51] – removed - external edit (Unknown date) 127.0.0.1pr_methods:getallreferences [2023/05/08 06:55] (current) sean
Line 1: Line 1:
 +{{tag>Index Programmers_Reference Methods IExecutionEngine_Interface GetAllReferences}}
 +====getAllReferences (IProcess, IEntity, String)====
 +<code java>public IEntity [] getAllReferences(IProcessparent, IEntity refOwner, String refOwnerAttr)
 +throws AccessDeniedException, ExecutionException;</code>
 +
 +This method retrieves all references of the specified instance of the business object referenced by the specified attribute of the reference type. The method ''[[pr_methods:getreferences|getReferences]]'' of the ''[[docs:3500:0300:0317|IEntity]]'' interface also returns the references of the business object, so it is possible to retrieve the object by calling ''[[pr_methods:getentity|getEntity]]'' and then call ''[[pr_methods:getreferences|getReferences]]'' method. However, calling the ''[[pr_methods:getentity|getEntity]]'' or ''[[pr_methods:getentities|getEntities]]'' methods will only retrieve single references and will not retrieve multiple references. The ''getAllReferences'' method, on the other hand, guarantees that all references of the business object referenced through the specified attribute are retrieved.
 +
 +===Parameters===
 +|''refOwner''|the instance of the business object the references of which are retrieved|
 +|''refOwnerAttr''|the name of the attribute of the business object () the references of which are retrieved (must be of the reference  type)|
 +
 +===Returns===
 +The instances of the business objects referenced through the specified attribute or null if no instances are referenced through the specified attribute.