update bean from dbmanager

View: New views
1 Messages — Rating Filter:   Alert me  

update bean from dbmanager

by dk-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hello everyone,

I'm a new user to Rife and try to do something. I want to update a
bean instance like a student bean through the corresponding dbmanager
instead of writing something like that

DbQueryManager manager = new DbQueryManager(getDatasource());
Update update = new
Update(getDatasource()).table(TABLE_NAME_EXAM).where("examid", "=",
exam.getExamId().intValue())

.field("netKimya1", exam.getNetKimya1())
.field("netKimya2", exam.getNetKimya2())
.field("netBiyoloji1", exam.getNetBiyoloji1())
.field("netBiyoloji2", exam.getNetBiyoloji2());

int a = manager.executeUpdate(update);

thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web