You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Scott Zhu <sc...@gmail.com> on 2006/10/16 21:59:01 UTC

Does Custom Type Handler works for table name?

By reading the chapter in the iBatis documentation, I have some sense on how
TypeHandler is being used. In our application, table name(s) in the SQL
statement have to be passed in as arguments also. So my question is, can we
use Custom Type Handler in this situation also (so we can have a centralized
place to find the real table name)? In addition to this (in order to do what
I just said), inside the TypeHandlerCall back implementation class, say
setParameter() method, is there a way to tell what parameter (name) it is
setting on right now? Thanks for any help.