• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

B&S Doubts

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Q.1 In GUI I am providing search for Name , location ,name or location , name and location

I am not provding search for services . Is it okay ?

Application Overview is written

In the future, Bodgitt and Scarper wants to move into Internet-based marketing, and hopes to be able to provide their services directly to customers over the web.

But in User Interface written

"It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user."

So it is not clear from spec that search should be for services ?
what to do?

Q.2 How to implement logging in project ? did you create log file and put all log messages in that or you are displaying log messages on consoloe ?

Q.3 I just declared DuplicateKeyException as signature of create method but create method is not throwing DuplicateKeyException .
is it okay ?


Q.4 For locking I am using java.util.concurrent.locks.Lock . I am not using threads for locking is it okay ?
Should I go for threads ?

Q.5 How to check is there any deadlock in locking ? I know we have to avoid deadlock to happen but how can I make sure there is no deadlock ?


Q.6 When user does not enter any text in Name and Location text boxes in GUI and click on Search still I am returning all records in JTable.
Is it okay ?

Q.7 Should we provide drop down for Name and Location in GUI or text boxes are enough ?



Please reply
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pramod.

There are a lot of questions here to answer.

I will try and answer a few as best I can. Other questions can be answered from taking a look through the forum.

In the future, Bodgitt and Scarper wants to move into Internet-based marketing, and hopes to be able to provide their services directly to customers over the web.
But in User Interface written

"It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user."

So it is not clear from spec that search should be for services ?
what to do?



I think this is just an interpretation of the specification, the way it is worded can be difficult for people not fluent in English.

Sun are not asking for web services here, just a search requirement of name and/or location on the Contractor file.


Q.2 How to implement logging in project ? did you create log file and put all log messages in that or you are displaying log messages on consooe ?



The logging you provide on the project must come from the Java 2 platform.. take a look at the logging facilities provided by Java.


Q.3 I just declared DuplicateKeyException as signature of create method but create method is not throwing DuplicateKeyException .
is it okay ?



Depending on your particular assignment and your interpretation of the spec you may or may not throw a DuplicateKeyException . In certain circumstances I throw a DataAccessException as this seems more natural . Just make sure you put any design choices like this in your choices.txt file.


Q.4 For locking I am using java.util.concurrent.locks.Lock . I am not using threads for locking is it okay ?
Should I go for threads ?

Q.5 How to check is there any deadlock in locking ? I know we have to avoid deadlock to happen but how can I make sure there is no deadlock ?



There are quite a few recent threads on this subject in the forum and also an excellent test class provided by Robert "JohnLennon" Perillo you can tailor to your needs.


Q.6 When user does not enter any text in Name and Location text boxes in GUI and click on Search still I am returning all records in JTable.
Is it okay ?



For me this is okay and I would search entire table as no search criteria has been passed.


Q.7 Should we provide drop down for Name and Location in GUI or text boxes are enough ?



This is a design decision you will have to make. Just make sure you document these sort of decions in your choices.txt file.

Cheers Kevin


 
pramod karnani
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kevin Appreciate you
 
The only thing that kept the leeches off of me was this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic