IExecution interfacepublic interface IQuery extends IAbstractQuery
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| Modifier and Type | Method and Description |
|---|---|
void |
applyCondition(String businessObjectName,
String attributeName,
Object attributeValue)
Deprecated.
Apply a condition combined of an attribute and a value.
|
void |
applyCondition(String businessObjectName,
String attributeName,
Object attributeValue,
IOperator conditionOperator)
Deprecated.
Apply a condition combined of an attribute and a value.
|
boolean |
execute()
Deprecated.
|
boolean |
execute(String queryString)
Deprecated.
|
List |
getSelectedAttributes(String businessObjectName)
Deprecated.
Returns the list of attributes of the given object in this query.
|
void |
join(String relation)
Deprecated.
Perform a join using a EIS relation
|
void |
join(String sourceBusinessObject,
String sourceAttribute,
String targetBusinessObject,
String targetAttribute)
Deprecated.
Perform a join using a the defualt implementation for relations
|
boolean |
nextRecordSet()
Deprecated.
Moves to the next record set.
|
String |
retrieveQueryString()
Deprecated.
Returns the current query string, for debug purposes
|
IRecordSet |
retrieveRecordSet()
Deprecated.
Returns the current record set.
|
void |
setObjectAlias(String objectName,
String alias)
Deprecated.
Sets an alias to a certain object
|
void |
setSelectedAttributes(String businessObjectName,
List attributesList)
Deprecated.
Set a list of attributes of a certain object for the resultSet of this
query.
|
cancel, retrieveQueryChunkSize, retrieveQueryTimeOut, setQueryChunkSize, setQueryTimeOutIRecordSet 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.ConnectorException - if connection is nullboolean 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.ConnectorException - if connection is nullboolean execute(String queryString) throws InvalidQueryStringException, QueryExecutionException, ConnectorException
IExecution.execute(IOperation)queryString - An EIS well formed query string.InvalidQueryStringException - if query string is invalidQueryExecutionException - if query execution failedConnectorException - if connection is nullboolean execute()
throws QueryExecutionException,
ConnectorException
IExecution.execute(IOperation)QueryExecutionException - if query execution failedConnectorException - if connection is nullvoid setSelectedAttributes(String businessObjectName, 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
belongattributesList - a list of attributes to return in the resultSetObjectNotFoundException - if object not foundAttributeNotFoundException - if attribute not in a given rangeConnectorException - if connection is nullList getSelectedAttributes(String businessObjectName) throws ObjectNotFoundException, ConnectorException
businessObjectName - the name of the objectObjectNotFoundException - if object not foundConnectorException - if connection is nullvoid setObjectAlias(String objectName, String alias) throws ObjectNotFoundException, ConnectorException
objectName - the name of the objectalias - the alias givenObjectNotFoundException - if object not foundConnectorException - if connection is nullvoid applyCondition(String businessObjectName, String attributeName, 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 objectattributeName - the name of the attributeattributeValue - the value of the attributeObjectNotFoundException - if object not foundAttributeNotFoundException - if attribute not in a given rangeInvalidConditionException - if condition is invalidConnectorException - if connection is nullvoid applyCondition(String businessObjectName, String attributeName, 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.businessObjectName - the name of the object.attributeName - the name of the attribute.attributeValue - the value of the attribute.conditionOperator - the operator of the conditionObjectNotFoundException - if object not foundAttributeNotFoundException - if attribute not in a given rangeInvalidConditionException - if condition is invalidConnectorException - if connection is nullvoid join(String sourceBusinessObject, String sourceAttribute, String targetBusinessObject, String targetAttribute) throws ObjectNotFoundException, AttributeNotFoundException, ConnectorException
sourceBusinessObject - the source business objectsourceAttribute - the source attributetargetBusinessObject - the target business objecttargetAttribute - the target attributeObjectNotFoundException - if object not foundAttributeNotFoundException - if attribute not in a given rangeConnectorException - if connection is nullvoid join(String relation) throws InvalidRelationException, ConnectorException
relation - The relation string to use for the joinInvalidRelationException - if relation is invalidConnectorException - if connection is nullString retrieveQueryString()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/connectivityfw/api
|
api
|
EP-PIN
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
-
|
EP-CON-CF
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
default
|
EP-CON-CF
|
Copyright 2021 SAP SE Complete Copyright Notice