Originally posted by Vince Hon:
My conern:
1. Is my concept correct regarding the use of DAO ?
2. If I have other biz method that ONLY existed in MySQL instead of Oracle, how to implement it ?
i.e;
//biz method only occur in MySQL
otherShopperMethod();
Do I need to add this in the abstract DAOFactory ? If yes, The OracleDAOFactory has to implement this even this method is always empty (this seems wrong).
3. Actually, I am designing a system with persistance storage, it is probably the data source will not be changed from the same biz logic. i.e. we always use MySQL storing the shopper info. However, we have to get other information from an Oracle database. In this case, there are 2 datasources serving 2 different business logic separately. Is the DAO pattern still apply there ? Could anyone suggest how to do this ?
Thanks
public ResultSet loadQuestions( String subjectId, String chapterId )
The Business Object that needs the Result set calls this method, gets the result set, converts the result set as XML & sends to GUI.
Is it a better design. I feel it's a bad way to return a ResultSet.
Can anyone guide me.
Originally posted by Marco K Paul:
Basically, the user selected a calculation type from a dropdown on the screen and in my business object, I have a switch statement that figures out which type of concrete instance to create. since i am using a switch statement, i know which params to pass in. this doesn't sound right to me :roll:
Originally posted by shri mon:
I get the following error when i try to use a cache.
org.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.hibernate.cache.OSCacheProvider
The entry which i have in the hibernate.cfg.xml is:
<property name="hibernate.cache.provider_class">net.sf.hibernate.cache.OSCacheProvider</property>
Thanks in advance.
Shrimon
Originally posted by Jim Tovar:
Thanks Stan, do you know if the jakarta validator project has uml documentation online? Just to save me a lot of work by looking directly to the design and not searching through all the code.
I�m giving a look to the sapia - vlad project� Does any one knows anything about it?