|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Operations
RPCManager
class, which
when used with the Smart GWT server, provides Java to JavaScript '2-way translation'
of basic data structures. The RPCManager also provides a mechanism for client-side code to be
invoked when an operation completes (called a "callback"). RPC Operations are intended for unstructured data; data that
is ultimately destined for display in Smart GWT components will generally come from DataSource operations. 'DataSource Operation'
is an operation that acts on a DataSource, performing one of the basic actions that makes sense
on a set of similar records: "fetch", "add", "update" or "remove". Unlike RPC operations, DataSource operations have
specific request data and response data, for example, in the "fetch" DataSource operation, the request data is expected
to be search criteria, and the response data is expected to be a list of matching DataSource records. Although
DataSource operations can be invoked manually from the client, they are generally automatically invoked by DataBound
components. DataBoundComponent
becomes applicable to your server. At that point authentication,
authorization and other business rules can be layered on top. 'SQLDataSource'
which can be used
without any server-side code needing to be written. In contrast, any operation which uses custom server-side code is
called a "Custom Operation". 'this discussion'
of the advantages of doing so}. As you switch from using Built-in
DataSources to Custom Operations, no client-side code changes will be required, because the client cares only about the
DataSource definition, not the data store which the data is ultimately retrieved from.
DataSource.fetchData()
,
DataSource.filterData(com.smartgwt.client.data.Criteria)
,
com.smartgwt.client.data.DataSource#exportData
,
DataSource.addData(com.smartgwt.client.data.Record)
,
DataSource.updateData(com.smartgwt.client.data.Record)
,
DataSource.removeData(com.smartgwt.client.data.Record)
,
com.smartgwt.client.data.DataSource#performCustomOperation
,
com.smartgwt.client.rpc.RPCManager#handleError
,
com.smartgwt.client.data.DSRequest#getOperationId
,
DataBoundComponent.getFetchOperation()
,
DataBoundComponent.getUpdateOperation()
,
DataBoundComponent.getAddOperation()
,
DataBoundComponent.getRemoveOperation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |