Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.attachments.ui
Class AttachmentRowCache

java.lang.Object
  extended by oracle.apps.fnd.applcore.attachments.ui.AttachmentRowCache
All Implemented Interfaces:
java.io.Serializable

public class AttachmentRowCache
extends java.lang.Object
implements java.io.Serializable

A cache of the attachment rows for a particular row from a parent VO that is attached to the attachments table via a view link. The intended use of this class is to cache the minimum number of attachment rows needed to fulfill the requirements of the UI. The rowIndex is the identifier of the row from the parent VO. Once populated this object will be put in the request parameters collection so that any other requests from the UI will use the cached value provided that the rowId matches.

See Also:
Serialized Form

Constructor Summary
AttachmentRowCache()
          Default constructor.
 
Method Summary
 java.util.List<CachedAttachment> getAttachments()
          Getter for the collection of attachment row values.
 AttachmentsCM getAttachmentsCollectionModel()
          Gets the attachments as a collection model.
 java.lang.String getCacheKey()
          Getter for the unique cache key.
 CachedAttachment getLastAttachment()
          Gets the last cached attachment.
 int getRowIndex()
          Getter for the index of the row from the parent VO.
 long getTotalRowCount()
          Getter of the total number of attachments for the parent VO.
 void setAttachments(java.util.List<CachedAttachment> attachments)
          Setter for the collection of attachment row values.
 void setCacheKey(java.lang.String cacheKey)
          Setter for the unique cache key.
 void setRowIndex(int rowIndex)
          Setter for the indes of the row from the parent VO.
 void setTotalRowCount(long totalRowCount)
          Setter of the total number of attachments for the parent VO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentRowCache

public AttachmentRowCache()
Default constructor.

Method Detail

setRowIndex

public void setRowIndex(int rowIndex)
Setter for the indes of the row from the parent VO.

Parameters:
rowIndex - index for the parent row.

getRowIndex

public int getRowIndex()
Getter for the index of the row from the parent VO.

Returns:
index of the parent row.

setCacheKey

public void setCacheKey(java.lang.String cacheKey)
Setter for the unique cache key.

Parameters:
cacheKey - unique cache key.

getCacheKey

public java.lang.String getCacheKey()
Getter for the unique cache key.

Returns:
unique cache key.

setAttachments

public void setAttachments(java.util.List<CachedAttachment> attachments)
Setter for the collection of attachment row values.

Parameters:
attachments - the attachment rows to be cached.

getAttachments

public java.util.List<CachedAttachment> getAttachments()
Getter for the collection of attachment row values.

Returns:
the attachment rows to be cached.

getAttachmentsCollectionModel

public AttachmentsCM getAttachmentsCollectionModel()
Gets the attachments as a collection model.

Returns:
attachments collection model.

getLastAttachment

public CachedAttachment getLastAttachment()
Gets the last cached attachment. (i.e. the first value from the collection as the attachments are stored in the same order as they are retrieved from the VO... in reverse chronological order. If there is no attachments then an empty one will be returned.

Returns:
the last cached attachment.

setTotalRowCount

public void setTotalRowCount(long totalRowCount)
Setter of the total number of attachments for the parent VO. Note: this is NOT the same as the number of cached attachments.

Parameters:
totalRowCount - the number of attachments.

getTotalRowCount

public long getTotalRowCount()
Getter of the total number of attachments for the parent VO. Note: this is NOT the same as the number of cached attachments.

Returns:
the number of attachments.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.