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

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

 
Christophe Grosjean
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • 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
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic