Interface UpdateCountOutput
- All Superinterfaces:
Output
Models a return that is an update count (count of rows affected)
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResultSetOutput<?> Treat this output as aResultSetOutput, using the mapping defined when the query was created, if one.default <X> ResultSetOutput<X> asResultSetOutput(jakarta.persistence.sql.ResultSetMapping<X> resultSetMapping) Treat this output as aResultSetOutput, with the specified `resultSetMapping.default <X> ResultSetOutput<X> asResultSetOutput(Class<X> resultType) Treat this output as aResultSetOutput, with the specifiedresultType.default UpdateCountOutputTreat this output as aUpdateCountOutput.intRetrieve the associated update countMethods inherited from interface Output
isResultSet
-
Method Details
-
getUpdateCount
int getUpdateCount()Retrieve the associated update count -
asUpdateCountOutput
Description copied from interface:OutputTreat this output as aUpdateCountOutput.- Specified by:
asUpdateCountOutputin interfaceOutput
-
asResultSetOutput
Description copied from interface:OutputTreat this output as aResultSetOutput, using the mapping defined when the query was created, if one.- Specified by:
asResultSetOutputin interfaceOutput
-
asResultSetOutput
Description copied from interface:OutputTreat this output as aResultSetOutput, with the specifiedresultType. If a mapping was specified during query creation, we simply validate that the types match. Otherwise, theresultTypeis used to define a mapping.- Specified by:
asResultSetOutputin interfaceOutput- 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:OutputTreat this output as aResultSetOutput, with the specified `resultSetMapping. This form will override any mapping specified during query creation.- Specified by:
asResultSetOutputin interfaceOutput- Type Parameters:
X- The java type of the mapping.
-