Package  Use  Tree  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

 

jve.generated
Interface IDataSource

All Known Implementing Classes:
EJBDataSource, JavaBeanDataSource, WebServiceDataSource


public interface IDataSource

A data source is a factory for a facade of some type of data service. It is the responsibility of the DataSource implementor to initialize the facade properly. Examples of facades include be a EJB session bean, a web service proxy, and a JavaBean factory.


Method Summary
 java.lang.Object getDataSource()
          Get an an instance for a data source facade that is initialized properly and whose services are available.
 java.lang.Class getType()
          In design time, this method will be used to reflect on the services that are available from the implemented data source
 void setDataSource(java.lang.Object facade)
          Set an instance of a facade to become the data source
 

Method Detail

 

 

getType

public java.lang.Class getType()

In design time, this method will be used to reflect on the services that are available from the implemented data source

Returns:
the class of the facade


 

 

getDataSource

public java.lang.Object getDataSource()

Get an an instance for a data source facade that is initialized properly and whose services are available.
Note: this method may return null at design time using
if (java.beans.Beans.isDesignTime()) { return null; }
to prevent querying live data while designing the interface.

Returns:
an instance of the facde


 

 

setDataSource

public void setDataSource(java.lang.Object facade)

Set an instance of a facade to become the data source

Parameters:
facade - the data source


Package  Use  Tree  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD