Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.util
Class GenericTypeIteratorAdapter

java.lang.Object
  extended by oracle.adfnmc.bindings.dbf.NotifyingIteratorBinding
      extended by oracle.adfnmc.util.GenericTypeIteratorAdapter
All Implemented Interfaces:
IteratorPositionListener, BasicIterator, NotifyingIterator
Direct Known Subclasses:
JavaBeanObjectIteratorAdapter

public class GenericTypeIteratorAdapter
extends NotifyingIteratorBinding
implements IteratorPositionListener


Field Summary
protected  BindingContainer bc
           
protected  DataControl dc
           
protected  java.lang.String id
           
protected  int index
           
protected  java.lang.String master
           
protected  java.lang.String name
           
protected  GenericType provider
           
 
Fields inherited from class oracle.adfnmc.bindings.dbf.NotifyingIteratorBinding
attributeUpdatedListeners, collectionChangedListeners, positionChangedListeners, providerChangedListeners, rangedPositionChangedListeners
 
Constructor Summary
GenericTypeIteratorAdapter()
           
GenericTypeIteratorAdapter(DataControl dc, XmlAnyDefinition metadataDef, BindingContainer bc, GenericType provider)
           
 
Method Summary
 java.lang.Object createRow(boolean insert)
          Row create/update/remove are not supported for this type.
protected  int findPosition(GenericType gt)
           
protected  int findPosition(java.lang.Object o)
           
 java.lang.Object first()
           
 java.lang.Class getAttributeType(java.lang.String name)
          Retrieve the given attribute's type.
 java.lang.Object getAttributeValue(java.lang.String name)
          Retrieve the given attribute's value
 java.lang.Object getAttributeValueAtIndex(int index, java.lang.String attributeName)
          Retrieve the value of the attribute at the given index/name Please note, this does NOT change the current provider like setCurrentIndex() + getAttributeValue() would do.
 BindingContainer getBindingContainer()
           
 GenericType getChildProvider(int i)
           
 int getCurrentIndex()
           
 java.lang.Object getCurrentRow()
           
 java.lang.Object[] getCurrentValues()
           
 DataControl getDataControl()
           
 java.lang.Object getDataProvider()
          Returns the data provider object wrapped by this iterator binding.
 java.lang.Object getDataProvider(java.lang.String name)
          Retrieve the data provider for the associated child/bound element.
 java.lang.Object getDataProvider(java.lang.String namespace, java.lang.String name)
          Retrieve the data provider for the associated child/bound element.
 java.lang.Object getDataProvider(XmlAnyDefinition metadataDef)
          Retrieve the data provider for the associated child/bound element.
 java.lang.Object getExtendedAttributeInfo(java.lang.Object infoKey, java.lang.String attributeName)
          Get the extended attribute information
 java.lang.String getId()
           
 java.lang.String getMasterId()
           
 XmlAnyDefinition getMetadataDefinition()
           
 int getTotalRowCount()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 boolean isUpdateable(java.lang.String name)
          Is the given attribute updateable
 java.lang.Object last()
           
protected  void log(Level level, java.lang.String msg)
           
 java.lang.Object next()
           
 void positionChanged(int absoluteIndex)
          Fires when the iterator position is changed to point to a different row.
 java.lang.Object previous()
           
 void rangeRefreshed()
           
 void refresh()
          refresh the iterator
 java.lang.Object removeCurrentRow()
          Row create/update/remove are not supported for this type.
 void rowInserted(java.lang.Object newRow)
           
 void rowRemoved(java.lang.Object removedRow)
           
 void setAttributeValue(java.lang.String name, java.lang.Object value)
          Set the 'name'd' attribute value.
 void setCurrentIndex(int i)
           
 void setDataProvider(java.lang.Object value)
          Sets the data provider object wrapped by this iterator binding.
 void setMetadataDefinition(XmlAnyDefinition def)
           
 java.lang.String toString()
           
 
Methods inherited from class oracle.adfnmc.bindings.dbf.NotifyingIteratorBinding
addAttributeUpdatedListener, addCollectionChangedListener, addPositionChangedListener, addProviderChangedListener, addRangedPositionChangedListener, notifyAttributeValueUpdated, notifyCurrentRowPositionChanged, notifyProviderChanged, notifyRangeRefreshed, notifyRowInserted, notifyRowRemoved, removeAttributeUpdatedListener, removeCollectionChangedListener, removePositionChangedListener, removeProviderChangedListener, removeRangedPositionChangedListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

protected int index

name

protected java.lang.String name

id

protected java.lang.String id

dc

protected DataControl dc

master

protected java.lang.String master

bc

protected BindingContainer bc

provider

protected GenericType provider
Constructor Detail

GenericTypeIteratorAdapter

public GenericTypeIteratorAdapter()

GenericTypeIteratorAdapter

public GenericTypeIteratorAdapter(DataControl dc,
                                  XmlAnyDefinition metadataDef,
                                  BindingContainer bc,
                                  GenericType provider)
Method Detail

getMetadataDefinition

public XmlAnyDefinition getMetadataDefinition()
Specified by:
getMetadataDefinition in interface BasicIterator
Returns:
The metadata definition object for this iterator binding

setMetadataDefinition

public void setMetadataDefinition(XmlAnyDefinition def)
Specified by:
setMetadataDefinition in interface BasicIterator
Parameters:
def - The metadata definition object for this iterator binding

getMasterId

public java.lang.String getMasterId()
Returns:
the master iterator's id

getId

public java.lang.String getId()
Returns:
the iterator's id

getBindingContainer

public BindingContainer getBindingContainer()
Specified by:
getBindingContainer in interface BasicIterator

getDataControl

public DataControl getDataControl()
Specified by:
getDataControl in interface BasicIterator
Returns:
the data control associated with this iterator.

getDataProvider

public java.lang.Object getDataProvider()
Description copied from interface: BasicIterator
Returns the data provider object wrapped by this iterator binding.

Specified by:
getDataProvider in interface BasicIterator
Returns:
the data provider for this iterator

setDataProvider

public void setDataProvider(java.lang.Object value)
Description copied from interface: BasicIterator
Sets the data provider object wrapped by this iterator binding.

Specified by:
setDataProvider in interface BasicIterator

getDataProvider

public java.lang.Object getDataProvider(java.lang.String name)
Retrieve the data provider for the associated child/bound element.

Parameters:
name -
Returns:
the GenericType object associated with the bind variable

getDataProvider

public java.lang.Object getDataProvider(java.lang.String namespace,
                                        java.lang.String name)
Retrieve the data provider for the associated child/bound element.

Parameters:
namespace -
name -
Returns:
the GenericType object associated with the bind variable

getDataProvider

public java.lang.Object getDataProvider(XmlAnyDefinition metadataDef)
Retrieve the data provider for the associated child/bound element.

Specified by:
getDataProvider in interface BasicIterator
Parameters:
metadataDef - The metadata definition for the accessor iterator that binds to the named object contained in the object wrapped by this iterator binding.
Returns:
the GenericType object associated with the bind variable

refresh

public void refresh()
refresh the iterator

Specified by:
refresh in interface BasicIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface BasicIterator
Returns:
the next element in a collection (if supported)

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface BasicIterator
Returns:
the previous element in a collection (if supported)

positionChanged

public void positionChanged(int absoluteIndex)
Description copied from interface: IteratorPositionListener
Fires when the iterator position is changed to point to a different row.

Specified by:
positionChanged in interface IteratorPositionListener

rowInserted

public void rowInserted(java.lang.Object newRow)

rowRemoved

public void rowRemoved(java.lang.Object removedRow)

rangeRefreshed

public void rangeRefreshed()

first

public java.lang.Object first()
Specified by:
first in interface BasicIterator

previous

public java.lang.Object previous()
Specified by:
previous in interface BasicIterator

next

public java.lang.Object next()
Specified by:
next in interface BasicIterator

last

public java.lang.Object last()
Specified by:
last in interface BasicIterator

getCurrentIndex

public int getCurrentIndex()
Specified by:
getCurrentIndex in interface BasicIterator

getChildProvider

public GenericType getChildProvider(int i)

setCurrentIndex

public void setCurrentIndex(int i)
Specified by:
setCurrentIndex in interface BasicIterator

getTotalRowCount

public int getTotalRowCount()
Specified by:
getTotalRowCount in interface BasicIterator
Returns:
the number of rows

getCurrentRow

public java.lang.Object getCurrentRow()
Specified by:
getCurrentRow in interface BasicIterator
Returns:
the current row

createRow

public java.lang.Object createRow(boolean insert)
Row create/update/remove are not supported for this type.

Specified by:
createRow in interface BasicIterator
Parameters:
insert - true if the row
Returns:
the current row that is being created/updated.

removeCurrentRow

public java.lang.Object removeCurrentRow()
Row create/update/remove are not supported for this type.

Specified by:
removeCurrentRow in interface BasicIterator
Returns:
the current row that is being remove.

getAttributeType

public java.lang.Class getAttributeType(java.lang.String name)
Retrieve the given attribute's type.

Specified by:
getAttributeType in interface BasicIterator
Parameters:
name - of the attribute
Returns:
attribute type or class

isUpdateable

public boolean isUpdateable(java.lang.String name)
Is the given attribute updateable

Specified by:
isUpdateable in interface BasicIterator
Parameters:
name - of the attribute
Returns:
true if the attribute is updateable or false otherwise

getExtendedAttributeInfo

public java.lang.Object getExtendedAttributeInfo(java.lang.Object infoKey,
                                                 java.lang.String attributeName)
Get the extended attribute information

Specified by:
getExtendedAttributeInfo in interface BasicIterator
Parameters:
infoKey -
attributeName -
Returns:

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String name)
Retrieve the given attribute's value

Specified by:
getAttributeValue in interface BasicIterator
Parameters:
name -

setAttributeValue

public void setAttributeValue(java.lang.String name,
                              java.lang.Object value)
Set the 'name'd' attribute value.

Specified by:
setAttributeValue in interface BasicIterator
Parameters:
name - of the attribute
value - of the attribute

getAttributeValueAtIndex

public java.lang.Object getAttributeValueAtIndex(int index,
                                                 java.lang.String attributeName)
Retrieve the value of the attribute at the given index/name Please note, this does NOT change the current provider like setCurrentIndex() + getAttributeValue() would do. In order to change the index'ing you need to go thru the setCurrentIndex or the first/prev/next/last methods.

Specified by:
getAttributeValueAtIndex in interface BasicIterator
Parameters:
index -
attributeName -
Returns:

getCurrentValues

public java.lang.Object[] getCurrentValues()
Specified by:
getCurrentValues in interface BasicIterator
Returns:
the current list (array) of values

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

findPosition

protected int findPosition(GenericType gt)

findPosition

protected int findPosition(java.lang.Object o)

log

protected void log(Level level,
                   java.lang.String msg)

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.