|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.util.AgoRowCursor | +--com.sssw.rt.util.AgoData | +--com.sssw.srv.busobj.AgaData
Mechanism for accessing data from a SilverStream triggered business object. A dataset is made available to a triggered object at design time by clicking the database icon in the Business Objects Designer.
Once the dataset is selected, the property inspector is used to define the source for the dataset. The source can be any relational table that is accessible using JDBC. It can also be a business object with a Data Source trigger.
Fields inherited from class com.sssw.rt.util.AgoRowCursor |
m_cursor |
Constructor Summary | |
AgaData()
|
Method Summary | |
void |
initialize(String name,
AgiDatabase db)
Used to initialize a "standalone" AgaData being used from a SilverStream business object or utility class in a SilverStream server. |
void |
initialize(String name,
EJBContext ctxt)
Used to initialize a "standalone" AgaData being used from an Enterprise Java Bean -- either a Session Bean or a bean-managed Entity Bean. |
Object |
invokeQuery()
Invoke the business object for which this is a proxy. |
Object |
invokeQuery(Serializable param)
Invoke the business object for which this is a proxy. |
void |
setAutoCloseAfterEvent(boolean value)
Allows you to control whether an AgData Object closes or stays open after a related event(s) fires. |
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 |
public AgaData()
Method Detail |
public void initialize(String name, EJBContext ctxt) throws Exception
setDataSource()
method,
which must be called after the AgaData is initialized. The argument is
the EJB Context in which the EJB is being run, and the
name of the AgaData being created (must be unique within
this EJB).name
- Name to be used for this AgaDatactxt
- The EJB context in which this EJB is runningpublic void initialize(String name, AgiDatabase db) throws Exception
setDataSource()
method (which must be
called after the AgaData is initialized). The arguments are the
AgiDatabase in which the caller resides, plus the
name of the AgaData being created.name
- Name to be used for this AgaDatadb
- The caller's databasepublic void setAutoCloseAfterEvent(boolean value)
true
- if this AgaData should be automatically closed after all related events.If you want to use one after a set of related events completes (by saving it in an instance variable) you should call this method with a parameter of false so that it is not closed automatically after the event. The default behavior is as if this method was called with a parameter of true.
public Object invokeQuery() throws Exception
public Object invokeQuery(Serializable param) throws Exception
param
- any data that the business object might need
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |