Class Discriminator

java.lang.Object
com.ibatis.sqlmap.engine.mapping.result.Discriminator

public class Discriminator extends Object
Created by IntelliJ IDEA. User: cbegin Date: May 13, 2005 Time: 11:11:05 PM To change this template use File | Settings | File Templates.
  • Constructor Details

    • Discriminator

      public Discriminator(SqlMapExecutorDelegate delegate, ResultMapping resultMapping)
      Instantiates a new discriminator.
      Parameters:
      delegate - the delegate
      resultMapping - the result mapping
  • Method Details

    • setResultMapping

      public void setResultMapping(ResultMapping resultMapping)
      Sets the result mapping.
      Parameters:
      resultMapping - the new result mapping
    • getResultMapping

      public ResultMapping getResultMapping()
      Gets the result mapping.
      Returns:
      the result mapping
    • addSubMap

      public void addSubMap(String discriminatorValue, String resultMapName)
      Adds the sub map.
      Parameters:
      discriminatorValue - the discriminator value
      resultMapName - the result map name
    • getSubMap

      public ResultMap getSubMap(String s)
      Gets the sub map.
      Parameters:
      s - the s
      Returns:
      the sub map
    • bindSubMaps

      public void bindSubMaps()
      Bind sub maps.