• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX (Contractors v2.1.1) : Database access from GUI

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a question about requirements. I saw several times in this forum the following requirement for the database : the public methods of the database interface must be called by the client! Does it means that the database interface must be made Remote ?
Well, in fact, in my instructions, I see that the GUI client must connect to the database. But that's all..
Does it mean that I can use a remote Server object on which I can implement a Facade pattern (like the session facade EJB pattern), i.e. make a unique method on the server to which I pass an action to perform ?
Thx for any answer,
Christophe
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Christophe,
Well, there are some subtle differences in the assignment instructions that people get (I think you're only guaranteed that they will be the same if you have the same assignment and the same assignment version, e.g, 2.3.3). Your assignment instructions are the only ones that should matter for you. If you don't have the instruction you quoted: "the public methods of the database interface must be called by the client" then you are free to implement a 3-tier design as you propose.
 
Christophe Grosjean
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
If someone who has the same assignment version (2.1.1) can confirm my understanding of the requirements...
Christophe
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Christophe,
As George says, some assignments did explicitly state that the client must call the same methods as present in the Data class (note that this is slightly different from saying that Data class must be remote). The exact instructions I had in my assignment were: "you should create a client program [which] should include a class that implements the same public methods as the suncertify.db.Data class".
Most of the NX assignments seem to allow a more more flexible interpretation. Take a look at the (long) thread " Should lock methods be callable by the client" - that goes through many of the areas that are open for interpretation, and offers many interpretations on them . Once you have read it, you will be able to look for similar instructions in your instructions file, and make up your own mind. The important thing is that you must justify your decision in your design decisions document.
Regards, Andrew
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic