Dashboard > iBATIS DataMapper > Home > Type Handler Callbacks > Information > Page Comparison
Type Handler Callbacks
Version 5 by Jan Vissers
on Sep 18, 2006 16:58.

compared with
Current by Isidoro TreviƱo
on Jul 17, 2007 12:54.

(show comment)
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history

There are 1 changes. View first change.

 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|{code:xml}<typeHandler javaType="java.net.URL" callback="com.yourpackage.UrlTypeHandlerCallback"/>{code}|[UrlTypeHandlerCallback.java]|
 |java.lang.Boolean|VARCHAR|{code:xml}<typeHandler javaType="boolean" callback="com.yourpackage.YNBooleanTypeHandler"/>{code}|[YNBooleanTypeHandler.java]|
 |org.w3c.dom.Document|XMLType|{code:xml}<typeHandler javaType="org.w3c.dom.Document" callback="com.yourpackage.XMLTypeHandlerCallback"/>{code}|[XMLTypeHandlerCallback.java]|
  |org.joda.time.DateTime|DATE|{code:xml}<typeHandler javaType="org.joda.time.DateTime" callback="yourpackage.DateTimeTypeHandlerCallback"/>{code}|[DateTimeTypeHandlerCallback.java]|
 More information on Type Handler Callbacks can be found [here| How do I use a Custom Type Handler with complex property or Type Safe Enumeration].
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