• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OCMJD .URLyBIRD 1.1.2 Version

 
Ajit Chauhan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got my assignment URLyBird 1.1.2 version

please help me to define the patter to follow in this assignment.

Spent 10 hrs but cannot come to the design pattern for this assignment.

Best Regard
Ajit
 
Roel De Nijs
Sheriff
Posts: 10213
129
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe a more concrete description of the problems you have?

To point you in the right direction you have an excellent book, a great paper and an outstanding forum with answers to all your possible questions.
 
Ajit Chauhan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanking you.
I appreciate your reply to guide me.

Best regard
Ajit
 
Ajit Chauhan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

My Assignment says your data Access class must be called Data.java
But As my project my classes are one for data locking with update, read and delete methods.
another for search ..
do it make effect .
do it mean i need to add locking& unlocking for search methods as well or can say Read, delete & update are data access and search can be different.



Ajit
 
Ajit Chauhan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one more in my mind..
My Database says just only rooms, and feature but no primary key.
How do I make primary key to access data for a particular hotel room.


please help.
 
Roel De Nijs
Sheriff
Posts: 10213
129
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1/ The class implementing the given interface must be called Data.java, so that's a must requirement and as you know: violating such a requirement will result in automatic failure. But you are free to delegate the actual implementation of some (or all) methods to other classes which will do the actual work (e.g. a FileAccess class for all crud-operations, a LockingManager for locking/unlocking)

2/ update and delete methods are the only 2 methods which should be preceded with a call to lock and followed by a call to unlock. So in other words: only records which are locked can be updated or deleted (and should always be unlocked afterwards).

3/ maybe you could use the position of the record in the database file as a primary key, because there is indeed no other given primary key.
 
Ajit Chauhan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanking you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic