|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
IExecution interface
The interface IQuery allows a connector client application to perform
queries using java API or using a given query string in the Connector
Framework SQL language (only a subset of SQL language). The Connector
Framework supports the following query syntax: SELECT
ObjectUniqueName1.attribute1[, ObjectUniqueName2.attribute2...] FROM
ObjectUniqueName1 [AS A] [INNER JOIN ObjectUniqueName2 [AS B] ON {A.
attribute1=B. attribute2, blackbox token}..] [WHERE A.attribute1 = value1
[AND B.attribute2 = value2 ..]]. ObjectUniqueName may contain dots
as well. Aliases for object names are supported. Attributes from more than
one object can be selected. More than one join may appear in the
FROM clause. Only simple criteria (=value) may appear in
WHERE clause
| Method Summary | |
void |
applyCondition(java.lang.String businessObjectName,
java.lang.String attributeName,
java.lang.Object attributeValue)
Deprecated. Apply a condition combined of an attribute and a value. |
void |
applyCondition(java.lang.String businessObjectName,
java.lang.String attributeName,
java.lang.Object attributeValue,
IOperator conditionOperator)
Deprecated. Apply a condition combined of an attribute and a value. |
boolean |
execute()
Deprecated. Use IExecution.execute(IOperation) |
boolean |
execute(java.lang.String queryString)
Deprecated. Use IExecution.execute(IOperation) |
java.util.List |
getSelectedAttributes(java.lang.String businessObjectName)
Deprecated. Returns the list of attributes of the given object in this query. |
void |
join(java.lang.String relation)
Deprecated. Perform a join using a EIS relation |
void |
join(java.lang.String sourceBusinessObject,
java.lang.String sourceAttribute,
java.lang.String targetBusinessObject,
java.lang.String targetAttribute)
Deprecated. Perform a join using a the defualt implementation for relations |
boolean |
nextRecordSet()
Deprecated. Moves to the next record set. |
java.lang.String |
retrieveQueryString()
Deprecated. Returns the current query string, for debug purposes |
IRecordSet |
retrieveRecordSet()
Deprecated. Returns the current record set. |
void |
setObjectAlias(java.lang.String objectName,
java.lang.String alias)
Deprecated. Sets an alias to a certain object |
void |
setSelectedAttributes(java.lang.String businessObjectName,
java.util.List attributesList)
Deprecated. Set a list of attributes of a certain object for the resultSet of this query. |
| Methods inherited from interface com.sapportals.connector.execution.objects.IAbstractQuery |
cancel, retrieveQueryChunkSize, retrieveQueryTimeOut, setQueryChunkSize, setQueryTimeOut |
| Method Detail |
public IRecordSet retrieveRecordSet()
throws ConnectorException
IRecordSet is
a set of rows (a subset of java.sql.ResultSet). The number
of rows in every record set is determined using the method
setQueryChunkSize(). The default is one row per record set.
public boolean nextRecordSet()
throws ConnectorException
IRecordSet is a
set of rows (a subset of java.sql.ResultSet). The number of
rows in every record set is determined using the method
setQueryChunkSize(). The default is one row per record set.
public boolean execute(java.lang.String queryString)
throws InvalidQueryStringException,
QueryExecutionException,
ConnectorException
IExecution.execute(IOperation)
queryString - An EIS well formed query string.isSynchronous - Determines whether the query will be executed
synchrnouslyInvalidQueryStringException - QueryExecutionException -
public boolean execute()
throws QueryExecutionException,
ConnectorException
IExecution.execute(IOperation)
QueryExecutionException -
public void setSelectedAttributes(java.lang.String businessObjectName,
java.util.List attributesList)
throws ObjectNotFoundException,
AttributeNotFoundException,
ConnectorException
SELECT name,address FROM customers -->
name,address are the attributes for the customers object.businessObjectName - The object name to which these attributes
belong.attributesList - A list of attributes to return in the resultSet.ObjectNotFoundException -
public java.util.List getSelectedAttributes(java.lang.String businessObjectName)
throws ObjectNotFoundException,
ConnectorException
businessObjectName - The name of the object.ObjectNotFoundException -
public void setObjectAlias(java.lang.String objectName,
java.lang.String alias)
throws ObjectNotFoundException,
ConnectorException
objectName - the name of the objectalias - the alias givenObjectNotFoundException -
public void applyCondition(java.lang.String businessObjectName,
java.lang.String attributeName,
java.lang.Object attributeValue)
throws ObjectNotFoundException,
AttributeNotFoundException,
InvalidConditionException,
ConnectorException
SELECT name FROM customers WHERE id=333 --> id is the
attribute and 333 is the value.businessObjectName - The name of the object.attributeName - The name of the attribute.attributeValue - The value of the attribute.ObjectNotFoundException - AttributeNotFoundException - InvalidConditionException -
public void applyCondition(java.lang.String businessObjectName,
java.lang.String attributeName,
java.lang.Object attributeValue,
IOperator conditionOperator)
throws ObjectNotFoundException,
AttributeNotFoundException,
InvalidConditionException,
ConnectorException
SELECT name FROM customers WHERE id=333 --> id is the
attribute and 333 is the value.
- Parameters:
businessObjectName - The name of the object.attributeName - The name of the attribute.attributeValue - The value of the attribute.conditionOperator - the operator of the condition- Throws:
ObjectNotFoundException - AttributeNotFoundException - InvalidConditionException -
public void join(java.lang.String sourceBusinessObject,
java.lang.String sourceAttribute,
java.lang.String targetBusinessObject,
java.lang.String targetAttribute)
throws ObjectNotFoundException,
AttributeNotFoundException,
ConnectorException
sourceBusinessObject - the source business objectsourceAttribute - the source attributetargetBusinessObject - the target business objecttargetAttribute - the target attributeObjectNotFoundException - AttributeNotFoundException -
public void join(java.lang.String relation)
throws InvalidRelationException,
ConnectorException
relation - The relation string to use for the joinpublic java.lang.String retrieveQueryString()
|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||