Oracle9i Business Components for Java InterMedia API Reference
Oracle9i JDeveloper (9.0.5)
B10394-01

oracle.ord.im
Class DomainNoOwnerException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byoracle.jbo.JboException
                  extended byoracle.ord.im.OrdJboException
                      extended byoracle.ord.im.DomainNoOwnerException
All Implemented Interfaces:
oracle.jbo.common.JboMessage, oracle.jbo.common.MetaObjectBase, java.io.Serializable

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
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface oracle.jbo.common.MetaObjectBase
TYP_APP_MODULE, TYP_ATTRIBUTE, TYP_ATTRIBUTE_LIST_WITH_DEF, TYP_COMPONENT_OBJECT, TYP_DEF_ANY, TYP_DEF_APP_MODULE, TYP_DEF_ATTRIBUTE, TYP_DEF_COMPONENT_OBJECT, TYP_DEF_DOMAIN, TYP_DEF_ENTITY_ASSOC, TYP_DEF_ENTITY_OBJECT, TYP_DEF_PACKAGE, TYP_DEF_VIEW_LINK, TYP_DEF_VIEW_OBJECT, TYP_DOMAIN, TYP_ENTITY_ASSOC, TYP_ENTITY_OBJECT, TYP_ENTITY_ROW, TYP_ENTITY_ROW_SET, TYP_ENTITY_ROW_SET_ITERATOR, TYP_ENTITY_USAGE, TYP_PACKAGE, TYP_TRANSACTION, TYP_VALIDATOR_TYPE, TYP_VIEW_LINK, TYP_VIEW_OBJECT, TYP_VIEW_ROW, TYP_VIEW_ROW_SET, TYP_VIEW_ROW_SET_ITERATOR
 
Constructor Summary
DomainNoOwnerException(java.lang.String domainClassName)
          Constructs a DomainNoOwnerException instance.
 
Methods inherited from class oracle.ord.im.OrdJboException
getProductCode, getResourceName
 
Methods inherited from class oracle.jbo.JboException
addToDetails, addToExceptions, containsException, doEntityToVOMapping, getBaseMessage, getDetailMessage, getDetails, getErrorCode, getErrorParameters, getExceptions, getLocalizedBaseMessage, getLocalizedMessage, getMessage, getResourceClass, getSource, getTypeNameFromId, hasPeerExceptions, isAppendCodes, isLocalizable, needsEntityToVOMapping, printStackTrace, printStackTrace, printStackTrace, setAppendCodes, setApplicationModule, setDetails, setExceptions, setLocaleContext, setNeedsEntityToVOMapping, setSource
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DomainNoOwnerException

public DomainNoOwnerException(java.lang.String domainClassName)
Constructs a DomainNoOwnerException instance.

Parameters:
domainClassName - the class name of the domain object

Oracle9i Business Components for Java InterMedia API Reference
Oracle9i JDeveloper (9.0.5)
B10394-01

Copyright © 2001,2003, Oracle. All Rights Reserved.