Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

row.setAttribute(Date,Date)

351065Oct 22 2002
Good morning.

I need to know how to employ the setAttribute method in Row Class. I have an attribute in my DataBase of Date type, and I require to insert a Date object. My code is the following:

ViewObject vo = ...
Row r = vo.createRow();
SimpleDateFormat formatter1 = new SimpleDateFormat ("dd-MM-yyyy");
setAttribute("EventDate",new Date((formatter1.format(eventdate)).toString()));
//eventdate is an String that gets the date
//EventDate is the atribute of type Date in DataBase

vo.insertRow(r);
Module.applicationModule().getTransaction().commit();


Note: I can4t use the <jbo:setAttribute> tag because that interacts only with view and I need to update the tables in the DataBase. When I try to update the view appears an error.

Please help me, I need that urgently. Thanks.

Oscar Romero.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2002
Added on Oct 22 2002
1 comment
505 views