net.sf.sapjcosupport
Class SapSearchHelp
java.lang.Object
net.sf.sapjcosupport.SapJcoInterface
net.sf.sapjcosupport.SapSearchHelp
- Direct Known Subclasses:
- SapQLSupport
- public abstract class SapSearchHelp
- extends SapJcoInterface
This class implements the SAP Search Help functionality.
As any subclass of SapJcoInterface
, a value object is associated with this
implementation: SapSearchHelpVO
. This is a temporary value object, that can be mapped
to the value object of your choice automagically.
To do so, call the 'persistentObject' method with the class of the desired value object.
- Since:
- Mar 21, 2006 - 11:08:01 AM
- Author:
- Jo Vandermeeren
Method Summary |
List |
search(String searchHelpName,
String selectionMethod,
int maximumResults,
List criteria,
Class persistentObject,
List javaFieldSelection,
List sapFieldSelection)
Performs the actual search. |
Methods inherited from class net.sf.sapjcosupport.SapJcoInterface |
checkReturnStructure, convertMap, getFunction, mapOneField, mapRecordToEntity, performSapCall, retrieve, retrieve, retrieve, retrieve, setDataSource, setMaxParallelCalls |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.log4j.Logger log
SAP_DATE_FORMATTER
protected static final DateFormat SAP_DATE_FORMATTER
SapSearchHelp
public SapSearchHelp()
search
public List search(String searchHelpName,
String selectionMethod,
int maximumResults,
List criteria,
Class persistentObject,
List javaFieldSelection,
List sapFieldSelection)
- Performs the actual search. Call this method after you have set all necessary properties.
If the persistent object class was not set, instances of SearchHelpVO
are returned.
Each field in the 'javaFieldSelection' list should correspond with a field at the same position in the 'sapFieldSelection' list.
- Parameters:
searchHelpName
- name of the SAP search helpselectionMethod
- name of the selection method for the search helpmaximumResults
- maximum results to returncriteria
- list of SearchCriterion
objectspersistentObject
- value object classjavaFieldSelection
- list of the names of the Java value object fieldssapFieldSelection
- list of the names of the SAP function fields
- Returns:
- List containing the search results as instances of the same type as specified by 'persistentObject'.
- Throws:
IllegalArgumentException
- if the lists are null, empty or of different size; if the 'searchHelpName' or selectionMethod parameters are null
Copyright © 2006 null. All Rights Reserved.