org.apache.ibatis.ognl
Interface NullHandler

All Known Implementing Classes:
ObjectNullHandler

public interface NullHandler

Interface for handling null results from Chains. Object has the opportunity to substitute an object for the null and continue.

Author:
Luke Blanshard ([email protected]), Drew Davidson ([email protected])

Method Summary
 java.lang.Object nullMethodResult(java.util.Map context, java.lang.Object target, java.lang.String methodName, java.lang.Object[] args)
          Method called on target returned null.
 java.lang.Object nullPropertyValue(java.util.Map context, java.lang.Object target, java.lang.Object property)
          Property in target evaluated to null.
 

Method Detail

nullMethodResult

java.lang.Object nullMethodResult(java.util.Map context,
                                  java.lang.Object target,
                                  java.lang.String methodName,
                                  java.lang.Object[] args)
Method called on target returned null.


nullPropertyValue

java.lang.Object nullPropertyValue(java.util.Map context,
                                   java.lang.Object target,
                                   java.lang.Object property)
Property in target evaluated to null. Property can be a constant String property name or a DynamicSubscript.



Copyright © 2010 MyBatis.org. All Rights Reserved.