Class Result<ENTITY>

java.lang.Object
org.seasar.doma.jdbc.Result<ENTITY>
Type Parameters:
ENTITY - the entity type

public class Result<ENTITY> extends Object
A processing result for an immutable entity.
  • Constructor Details

    • Result

      public Result(int count, ENTITY entity)
      Creates an instance.
      Parameters:
      count - the affected row count
      entity - the entity
  • Method Details

    • getCount

      public int getCount()
      Returns the affected row count.
      Returns:
      the affected row count
    • getEntity

      public ENTITY getEntity()
      Returns the entity.
      Returns:
      the entity
    • component1

      public ENTITY component1()
      Returns the entity.
      Returns:
      the entity
      See Also:
    • component2

      public int component2()
      Returns the affected row count.
      Returns:
      the affected row count
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object