|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.customds.AbstractCustomDataSource
public abstract class AbstractCustomDataSource
AbstractCustomDataSource is an abstract implementation class for CustomDataSource.
This class provides default implementation for a few methods in CustomDataSource. Methods
that require plug-in specific implementation must be implemented by plug-in developers.
| Constructor Summary | |
|---|---|
AbstractCustomDataSource()
|
|
| Method Summary | |
|---|---|
void |
clean()
Default empty implementation. |
int |
getChunkSize()
Returns the default chunk size. |
java.util.Map |
getDSParameters(java.util.Map currentDSParams)
Returns null. |
void |
init(CustomDataSourceInfo customDataSourceInfo)
Stores the complete CustomDataSourceInfo information. |
boolean |
isDataSourceParamsComplete(java.util.Map currentDSParams)
Returns true. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.businessobjects.customds.CustomDataSource |
|---|
getColumnsInfo, getCustomDataProvider, getExtensionBaseDescriptor |
| Constructor Detail |
|---|
public AbstractCustomDataSource()
| Method Detail |
|---|
public void clean()
clean in interface CustomDataSourceCustomDataSource.clean()
public int getChunkSize()
throws DataSourceException
getChunkSize in interface CustomDataSourceDataSourceException - If the plug-in encounters any Exception while trying to get the size of chunk.CustomDataSource.getChunkSize(),
DataSourceException
public java.util.Map getDSParameters(java.util.Map currentDSParams)
throws DataSourceException
null.
If this method is not overridden by the plug-in, then it indicates that the processing layer plug-in does not have any information to be sent to UserInterface plug-in.
getDSParameters in interface CustomDataSourcecurrentDSParams - The Map that contains the data source parameters.
Map object.
DataSourceException - if the plug-in encounters any
Exception while trying to build the additional set of information required to access the data source.
Plug-in must mask handled exceptions as DataSourceException by using one of its types.CustomDataSource.getDSParameters(java.util.Map),
DataSourceException
public void init(CustomDataSourceInfo customDataSourceInfo)
throws DataSourceException
CustomDataSourceInfo information.
Sub-classes can access this information through the member variable customDataSourceInfo.
init in interface CustomDataSourcecustomDataSourceInfo - The custom data source information.
DataSourceException - if the plug-in encounters any Exception while processing the initial set of information. Plug-in must mask handled exceptions
as DataSourceException by using one of its constructors. Most common DataSourceException can be either missing or invalid source (ErrorCodes.MINOR_FILE_MISSING
or ErrorCodes.MINOR_INVALID_FILE_PATH).CustomDataSource.init(com.businessobjects.customds.common.CustomDataSourceInfo),
CustomDataSourceInfo,
DataSourceException
public boolean isDataSourceParamsComplete(java.util.Map currentDSParams)
throws DataSourceException
true.
If this method is not overridden by the plug-in, then it indicates that the processing layer plug-in does not require User Interface.
isDataSourceParamsComplete in interface CustomDataSourcecurrentDSParams - The custom data source information.
true
DataSourceException - if the plug-in encounters any Exception while trying to verify if the user input is complete.
The plug-in must mask handled exceptions as DataSourceException by using one of its constructors.CustomDataSource.isDataSourceParamsComplete(java.util.Map),
DataSourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||