[ http://issues.apache.org/jira/browse/IBATIS-94?page=comments#action_12378297 ]
Yiting Qiang commented on IBATIS-94: ------------------------------------ I'm writing a tiny spring bean named <a href="http://dao-zero.sourceforge.net">daozero(http://dao-zero.sourceforge.net)</a> which could be used by i Batis users to implements DAO interface automatically in runtime. It works by finding the iBatis statement which matches method name of DAO interface and invoke iBatis API(queryForList etc.) for that interface. But in fact, I have to hack iBatis' source too, what I mean is to cast some iBatis interface to her internal implementation class, because I cannot found how to get parameter map's meta data by iBatis's API. I doesn't like the bad smell for this current way. Is there iBatis API to to provide meta informations of statement? if no, could iBatis team consider writing API to provide the whold meta informations, such as statement, parameter, result, etc.? > Add functions to fetch sqlmap metadata > -------------------------------------- > > Key: IBATIS-94 > URL: http://issues.apache.org/jira/browse/IBATIS-94 > Project: iBatis for Java > Type: New Feature > Components: SQL Maps > Versions: 2.0.9 > Reporter: Scott Z > Priority: Minor > > I wonder if we can add some getter functions to the SqlMapClient interface > for the sqlmap metadata information, such as a list of statements, or maybe > even datasource settings. This information is currently used by us for > supporting database specific queries and might be useful for others too. > I know I can get this information if I do something like: > SqlMapExecutorDelegate delegate = > ((ExtendedSqlMapClient)sqlMap).getDelegate(); > then call delegate.getMappedStatementNames(); > But I don't want to depend on the implementation just in case it changes. > Thanks. -- 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