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:getobjectreferences [2023/04/04 05:51] – removed - external edit (Unknown date) 127.0.0.1pr_methods:getobjectreferences [2023/05/03 04:33] (current) sean
Line 1: Line 1:
 +{{tag>Programmers_Reference Methods IExecutionEngine_Interface getObjectReferences Index}}
 +
 +====getObjectReferences (IProcess, IEntity, String)====
 +<code java>public Vector getObjectReferences (IProcessparent, IEntity refOwner, String refOwnerAttr)
 +throws AccessDeniedException, ExecutionException;</code>
 +
 +This method is very similar to the ''[[pr_methods:getallreferences|getAllReferences]]'' method. However, it returns references as a collection of ''ObjectReference'' objects rather than ''[[docs:3500:0300:0317|IEntity]]'' objects. ''ObjectReference'' is a structure containing an object name and ID. If only names and ID's of the references are required calling this method is much more efficient than calling ''[[pr_methods:getallreferences|getAllReferences]]'', which retrieves the values of all attributes.
 +===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 names and ID's of business objects referenced through the specified attribute as a vector of the ''ObjectReference'' objects or null if no instances are referenced through the specified attribute.