• 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

OCMJD .URLyBIRD 1.1.2 Version

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanking you very much.
reply
    Bookmark Topic Watch Topic
  • New Topic