[Opensource] dbobject.getTargetTable() deprecation
larry hamel
expresso at codeguild.com
Wed Jul 23 23:52:01 PDT 2003
ok, it appears that this cast is required
((JDBCObjectMetaData)myobject.getMetaData()).getTargetTable()
and while I understand that the goal is to abstract away from the JDBC database to support other persistence methods, I'm worried that we are being inconsiderate. There are over 50 calls to getTargetTable() in core Expresso alone, and I think the "80% case" for Expresso users is a case where they use a database via JDBC. Using the 80/20 rule, it would be nice to accommodate such use, and make it easy to find out what table is associated with a database object.
Is there a way we can keep DBObject.getTargetTable() or something similar as a convenience method?
For all persistence methods under consideration (JNDI? others?), is there something roughly equivalent to the table name? Could we declare an interface method and have subclasses implement it?
Thanks,
Larry
At 10:13 AM 7/23/2003, you wrote:
>in current CVS, dbobject.getTargetTable() is deprecated and its Javadoc points to
> getMetaData().getTargetTable()
>
>which doesn't seem to exist in current CVS.
>
>can someone illuminate this?
>
>also, can we make a goal that when deprecating a method, one should fix all method calls in current Expresso code?
>
>thanks,
>
>Larry
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list