Package org.g4studio.core.orm.xibatis.sqlmap.engine.type

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.type.TypeHandler.valueOf()


        String nullValue = mapping.getNullValue();
        if (result == null && nullValue != null) {
          TypeHandler typeHandler = typeHandlerFactory.getTypeHandler(targetType);
          if (typeHandler != null) {
            result = typeHandler.valueOf(nullValue);
          }
        }
      }
      return result;
    } catch (InstantiationException e) {
View Full Code Here


    if (value == null) {
      TypeHandler typeHandler = mapping.getTypeHandler();
      if (typeHandler != null) {
        String nullValue = mapping.getNullValue();
        if (nullValue != null)
          value = typeHandler.valueOf(nullValue);
        return value;
      } else {
        throw new SqlMapException("No type handler could be found to map the property '"
            + mapping.getPropertyName() + "' to the column '" + mapping.getColumnName()
            + "'.  One or both of the types, or the combination of types is not supported.");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.