• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

update method of B &S

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ALL,
When update method will be called which field be updated ?
Any field from record ?

and when it should get called ?
When user is trying to book contractor record .

please let me know
 
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends. You only must provide update method interface but you don't need to implement it in your GUI. To book the room, I create my own interface that extends the DBMain interface.

Good Luck !!!

Jeffry Kristianto Yanuar (Java Instructor)
SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what we need
evden eve nakliyat what will we do
evden eve nakliyat or not to do
evden eve nakliyat just move

[ December 24, 2008: Message edited by: matta matta ]
[ December 24, 2008: Message edited by: matta matta ]
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what we need



What the?!?!

Anyway, what my good buddy Jeffry did is one good option, certainly. He created a custom bookRoom method in an interface that extends the DBMain interface. Now, about the update method, you have to implement it in a way such that the record that corresponds to a particular record number is updated with the data of the String array that you receive in your update method. What I did: I used the update method of the Data class to book rooms (updating only the owner ID field) in the business/services layer, where I lock/update/unlock the record that corresponds to the room being booked. And for that, I send a String array (including the owner ID field) with the data of the room being booked to the update method of the Data class.
 
I love a good mentalist. And so does this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic