org.lexevs.dao.database.ibatis.sqlmap
Class PropertyTypeHandler

java.lang.Object
  extended by org.lexevs.dao.database.ibatis.sqlmap.PropertyTypeHandler
All Implemented Interfaces:
com.ibatis.sqlmap.client.extensions.TypeHandlerCallback

public class PropertyTypeHandler
extends java.lang.Object
implements com.ibatis.sqlmap.client.extensions.TypeHandlerCallback

An iBATIS type handler callback for Property types


Constructor Summary
PropertyTypeHandler()
           
 
Method Summary
 java.lang.Object getResult(com.ibatis.sqlmap.client.extensions.ResultGetter getter)
          From DB to Java.
 void setParameter(com.ibatis.sqlmap.client.extensions.ParameterSetter setter, java.lang.Object parameter)
          From Java to DB.
 java.lang.Object valueOf(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyTypeHandler

public PropertyTypeHandler()
Method Detail

setParameter

public void setParameter(com.ibatis.sqlmap.client.extensions.ParameterSetter setter,
                         java.lang.Object parameter)
                  throws java.sql.SQLException
From Java to DB.

Specified by:
setParameter in interface com.ibatis.sqlmap.client.extensions.TypeHandlerCallback
Throws:
java.sql.SQLException

getResult

public java.lang.Object getResult(com.ibatis.sqlmap.client.extensions.ResultGetter getter)
                           throws java.sql.SQLException
From DB to Java.

Specified by:
getResult in interface com.ibatis.sqlmap.client.extensions.TypeHandlerCallback
Throws:
java.sql.SQLException

valueOf

public java.lang.Object valueOf(java.lang.String s)
Specified by:
valueOf in interface com.ibatis.sqlmap.client.extensions.TypeHandlerCallback

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.