0% found this document useful (0 votes)
34 views17 pages

APIs - TAFJ - AND - COMPLEX - Classess 5

The document introduces 'T' types, new classes for Java developers provided by Temenos, designed to be mutable and included in the TAFJClient.jar. It explains the use of TStructure as a generic container for complex types, TField for managing field values and errors, and the DataAccess class for accessing T24 data. Additionally, it covers the importance of T24Context for session management and the role of complex classes in grouping related information.

Uploaded by

Kumaravel A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views17 pages

APIs - TAFJ - AND - COMPLEX - Classess 5

The document introduces 'T' types, new classes for Java developers provided by Temenos, designed to be mutable and included in the TAFJClient.jar. It explains the use of TStructure as a generic container for complex types, TField for managing field values and errors, and the DataAccess class for accessing T24 data. Additionally, it covers the importance of T24Context for session management and the role of complex classes in grouping related information.

Uploaded by

Kumaravel A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

1

2
3
4
‘T’ types are new classes introduced by Temenos for Java developers. These are
available under TAFJClient.jar
This JAR can be found under TAFJ/Lib folder
The classes in the jar resides in TAFJ Framework Layer.
The reason for the T Types is to make them mutable. i.e. String is immutable

5
The TStructure is a generic container type used for record or complex type
parameters.
TStructure is not used to access data it is only used to construct instances of records
or complex types
Maps Transact data to java object

6
TField has getter and setter methods for field values, error as well as enrichments.

TField f1 = fr.getDebitCurrency();  get the value from field DEBIT.CURRENCY of


FUNDS.TRANSFER.
Setter can be used to set any value.

From the above e.g. f2.setError(); Setting the Error message if DEBIT.CURRENCY
and CREDIT.CURRENCY are not equal.

7
In above e.g. we are using TField to get the values of the fields from
FUNDS.TRANSFER record . If debit and credit currency are not the same, error is set
and response is returned using getValidationResponse();

8
The system.DataAccess class is a utility class to read, select and access data in T24.
The api.records package is used to hold records from T24 applications

9
The T24Context encapsulates the current session
All Hook classes are instances of T24Context
API classes must be constructed using a T24Context (“this”) to ensure that any
callbacks are made to the current session

DataAccess da = new DataAccess(this);

TAFJClient.jar is required in JAVA_PROJECT to establish the connection.(available in


TAFJ_HOME/lib).

10
This class packages data which is required to post the transaction request in
asynchronous mode

11
This class packages data which is required to post the transaction request in
asynchronous mode

12
Represents objects to be used for selection criteria in enquiry
In T24 terms, this is from the ENQ.DATA variable used in ENQUIRY BUILD.ROUTINEs in
T24.

13
A Complex class is a convenient way of grouping several pieces of related information
together. For e.g amount is represented as USD250 – consists of a Currency as well as
a value.

For e.g. the values(field name, operand, value) in a dynamic selection box of an
ENQUIRY is a set of related data (but not a record) and a complex class is used to hold
the values. com.temenos.t24.api.complex.eb.enquiryhook.FilterCriteria

15
16
17
18

You might also like