Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

oracle.adfmf.dc.bean
Class ConcreteJavaBeanObject

Object
  extended by oracle.adfmf.dc.JavaBeanObject
      extended by oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
          extended by oracle.adfmf.dc.bean.ConcreteJavaBeanObject
All Implemented Interfaces:
java.util.EventListener, JSONSerializable, oracle.adfmf.framework.event.DataChangeListener, oracle.adfmf.framework.event.DataChangeProvider, PropertyChangeListener, ProviderChangeListener, GenericType

public class ConcreteJavaBeanObject
extends oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase

For internal framework use only. This is an adapter class used to expose a native java bean class that is part of a DataControl hierarchy in terms of the GenericType interface. For best practice, developers should code to the GenericType interface and not directly cast to this class.


Method Summary
 void dispose()
           
 Object getAttribute(int i)
          Return the i'th attribute NOTE: Order of defines does matter, this method will always return the i'th attribute that was defined.
 Object getAttribute(String name)
          Return the attribute value for the given name attribute.
 Object getAttribute(String name, int index)
          Return the attribute value for the namespace/name attribute
 Object getAttribute(String namespace, String name)
          Return the attribute value for the namespace/name attribute
 int getAttributeCount()
          Return the number of attributes defined for this generic type
 int getAttributeCount(String name)
          Return the number of attributes with the given name.
 oracle.adfmf.util.AttributeInfo getAttributeInfo(int i)
          Return the attribute information for the i'th attribute
 Class getAttributeType(String name)
          Return the attribute type for the name attribute
 Object getInstance()
           
 Object insertChild(String accessorName, int index, Object child)
          Insert a child into the current generic type.
 Object invokeMethod(String methodName, Class[] paramTypes, Object[] params)
           
 boolean isUpdateable(String name)
          Returns whether or not the named attribute is updateable
 void setAttribute(String name, Object value)
          Set the value of the given attribute
 
Methods inherited from class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
addChildren, addPropertyChangeListener, addProviderChangeListener, copy, copy, firePropertyChange, fireProviderChange, getAttributeInfo, getAttributeInfoCount, getDataProvider, getName, getNamespace, getParent, getProviderKey, getProviderKeyValue, getType, hasAnyChangeListeners, hasPropertyChangeListeners, hasProviderChangeListeners, isAttributeCollection, isComplexType, newInstance, newInstance, propertyChange, providerChange, removeChild, removePropertyChangeListener, removeProviderChangeListener, setParent, setProviderKey, toJSON, toString
 
Methods inherited from class oracle.adfmf.dc.JavaBeanObject
getAttribute, getDefinition, getId, isDeferred, isModified, restoreDefaults, setAttributeModified
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

dispose

public void dispose()
Overrides:
dispose in class oracle.adfmf.dc.JavaBeanObject

insertChild

public Object insertChild(String accessorName,
                          int index,
                          Object child)
Description copied from interface: GenericType
Insert a child into the current generic type.

Specified by:
insertChild in interface GenericType
Overrides:
insertChild in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
accessorName - for the child
index - to specify the location
child - the child to be inserted
Returns:
the (possibly wrapped/converted) inserted child object

invokeMethod

public Object invokeMethod(String methodName,
                           Class[] paramTypes,
                           Object[] params)
Overrides:
invokeMethod in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase

getAttribute

public Object getAttribute(int i)
Description copied from interface: GenericType
Return the i'th attribute NOTE: Order of defines does matter, this method will always return the i'th attribute that was defined.

Specified by:
getAttribute in interface GenericType
Overrides:
getAttribute in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
i - the attribute index in question
Returns:
value of the attribute or null

getAttributeCount

public int getAttributeCount()
Description copied from interface: GenericType
Return the number of attributes defined for this generic type

Specified by:
getAttributeCount in interface GenericType
Overrides:
getAttributeCount in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase

getAttribute

public Object getAttribute(String name)
Description copied from interface: GenericType
Return the attribute value for the given name attribute. Developers should not presume the type of an attribute and should obtain the type via the getAttributeType() method on the generic type. The burden is on the developer to properly cast/coerce the 'getAttributeType()' type to the type they wish.

Specified by:
getAttribute in interface GenericType
Overrides:
getAttribute in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
name - of the attribute
Returns:
value of the attribute or null
See Also:
GenericType.getAttributeType(java.lang.String)

getAttribute

public Object getAttribute(String name,
                           int index)
Description copied from interface: GenericType
Return the attribute value for the namespace/name attribute

Specified by:
getAttribute in interface GenericType
Overrides:
getAttribute in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
name - of the attribute
Returns:
value of the attribute or null
See Also:
GenericType.getAttribute(java.lang.String)

getAttribute

public Object getAttribute(String namespace,
                           String name)
Description copied from interface: GenericType
Return the attribute value for the namespace/name attribute

Specified by:
getAttribute in interface GenericType
Overrides:
getAttribute in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
namespace - of the attribute
name - of the attribute
Returns:
value of the attribute or null
See Also:
GenericType.getAttribute(java.lang.String)

setAttribute

public void setAttribute(String name,
                         Object value)
Description copied from interface: GenericType
Set the value of the given attribute

Specified by:
setAttribute in interface GenericType
Overrides:
setAttribute in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
name - of the attribute
value - of the attribute

getAttributeCount

public int getAttributeCount(String name)
Description copied from interface: GenericType
Return the number of attributes with the given name.

Specified by:
getAttributeCount in interface GenericType
Overrides:
getAttributeCount in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase

getAttributeInfo

public oracle.adfmf.util.AttributeInfo getAttributeInfo(int i)
Description copied from interface: GenericType
Return the attribute information for the i'th attribute

Specified by:
getAttributeInfo in interface GenericType
Overrides:
getAttributeInfo in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
i - for the i'th attribute
Returns:
info of the attribute or null

getAttributeType

public Class getAttributeType(String name)
Description copied from interface: GenericType
Return the attribute type for the name attribute

Specified by:
getAttributeType in interface GenericType
Overrides:
getAttributeType in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
name - of the attribute
Returns:
type of the attribute or null

getInstance

public Object getInstance()

isUpdateable

public boolean isUpdateable(String name)
Description copied from interface: GenericType
Returns whether or not the named attribute is updateable

Specified by:
isUpdateable in interface GenericType
Overrides:
isUpdateable in class oracle.adfmf.dc.bean.ConcreteJavaBeanObjectBase
Parameters:
name - of the attribute
Returns:
true if the name attribute is writeable, false if it is read-only

Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.