SilverStream
Application Server 3.5

com.sssw.rt.util
Class AgrData

java.lang.Object
 |
 +--com.sssw.rt.util.AgoRowCursor
       |
       +--com.sssw.rt.util.AgoData
             |
             +--com.sssw.rt.util.AgrData
All Implemented Interfaces:
AgiRowCursor, AgiRowCursorSort, AgiRowCursorViewSupport, AgiRowSetEventProducer, AgiRowSetListener, AgiRowSetManager, Cloneable

public class AgrData
extends AgoData

A remote version of an AgoData, for use outside of SilverStream forms. Java Applications developed outside of SilverStream can access data using Data Source Objects (DSOs) running on the SilverStream Server.These objects are in turn accessed through AgrDatas. Use setDataSource(String, bosObjSpec) to access the DSO.For example:

    appdata = new AgrData();
    appdata.setDataSource(s3dsolocation);

You can also use AgrDatas to access data from one server to another.

See Also:
AgRuntime, AgrServerSession

Fields inherited from class com.sssw.rt.util.AgoRowCursor
m_cursor
 
Constructor Summary
AgrData()
           
 
Method Summary
 void init(AgrServerSession session)
          Initialize this data cache to the specified server session.
 Serializable invokeQuery(Serializable param)
          Invoke the business object for which this is a proxy.
 
Methods inherited from class com.sssw.rt.util.AgoData
close, setDataSource
 
Methods inherited from class com.sssw.rt.util.AgoRowCursor
addAgiRowCursorListener, addAgiRowSetListener, allowsChildren, appendChild, copy, cursorChanged, cursorPreChange, delete, equals, getChildEntryCount, getCursor, getDisplayEntryNumber, getProperty, getProperty, getPropertyCount, getPropertyIndex, getPropertyName, getRowSetEventProducer, gotoChild, gotoFirst, gotoLast, gotoNext, gotoParent, gotoPrevious, gotoRoot, hasChildren, insertAfter, insertBefore, makePrimaryVersion, removeAgiRowCursorListener, removeAgiRowSetListener, setCursor, setDisplayEntryNumber, setProperty, setProperty, setRowCursorSupport, setRowSetSupport, validateCursor
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods implemented from interface com.sssw.rt.util.AgiRowCursorSort
rowCursorSort
 
Methods implemented from interface com.sssw.rt.event.AgiRowSetListener
dataReceivedAsync, dataReloaded, rowDataChanged, rowDeleted, rowInserted, rowPreDelete, rowPreInsert
 
Methods implemented from interface com.sssw.rt.util.AgiRowSetManager
clearRows, haveRowsChanged, query, query, refreshRows, updateRows
 

Constructor Detail

AgrData

public AgrData()
Method Detail

init

public void init(AgrServerSession session)
Initialize this data cache to the specified server session.
Parameters:
session - an established server session
Example:
    AgrData agrData = new AgrData();
    agrData.init(sess);
 

invokeQuery

public Serializable invokeQuery(Serializable param)
                         throws Exception
Invoke the business object for which this is a proxy. If it succeeds, initialize the datastore with the resulting data source. If the business object throws an exception this method will throw it as well
Parameters:
param - parameter to be passed to the Data Source object
Returns:
the result of invoking the Data Source object
Throws:
Exception - if the Data Source object throws an exception
Example:
    Object res = MyAgrData.invokeQuery(null);
 

SilverStream
Application Server 3.5