thinkmap.datasource
Interface IDataSource

All Known Subinterfaces:
IRelationalDataSource
All Known Implementing Classes:
AbstractDataSource, CompositeDataSource, DatabaseDataSource, FlatFileDataSource, LocalDataSource, RemoteDataSource, SearchWrapper, StatisticsWrapper

public interface IDataSource

The interface for creating a bidirectional connection to a datasource.

Example:

IEntityHandler request = ds.createRequest(responseHandler); request.beginMessage(IEntityHandler.ENTITY_REQUEST); request.attribute(IEntityHandler.SEARCH_STRING, "foo"); request.endMessage();

The responseHandler is guaranteed to have recieved the datasource's response by the time endMessage() returns.

Version:
$Revision: 1.2 $

Method Summary
 IEntityHandler createRequest(IEntityHandler callback)
          Create a request.
 

Method Detail

createRequest

IEntityHandler createRequest(IEntityHandler callback)
Create a request. The server and client's IEntityHandlers are linked.

Parameters:
callback - The IEntityHandler that will recieve the response.
Returns:
The IEntityHandler for sending a request.


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.