db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TORQUE-166) remove the getOMClass() method, the CLASS_DEFAULT constant and the initClass() method in the generated peers
Date Mon, 18 Jul 2011 14:17:59 GMT

    [ https://issues.apache.org/jira/browse/TORQUE-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067047#comment-13067047
] 

Thomas Fox commented on TORQUE-166:
-----------------------------------

What about generating a getOMInstance method in the Peer returning a new OMClass() ?
In my opinion we should avoid using reflection wherever possible. Also, getOMInstance() is
more flexible, one can override the method and instantiate classes which do not have a no-arg
constructor.
When needed, one can still find out the OMClass by getOMInstance().getClass()

> remove the getOMClass() method, the CLASS_DEFAULT constant and the initClass() method
in the generated peers
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: TORQUE-166
>                 URL: https://issues.apache.org/jira/browse/TORQUE-166
>             Project: Torque
>          Issue Type: Improvement
>            Reporter: Thomas Fox
>            Assignee: Thomas Fox
>
> These methods and constants were used by village and are not needed any more.

--
This message is automatically generated by JIRA.
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


Mime
View raw message