interMedia BC4J Integration

oracle.ord.im
Class DomainNoOwnerException

oracle.ord.im.OrdJboException
  |
  +--oracle.ord.im.DomainNoOwnerException

public class DomainNoOwnerException
extends OrdJboException

Indicates the interMedia domain object has been created without an owner object.

This may happen when the application instantiates a new domain object, but fails to set it into a Business Components for Java (BC4J) entity object. At runtime, if the domain object needs to get information, it goes through the row object that owns it. If the owner object has not been set, this exception will be thrown.

Setting the domain object into the entity object normally occurs when the user call row.setAttribute(String name, Object value);. So a good practice is to always set the context after creating a new domain instance:

        OrdImageDomain imgDomain = new OrdImageDomain();
        row.setAttribute("Image", imgDomain);
 

Since:
JDev5.0

Constructor Summary
DomainNoOwnerException(java.lang.String domainClassName)
          Constructs a DomainNoOwnerException instance.
 
Methods inherited from class oracle.ord.im.OrdJboException
getProductCode, getResourceName
 

Constructor Detail

DomainNoOwnerException

public DomainNoOwnerException(java.lang.String domainClassName)
Constructs a DomainNoOwnerException instance.
Parameters:
domainClassName - the class name of the domain object

interMedia BC4J Integration