Insert Rows in ADF View Object Programatically

Suppose that I have EmpVO view object which have below attributes
EmpId, FirstName, LastName

We can do inserting rows by two ways in data model layer (Application Model or View Object classes)
I will write my code in ApplicationModuleImpl class

try
{
	ViewObject vo=this.getEmpVO();
	Row r=vo.createRow();
	r.setAttribute("EmpId","id#1");
	r.setAttribute("FirstName","fn#1");
	r.setAttribute("LastName","ln#1");
	vo.insertRow(r);
	this.getDBTransaction().commit();
}catch(Exception e){
	e.printStackTrace();
}

About Vineet Verma

Developer/Blogger/Gamer/Lazy Couch Potato...:P Need PDF Books: Knowledge Base
This entry was posted in Oracle, Oracle ADF and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s