db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fischer (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (TORQUE-31) complete generic type compatible API
Date Fri, 11 Aug 2006 20:35:15 GMT
     [ http://issues.apache.org/jira/browse/TORQUE-31?page=all ]

Thomas Fischer resolved TORQUE-31.

    Fix Version/s: 3.2.1
       Resolution: Fixed
         Assignee: Thomas Fischer

> complete generic type compatible API
> ------------------------------------
>                 Key: TORQUE-31
>                 URL: http://issues.apache.org/jira/browse/TORQUE-31
>             Project: Torque
>          Issue Type: Improvement
>          Components: Generator
>    Affects Versions: 3.2.1
>            Reporter: Thoralf Rickert
>         Assigned To: Thomas Fischer
>            Priority: Trivial
>             Fix For: 3.2.1
>         Attachments: TORQUE-31.patch
> If the generator creates Java5 compatible methods then there are some methods from BasePeer
that are not wrapped. This includes for example the execute*() methods. If we wrap them in
the generated classes the API looks a little bit better. 
> Currently there is just one easy solution in my mind - wrap this methods in the generated
Base classes. For example:
> public class BaseTablePeer extends BasePeer {
>   ....
>   public static List<Record> executeQuery(String queryString) throws TorqueException
>     return (List<Record>)super.executeQuery(queryString);
>   }
>   ....
> }
> This means, that every public method in BasePeer should be wrapped in the generated class.
I know, this is a lot and results in bigger classes and some synchronization problems, if
the API of BasePeer is changed. But I think, it's easy to create.
> I'll create a patch for that next week.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message