Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

book record and release record in B&S

 
mohini lalwani
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I provided two functionality in GUI to book and release record .

Which methods of SUN Interface I should called when I am going to book record and release record from GUI ?


let me know .

thanks
 
Bod Toki
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pramod...

I am afraid your question is not clear enough. Can you explain your problem clearer and more directly?

Thanks.

[ December 25, 2008: Message edited by: Bod Toki ]
[ December 25, 2008: Message edited by: Bod Toki ]
 
Matheus Mendes
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dude,

I believe that you don't have to call a specific method on the sun's interface. Those methods have the responsibility to manipulate the database.
To book the record you could have to following steps like :

1 - find ( calling find() method )
2 - update ( calling update() method )

Or you just have the position of the data in the file and just call

1 - update

Or even has a very complex process

1 - verify connection type
2 - remove record from memory
3 - update the gui
4 - verify data integrity
5 - update the record.


Well this is the way that I believe it is and my interpretation of your question.

Thanks
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the interface doesn't provide you the appropriate method, you can create your own interface that extends the interface provided by Sun and add the new method. That was how I had done in my URLyBird assignment.

Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic