External Class
My application uses two databases possibly on same database server . One for PegaRULES Database (RULES and DATA Schemas) and other for Case and transactional or Data tables ( which is considered as an external database right ?)
Say, if i have a Data class that points to a table in external database with no pzInsKey or pxObjClass defined in the table (it is considered as a external class ??).
Pega Help says,
No inheritance or rule resolution applies to external classes, even if the class name contains a dash character. Each external class has an associated database table instance (Data-Admin-DB-Table class) and so cannot be part of a class group.
Does that mean if i have a class XYZ-FW-Data-Employee which points to a table in external database( which do not contain pzInsKey & pxObjclass) It cannot inherit properties from the class XYZ-FW-Data ?
In the same example if the table has pzInsKey and pxObjClass properties, Can it inherit from the parent class ??
In either of two scenario's above, if the application is deployed as an enterprise application (i.e. on a web sphere and Oracle DB ) should it use XA JDBC drivers to commit in multiple tables in two databases as a transaction ?
Please clarify..
Thanks
Hi Pavan,
I have tested this scenario using Database class mappings it works fine as per your expectation. Please find below the steps :
1) I have created an external table under a separate schema with the four columns :
create table Externalschema.externaltable (firstname varchar2(200),lastname varchar2(200), DOB Date,Department varchar2(200));
2) Then i have created the external Data base class mappings:
I have created a new Database with the name External schema and i have mapped the above created schema and table here. I have also mapped Ravi-Testsect-Data-ExternalTable class to this table.
Hi Pavan,
I have tested this scenario using Database class mappings it works fine as per your expectation. Please find below the steps :
1) I have created an external table under a separate schema with the four columns :
create table Externalschema.externaltable (firstname varchar2(200),lastname varchar2(200), DOB Date,Department varchar2(200));
2) Then i have created the external Data base class mappings:
I have created a new Database with the name External schema and i have mapped the above created schema and table here. I have also mapped Ravi-Testsect-Data-ExternalTable class to this table.
To test the inheritance i have created a property called Test under Ravi-TestSect-Data class then i have navigated to the Property tree tab selected Applies to class as Ravi-TestSect-Data-Externaltable , selected include inherited properties checkbox and ran it . I was able to see the Test property as well. From this we can conclude that by using Database table class mapping we can achieve inheritance for the classes mapped to external table.
Please mark this if you feel this as a correct response for your query.
Regards,
Ravi