|
SAP NetWeaver 7.4 SP03 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.aii.af.service.cpa.TableData
public class TableData
Attribute extended CPAObjects (i.e. currently only the Channel object) support CPA Cache specific data types, besides
the following basic Java types: String, int, long and boolean. The data fields of the adapter type specific Channel
object can be defined through the adapter type meta data (schema). Currently supported additional data types are the
BinaryData and TableData objects. Such data fields can be read from a Channel object by
the attribute name (defined in the schema), using the methods getValueAsBinary or
getValueAsTable. The adapters using the CPA Cache service API should never need to create the
described data container objects and should always retrieve them from a given Channel object, instead.
The TableData object is a container for table data, which can be read from the Channel object, as
configured in the Integration Directory or PCK configuration UI. TableData represent a table instance,
as defined in the adapter specific meta data (schema). It offers some basic methods to retrieve data from the tables
rows and columns. This rudimentary table implementation does not support key columns (unique column value check).
BinaryData,
Serialized Form| Nested Class Summary | |
|---|---|
class |
TableData.Row
The inner class Row represents one row of the table. |
| Field Summary | |
|---|---|
protected LinkedList<String> |
columnNames
|
protected LinkedList<TableData.Row> |
rows
|
| Constructor Summary | |
|---|---|
TableData(LinkedList<String> columnNames)
The default constructor for the TableData object. |
|
TableData(String tableName,
LinkedList<String> columnNames)
The constructor for the TableData object. |
|
| Method Summary | |
|---|---|
void |
addRow(TableData.Row row)
Adds a row to the table. |
Object |
clone()
This method clones the structure of the given table. |
LinkedList |
getColumnNames()
Returns a list of all column names, defined for this table. |
TableData.Row |
getRow(int rowNumber)
Returns a Row by index. |
int |
getRowCount()
Returns the amount of currently stored rows in this table. |
LinkedList<TableData.Row> |
getRows(String fieldName,
String fieldValue)
Returns all Rows, where the specified column name contains a given value. |
String |
getTableName()
Returns the name of the table. |
String |
retrieveTableValueByKeyColumn(String columnName,
String keyColName,
String keyColValue)
Returns the value of the given column name from a Rows, where the specified key column name matches the given key value (first occurrence). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LinkedList<String> columnNames
protected LinkedList<TableData.Row> rows
| Constructor Detail |
|---|
public TableData(LinkedList<String> columnNames)
TableData object. Using this cunstructor, the table name remains
undefined.
columnNames - A LinkedList containing the tables column names.
public TableData(String tableName,
LinkedList<String> columnNames)
TableData object. This constructor creates a named table instance.
tableName - The name of the table.columnNames - A LinkedList containing the tables column names.| Method Detail |
|---|
public String getTableName()
public LinkedList getColumnNames()
LinkedList of column names.public int getRowCount()
public void addRow(TableData.Row row)
row - The Row to add to the table.public TableData.Row getRow(int rowNumber)
rowNumber - The number of the Row to return.
public LinkedList<TableData.Row> getRows(String fieldName,
String fieldValue)
fieldName - The column name, for which the value is to be checked.fieldValue - The value for which the content of the column specified by the fieldName parameter is to be
checked.
LinkedList containing all Rows where the content of the checked column matched the given
value.
public String retrieveTableValueByKeyColumn(String columnName,
String keyColName,
String keyColValue)
columnName - The column name, for which the value is to be returned, in case that the content of the given
keyColName column matches the keyColValue.keyColName - The column name, for which the content is to be checked for the given keyColValue.keyColValue - The value for which the content of the given keyColName column is to be checked.
null.
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class Object| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
|
SAP NetWeaver 7.4 SP03 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||