Simon See wrote:
> Dear Vic Cekvenich,
>     
>     This is regards to your recommendation of your DAOs implementation
>     found in BasicPortal.(You replied one of my forum questions).
>     Understand your are sponsoring some open source, I understand
>     you've got a full time job and BasicPortal is probably not of your
>     priority:)
>     
>     OK, I've downloaded your BasicPortal_05d. I suppose this is the
>     latest copy you've got? The DAO portion seems to be everywhere. Is
>     StoreBean and its StoreDAO the best sample to look at?

I think project task is a good example. See developmnt DOCO.

>     
>     A few other questions: -
>     
>     1. There are some commented code in StoreDAO like
>     "getRS().setTableName("store_items");" Is this done on purpose? It
>     seems your "develop.doc" says it should be otherwise.

Some JDBC drivers are not 3.0 compliant (Sybase) so it needs to know 
table name. When I have time to retest it, I will remove.

>     
>     2. The commit and rollback are empty....this is not
>     crucial...unless there is Transaction feature, right?
>     

Yes.

>     3. You seem to have implemented some connection pool mgmt? (from
>     codestudio.com), why didn't you use the poolMan?
>   

I do use poolman. But maybe switch to tomcat's dbcb.


>     4. This sort of cached RowSets are not too good at fetching
>     composite objects, huh? For example, loading of a Person object
>     requires the loading of all his Address objects? Got any sample
>     code snippets on this?

It is great for composite objects. You can do it with SQL join, since it 
supports ANY sql command.
And:
        You can have a bean that contains a bean.
                So you would have a person bean. And it contains address bean.
So you would say personBean.getAddressBean().getCity().
It works great on jsp.

>     
>     Also, one silly question, the package for BasicDAO seems to be
>     org.apache.commons.DAO, but I can't seem to find this in Jakarta? 
>     

Once I have a larger comunity, I plan to donate to Jakarta.
Everyone should use DAO interface, so people can implement DAO any way
the see fit.


>     Any help would be much appreciated.
>     
>     PS: Sorry, I ask a lot.

PLEASE ask a lot
(maybe you mvc-programers mail list)


> Thank you.
> 
> Simon See
> 
> [EMAIL PROTECTED]

> After hours: http://Necromanicide.iuma.com
> 


_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.netbean.net/mailman/listinfo/mvc-programmers

Reply via email to