public class CountHelper extends Object
| Constructor and Description | 
|---|
| CountHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | count(Criteria c)The COUNT function returns the number of rows in a query. | 
| int | count(Criteria c,
     Column column)Returns the number of rows in a query. | 
| int | count(Criteria c,
     Connection conn)The COUNT function returns the number of rows in a query. | 
| int | count(Criteria c,
     Connection conn,
     Column column)Returns the number of rows in a query. | 
| int | count(Criteria c,
     Connection conn,
     String columnName,
     TableMap tableMap)Returns the number of rows in a query. | 
| int | count(Criteria c,
     String columnName)Returns the number of rows in a query. | 
| int | count(TableMap tableMap)Counts all rows in a table. | 
| int | count(TableMap tableMap,
     Connection conn)Counts all rows in a table. | 
public int count(Criteria c) throws TorqueException
c - Criteria to get the count for.TorqueException - if the query could not be executedpublic int count(Criteria c, Connection conn) throws TorqueException
c - Criteria to get the count for.conn - Connection to useTorqueException - if the query could not be executedpublic int count(Criteria c, String columnName) throws TorqueException
c - Criteria to get the count for.columnName - Name of database Column which is counted. Preferably,
        use the primary key here.TorqueException - if the query could not be executedpublic int count(Criteria c, Column column) throws TorqueException
c - Criteria to get the count for.column - the database Column which is counted. Preferably,
        use the primary key here.TorqueException - if the query could not be executedpublic int count(Criteria c, Connection conn, Column column) throws TorqueException
c - Criteria to get the count for.conn - Connection to usecolumn - The database Column which is counted. Preferably,
        use the primary key here.TorqueException - if the query could not be executedpublic int count(TableMap tableMap) throws TorqueException
tableMap - the table map of the table to count rows in.TorqueException - if the query could not be executedpublic int count(TableMap tableMap, Connection conn) throws TorqueException
tableMap - the table map of the table to count rows in.conn - the connection to use.TorqueException - if the query could not be executedpublic int count(Criteria c, Connection conn, String columnName, TableMap tableMap) throws TorqueException
c - Criteria to get the count for.conn - Connection to usecolumnName - Name of database Column which is counted. Preferably,
        use the primary key here.tableMap - the table to count the columns in, or null to determine
        the table automatically from the criteria.TorqueException - if the query could not be executed.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.