Sunday, 12 April 2015

How to Apply Sequence in ADF Jdeveloper


It is advisable to use sequence number for each ADF BC Entity object and there need to be corresponding sequence number created for each database table in DB.
It is known as ‘Surrogate Key’ or ‘Primary Key’ of ADF BC.
There are various way of populating this key for ADF BC component and I am trying to give few of best practices.

1. Using Create() method of entity
There is create method in BC Entity Object that can be overidden to assign primary key. Go to java tab for ADF BC entity object and generate this java class and don’t forget to select Create Method check box.

image

After that go to DepartmentsImpl.java and search for create method and write the following statement of SequenceImpl
image
Disadvantage of this way is ,if transaction is rollback then sequence number is lost.
2.  Using DB Trigger
we can use DB trigger to assign the sequence to departmentid and the advantage of this usage is we will retain the sequence number even after transaction is rollback.
Go to department Entity object and set the department id to DbSequence.
Set Updatable to Never since we will not allow user to edit this value
Set refresh after to update because when we use trigger and create row ADF BC will automatically assign negative value to Department id and when we press commit then only it will run trigger and assign value to dept id.
That is why we will not loose sequence number when we do rollback.


Create Trigger using Declarative way
Create a trigger for Department id sequence , there is no need to write trigger ,it can be automatically created by jdeveloper.
image
Select the following
image
then select the sql tab and you will see that jdeveloper has automatically created trigger definition for you.
image
image
Now run appmodule and create department row and we will see that negative value is assigned to department id.
image
When we press commit it will generate department id and if we press rollback nothing happens and negative value is rollback instead of sequence number.
3. Using Groovy to generate sequence number.
Here we can write custom method in in custom entity impl class that will be implemented by ObjectNameEntityImpl.java.
don’t forget to select the expression.
call
adf.object.customMethodName(“SEQ_NAME”) – This method will call generic custom method name that will return the sequence number.
image
customMethodName definition will be same as point number one except it prototype will be
customMethodName(String SeqNumber){
//call step one code and return sequence number.
}
4. Fourth way is most easiest and no code required.
(new oracle.jbo.server.SequenceImpl("HR.DEPT_SEQ",adf.object.getDBTransaction())).getSequenceNumber()
image
Enjoy Primary Key !!!
image

Petrol Pump Managment Software

Petrol Pump Management Software 

Features
Accounts General Ledger
Accounts Payable
Accounts Receivable
Cash Management Management
Purchasing Inventory (Included Lube Shop)
Cash and Credit Sale
Customer Vehicle Data
Customer Oil Change Data
Mobile SMS to Customer on Filling, Bill Generation and Oil Change Notification.
Service Shop and Tyre Shop
Employee managemt

Reports
Accounting Voucher
Day book(Journal Book)
General Ledger
Trial Balance - Closing Balance
Trial Balance - Activity Periodic
Balance Sheet Statement
Profit Loss Statement
Purchase Note
Purchase Reports (Datewise, Partywise, Itemwise) with Graphs
Sale Bill
Sale Reports (Datewise, Customerwise, Itemwise, Vehicle Wise) with Graphs
Stocks Summary with Activity (Quantitative and With Value)
Stocks Summary Closing Balance (Quantitative and With Value)
Item Ledgers


Item Ledger WithValue
Employee Profile
Employee List
Employee Attendence
Employee Salary Generate

Pricing
The price for the implementation services provided under this recommended project will be USD 75/-



ADF Shoes Wholesale and Retail Managment System

ADF Shoes Wholesale and Retail Management System

List of Sub Module and Features in this Package
 
  • Financial Accounting System
  • Accounts Payable  
  • Accounts Receivable
  • Cash Management
  • General Ledger
  • Purchasing
  • Inventory Management System
  • Order Management System
  • Distributes Retail Management  System
  • Mobile Access (Android Based Ordering Application google play store)
  • Online and Web based Application.

Tools

ADF J Developer (11g)
Oracle Database (11g)
Oracle Developer (6i Retail Management Desktop Application)
Jasper Report Server
Wings FTP Server
Android Studio.

Pricing
The price for the implementation services provided under this recommended project will be USD 500/-

To Contact us:
wiztech2015@gmail.com


ADF Financial Accounting System (FAS)



Introduction to ADF (FAS)

All kind of organizations small scale, large scale organizations benefit from the implementation of ADF Customized financial module. The financial module is the core of many business software systems. It can gather financial data from various functional departments, and generates valuable financial reports such payable, receivable, cash management, general ledger, trail balance, as balance sheet and quarterly financial statements.

Features
  • Cash Management
  • General Ledger
  • Multi Segments of Business
  • Accounting Reports
  • Audit Trial
  • Balance Sheet

Tools
  • Oracle ADF J Developer (11g)
  • Oracle Developer 6i for Desktop Interface
  • Oracle Database 11g
  • Jasper Report Server

Pricing



The price for the implementation services provided under this recommended project will be USD 1000/-


To Contact Us :

E-Mail: wiztech2015@gmail.com