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

FBNS: Data client must implement all public methods of Data.java??

 
Ian Wark
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I am wondering if this requirement means that I need to implement methods
such as lock and unlock in the client as well. It seems to me that it would
only be an annoyance for the client to be able to call such methods. Or am I wrong?

I have noticed that others have had a similar issue in the past and who have simply implemented these methods to satisfy the requirements (without providing any GUI support to call such methods). But I am concerned that this will introduce the possibility of error into the locking framework.

Any ideas on this?
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The data client you present to the GUI controller is not Data, and it shouldn't be capable of doing any more than it needs to. It may be yet another interface, and it may have a bookFlight method, and a remote implementation could call lock and unlock, while a local one would just go ahead and make the booking.
 
Ian Wark
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ta Ri Ki Sun,

I am very happy with the idea of having a client that only exposes methods it needs. If it were me I would only have methods like e.g. find and criteriaFind, add, modify, bookSeats, unbookSeats, and delete in the client.
I don't think I need the rest.

The problem is that the specs seem to be saying I have to implement every public method in Data.java. Yes, I can do this in another interface. Yes, I can add more to that interface for my convenience.

But I get the feeling that the answer is no to: "Can I choose not to include public methods with the same signature as those provided in Data.java.

Sorry for sounding pedantic, but is it possible to confirm this?
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ian Wark:
Hi Ta Ri Ki Sun,

I am very happy with the idea of having a client that only exposes methods it needs. If it were me I would only have methods like e.g. find and criteriaFind, add, modify, bookSeats, unbookSeats, and delete in the client.
I don't think I need the rest.

The problem is that the specs seem to be saying I have to implement every public method in Data.java. Yes, I can do this in another interface. Yes, I can add more to that interface for my convenience.

But I get the feeling that the answer is no to: "Can I choose not to include public methods with the same signature as those provided in Data.java.

Sorry for sounding pedantic, but is it possible to confirm this?


I think you misunderstood my post, I'll try to clarify.
You must implement all the methods of DBMain in Data, no getting around that, however, you don't have to give the client access to DBMain at all. This gives you the opportunity to
If it were me I would only have methods like e.g. find and criteriaFind, add, modify, bookSeats, unbookSeats, and delete in the client

In my case I don't even need delete, or add or modify for that matter. So a client can use my newly created interface, ie DataFacade, which has methods like bookSeats for example. DataFacade or rather an implementation of this interface will have an implementation of DBMain, Data, to work with, and be able to modify the records. Hope that helps
 
Ian Wark
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ta Ri Ki Sun,

I think part of my problem is that I don't get the nuances of the Japanese specs. After reading it 10,000 times I think I finally understand what it is saying. Just that the client interface has to make use of the public methods of Data.java and not public methods of some other class.

Thanks for bearing with me on that one.
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ian Wark:
Thanks Ta Ri Ki Sun,

I think part of my problem is that I don't get the nuances of the Japanese specs. After reading it 10,000 times I think I finally understand what it is saying. Just that the client interface has to make use of the public methods of Data.java and not public methods of some other class.


ouch


Thanks for bearing with me on that one.

No problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic