code_junkie

Should I have one class for every database I use?

Nov 12th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. private object GetOrderAttribute(string attributeName){
  2. // use a data structure (like a hash table) to store and access internally
  3. }
  4. ...
  5. output("Quantity: " + GetOrderAttribute("quantity"));
  6. // etc.
  7.  
  8. Method New Order(orderId) {
  9. Get Database 1 Details
  10. Load Details into appropriate Variables
  11. Get Database 2 Details
  12. Load Details into appropriate Variables
  13. Get Database **N** Details
  14. Load Details into appropriate Variables
  15. }
Add Comment
Please, Sign In to add comment