Class ClobTypeHandlerCallback

java.lang.Object
com.ibatis.sqlmap.engine.type.ClobTypeHandlerCallback
All Implemented Interfaces:
TypeHandlerCallback

public class ClobTypeHandlerCallback extends Object implements TypeHandlerCallback
The Class ClobTypeHandlerCallback.
  • Constructor Details

    • ClobTypeHandlerCallback

      public ClobTypeHandlerCallback()
  • Method Details

    • getResult

      public Object getResult(ResultGetter getter) throws SQLException
      Description copied from interface: TypeHandlerCallback
      Performs processing on a value before after it has been retrieved from a ResultSet.
      Specified by:
      getResult in interface TypeHandlerCallback
      Parameters:
      getter - The interface for getting the value from the ResultSet.
      Returns:
      The processed value.
      Throws:
      SQLException - If any error occurs.
    • setParameter

      public void setParameter(ParameterSetter setter, Object parameter) throws SQLException
      Description copied from interface: TypeHandlerCallback
      Performs processing on a value before it is used to set the parameter of a PreparedStatement.
      Specified by:
      setParameter in interface TypeHandlerCallback
      Parameters:
      setter - The interface for setting the value on the PreparedStatement.
      parameter - The value to be set.
      Throws:
      SQLException - If any error occurs.
    • valueOf

      public Object valueOf(String s)
      Description copied from interface: TypeHandlerCallback
      Casts the string representation of a value into a type recognized by this type handler. This method is used to translate nullValue values into types that can be appropriately compared. If your custom type handler cannot support nullValues, or if there is no reasonable string representation for this type (e.g. File type), you can simply return the String representation as it was passed in. It is not recommended to return null, unless null was passed in.
      Specified by:
      valueOf in interface TypeHandlerCallback
      Parameters:
      s - A string representation of a valid value for this type.
      Returns:
      One of the following:
      1. the casted repersentation of the String value,
      2. the string as is,
      3. null, only if null was passed in.