|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelationalBinding
A representation of the model object 'Relational Binding'.
The following features are supported:
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getExtraTables()
Returns the value of the 'Extra Tables' attribute list. |
java.lang.String |
getSelect()
Returns the value of the 'Select' attribute. |
java.lang.String |
getWhere()
Returns the value of the 'Where' attribute. |
void |
setSelect(java.lang.String value)
Sets the value of the ' Select ' attribute. |
void |
setWhere(java.lang.String value)
Sets the value of the ' Where ' attribute. |
Method Detail |
---|
java.lang.String getSelect()
""
.
This is the content of the SELECT statement.
setSelect(String)
void setSelect(java.lang.String value)
Select
' attribute.
This is the content of the SELECT statement.
value
- the new value of the 'Select' attribute.getSelect()
java.lang.String getWhere()
""
.
This is the content of the WHERE clause.
setWhere(String)
void setWhere(java.lang.String value)
Where
' attribute.
This is the content of the WHERE clause.
value
- the new value of the 'Where' attribute.getWhere()
java.util.List<java.lang.String> getExtraTables()
String
.
This is the list of extra tables of a business object.
Extra tables are included in the query (by a join in the SQL expression) when returning values for the business
object.
The list of extra tables is a subset of tables displayed in the information design tool. Extra tables are not
used in SELECT and WHERE expressions.
If a table is added and this table is part of these expressions, no error is raised. If the
business layer is reloaded, this table will not be part of tables of getExtraTables()
.
An exception will be thrown at save time if a table cannot be found in data foundation or if a table is added more
than once.
If qualifier or owner has to be specified, both have to be appended to the name, even if qualifier or owner is
not supported by the database.
You can use the add
operator to append the new extra table to the end of this list. For example:
getExtraTables().add("City")
if qualifier is null, owner is null.getExtraTables().add("Warehouse.dbo.City")
if qualifier="Warehouse", owner="dbo".getExtraTables().add("Warehouse."".City")
if qualifier="Warehouse" and owner not supported.getExtraTables().add("\"Ware house\".dbo.City")
if qualifier="Ware house", owner="dbo" and
name="City".getExtraTables().add("\"Ware\"\"house\".dbo.\"Ci.ty\"")
if
qualifier="Ware"house", owner="dbo" and name="Ci.ty".
If the qualifier, owner or table name contains a period (.), a double quote (") or a space, it must be quoted. A double quote inside a qualifier, owner or table name must be doubled.
See DataFoundationService.getTableFullName(com.sap.sl.sdk.authoring.datafoundation.Table)
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |