CAF provides a DataSource for each business object node to access its attributes. It is automatically provided by CAF. For most business object node attributes, there is a field in the DataSource. Attributes of type BASE64BINARY or HEXBINARY language-dependent attributes and string attributes with length greater than 255, are not a part of the DataSource. For attributes of type DATETIME, CAF defines three fields in the DataSource:
· DATE
· TIME
· BIGINT (containing the time in milliseconds)
We have a business object node sap.com/school/Teacher. It has the following attributes:
Name |
Type |
key |
caf.core.services.Id |
createdBy |
caf.core.services.UserId |
createdAt |
caf.core.primitive.DATETIME |
modifiedAt |
caf.core.primitive.DATETIME |
createdBy |
caf.core.services.UserId |
name |
caf.core.primitive.STRING |
age |
caf.core.primitive.INT |
The DataSource that CAF would provide for this business object node would contain the following characteristics: (assume that CAF_BI_DATASOURCE_NAME_PREFIX = E41)
DataSource name: E41TeacherschoolfindByMultipl
Name |
SQL Type |
KEY |
VARCHAR |
CREATEDBY |
VARCHAR |
CREATEDATD |
DATE |
CREATEDATT |
TIME |
CREATEDAT |
BIGINT |
MODIFIEDATD |
DATE |
MODIFIEDATT |
TIME |
MODIFIEDAT |
BIGINT |
CREATEDBY |
VARCHAR |
NAME |
VARCHAR |
AGE |
INTEGER |