oracle.jbo.server.remote
Class PiggybackManager
java.lang.Object
oracle.jbo.server.remote.PiggybackManager
- public class PiggybackManager
- extends java.lang.Object
Maintain all the ViewRowSetIteratorImpl that a client is using.
- Version:
- INTERNAL
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PiggybackManager
public PiggybackManager(ObjectMarshallerImpl marshaller)
- Class constructor
setLocal
public void setLocal(boolean b)
isLocal
public boolean isLocal()
setDataModelRefresh
public void setDataModelRefresh(boolean b)
setSvcMsgName
public void setSvcMsgName(java.lang.String svcMsgName)
setRequestName
public void setRequestName(java.lang.String reqName)
getRequestName
public java.lang.String getRequestName()
getMarshaller
public ObjectMarshallerImpl getMarshaller()
getIterators
public com.sun.java.util.collections.ArrayList getIterators()
addRowSetIterator
public RuntimeViewRowSetIteratorInfo addRowSetIterator(RowSetIterator rv)
- Add a new ViewRowSetIteratorImpl to the list maintain by this class and return an integer id respresenting the ViewRowSetIteratorImpl inernally.
-
- Parameters:
rv
- the ViewRowSetIteratorImpl to add
- Returns:
- the new ViewRowSetIteratorImpl id
addComponentObject
public RuntimeComponentObjectInfo addComponentObject(ComponentObjectImpl co)
indexOfRowSetIterator
public int indexOfRowSetIterator(RowSetIterator rsi)
- Look for the ViewRowSetIteratorImpl in the list this class is managing and return its integer id, otherwise return -1.
-
- Returns:
- the id of the ViewRowSetIteratorImpl if exist, -1 if not there
indexOfComponentObject
public int indexOfComponentObject(ComponentObjectImpl rci)
getServiceMessage
public ServiceMessage getServiceMessage()
addMarshalledObjects
protected void addMarshalledObjects()
mergeDataModelRefreshEntries
protected void mergeDataModelRefreshEntries()
clearServiceMessage
public void clearServiceMessage()
prepareForServiceMessage
public void prepareForServiceMessage(AbstractRemoteApplicationModuleImpl amWrapper,
ServiceMessage msg)
cleanUpServiceMessage
public void cleanUpServiceMessage(JboException ex)
marshalServiceMessage
public ServiceMessage marshalServiceMessage(AbstractRemoteApplicationModuleImpl am)
addDataModelRefreshEntry
public void addDataModelRefreshEntry(java.io.Serializable ent)
addEntry
public void addEntry(java.io.Serializable ent)
insertEntry
public void insertEntry(int index,
java.io.Serializable ent)
getPiggyback
public byte[] getPiggyback(boolean on,
AbstractRemoteApplicationModuleImpl am)
- Collects all the changes from the ViewRowSetIteratorImpl and serialize them to the content of the piggyback as a byte stream.
-
- Parameters:
on
- true
if the piggyback should be filled with the lastest updates
- Returns:
- the byte stream which form the piggyback
getIteratorInfo
public RuntimeViewRowSetIteratorInfo getIteratorInfo(RowSetIterator rsi)
Copyright © 1997, 2005, Oracle. All rights reserved.