iBATIS DataMapper
Added by Ken Weiner, last edited by Isidoro TreviƱo on Jul 17, 2007  (view change)
Labels: 


Implementations of com.ibatis.sqlmap.client.extensions.TypeHandlerCallback can be used to map between a Java object type and a database column. The following is a list of TypeHandlerCallback implementations that may be useful to iBATIS developers.

Java Type Database Type sqlmap-config Declaration Source Code
java.net.URL VARCHAR
<typeHandler javaType="java.net.URL" callback="com.yourpackage.UrlTypeHandlerCallback"/>
UrlTypeHandlerCallback.java
java.lang.Boolean VARCHAR
<typeHandler javaType="boolean" callback="com.yourpackage.YNBooleanTypeHandler"/>
YNBooleanTypeHandler.java
org.w3c.dom.Document XMLType
<typeHandler javaType="org.w3c.dom.Document" callback="com.yourpackage.XMLTypeHandlerCallback"/>
XMLTypeHandlerCallback.java
org.joda.time.DateTime DATE
<typeHandler javaType="org.joda.time.DateTime" callback="yourpackage.DateTimeTypeHandlerCallback"/>
DateTimeTypeHandlerCallback.java

More information on Type Handler Callbacks can be found here.

DateTimeTypeHandlerCallback.java (iBATIS DataMapper)
UrlTypeHandlerCallback.java (iBATIS DataMapper)
XMLTypeHandlerCallback.java (iBATIS DataMapper)
YNBooleanTypeHandler.java (iBATIS DataMapper)

Site running on a free Atlassian Confluence Open Source Project License granted to OSS. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators