0

I need to build a data access layer and I am looking for the right design pattern.

what I need is:

  1. object mapping: it shouldn't be too complicated and not generic.
  2. I have a lot of look up tables and I need to a good way to load them. I don't care about starting time (when the program starts up), what I care is to minimizing the number of connections to the db and on the other hand not killing the virtual memory.
  3. relationships: I have a lot of connected objects which relate to each other and I need a generic way to load as much as relationships as I want.

Number 2(above) is most critical for me. Any suggestions?

Thanks

4
  • I'd recommend trying to rewrite this - it's hard to work out what you're trying to say. Foxes? Chunky bacon? I'm confused. Commented Aug 21, 2010 at 11:00
  • probably means "focus on number 2 as its the most critical" Commented Aug 21, 2010 at 16:30
  • shuky, are you interested in writing everything on your own, or would a framework that does most of what you want (like Hibernate) be acceptable? Commented Aug 22, 2010 at 15:10
  • I also agree that more precise description is necessary. Commented Aug 26, 2010 at 10:37

1 Answer 1

1

It looks like the Facade pattern could be used here.

and maybe the Singleton pattern too.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.