public interface CommonCountMapper
This mapper can be injected as-is into a MyBatis configuration, or it can be extended with existing mappers.
Modifier and Type | Method and Description |
---|---|
long |
count(SelectStatementProvider selectStatement)
Execute a select statement that returns a long (typically a select(count(*)) statement).
|
@SelectProvider(type=SqlProviderAdapter.class, method="select") long count(SelectStatementProvider selectStatement)
selectStatement
- the select statementCopyright © 2016–2021 MyBatis.org. All rights reserved.