Interface UpdateCountOutput

All Superinterfaces:
Output

public interface UpdateCountOutput extends Output
Models a return that is an update count (count of rows affected)
  • Method Details

    • getUpdateCount

      int getUpdateCount()
      Retrieve the associated update count
    • asUpdateCountOutput

      default UpdateCountOutput asUpdateCountOutput()
      Description copied from interface: Output
      Treat this output as a UpdateCountOutput.
      Specified by:
      asUpdateCountOutput in interface Output
    • asResultSetOutput

      default ResultSetOutput<?> asResultSetOutput()
      Description copied from interface: Output
      Treat this output as a ResultSetOutput, using the mapping defined when the query was created, if one.
      Specified by:
      asResultSetOutput in interface Output
    • asResultSetOutput

      default <X> ResultSetOutput<X> asResultSetOutput(Class<X> resultType)
      Description copied from interface: Output
      Treat this output as a ResultSetOutput, with the specified resultType. If a mapping was specified during query creation, we simply validate that the types match. Otherwise, the resultType is used to define a mapping.
      Specified by:
      asResultSetOutput in interface Output
      Type Parameters:
      X - The java type of the mapping.
    • asResultSetOutput

      default <X> ResultSetOutput<X> asResultSetOutput(jakarta.persistence.sql.ResultSetMapping<X> resultSetMapping)
      Description copied from interface: Output
      Treat this output as a ResultSetOutput, with the specified `resultSetMapping. This form will override any mapping specified during query creation.
      Specified by:
      asResultSetOutput in interface Output
      Type Parameters:
      X - The java type of the mapping.