A sample ADF BC application based on StoredProcedure
Sometimes you may need to use stored procedures/functions to read/write data from underlying tables. You can still leverage the benefits of ADF persistence layer by smartly wrapping the stored procedures using ViewObjects and EnityObjects. I’m sharing a sample ADF BC application that uses stored procedures for reading and writing to the table. Solution is simple and straight forward... 1. Create an EntityObject and override the below methods protected void doSelect(boolean lock) protected void doDML(int operation, TransactionEvent e) Please refer the below topic in Fusion Developer's Guide to learn more … 38.5 Basing an Entity Object on a PL/SQL Package API 2. Define a ViewObject based on the above EntityObject. Override the below 'life cycle methods' to inject your custom code(for populating data form a REF CURSOR). protected void create() protected void executeQueryForCollection(Object qc, Object[] params, int numUserParams) protected ViewRowImpl c...