| java.lang.Object org.apache.torque.util.CountHelper
CountHelper | public class CountHelper (Code) | | |
Method Summary | |
public int | count(Criteria c) The COUNT function returns the number of rows in a query.
Does not use a connection, hardcode the column to "*" and
set the distinct qualifier to false.
Only use this function if you have added additional constraints to
the criteria, otherwise Torque does not know which table it should
count the datasets in.
Parameters: c - Criteria to get the count for. | public int | count(Criteria c, Connection conn) The COUNT function returns the number of rows in a query. | public int | count(Criteria c, String columnName) Returns the number of rows in a query.
Parameters: c - Criteria to get the count for. Parameters: columnName - Name of database Column which is counted. | public int | count(Criteria c, Connection conn, String columnName) Returns the number of rows in a query.
Parameters: c - Criteria to get the count for. Parameters: conn - Connection to use Parameters: columnName - Name of database Column which is counted. |
count | public int count(Criteria c) throws TorqueException(Code) | | The COUNT function returns the number of rows in a query.
Does not use a connection, hardcode the column to "*" and
set the distinct qualifier to false.
Only use this function if you have added additional constraints to
the criteria, otherwise Torque does not know which table it should
count the datasets in.
Parameters: c - Criteria to get the count for. number of rows matching the query provided throws: TorqueException - if the query could not be executed |
count | public int count(Criteria c, Connection conn) throws TorqueException(Code) | | The COUNT function returns the number of rows in a query.
Hard code the distinct parameter to false and set the column to "*".
Only use this function if you have added additional constraints to
the criteria, otherwise Torque does not know which table it should
count the datasets in.
Parameters: c - Criteria to get the count for. Parameters: conn - Connection to use number of rows matching the query provided throws: TorqueException - if the query could not be executed |
count | public int count(Criteria c, String columnName) throws TorqueException(Code) | | Returns the number of rows in a query.
Parameters: c - Criteria to get the count for. Parameters: columnName - Name of database Column which is counted. Preferably,use the primary key here. number of rows matching the query provided throws: TorqueException - if the query could not be executed |
count | public int count(Criteria c, Connection conn, String columnName) throws TorqueException(Code) | | Returns the number of rows in a query.
Parameters: c - Criteria to get the count for. Parameters: conn - Connection to use Parameters: columnName - Name of database Column which is counted. Preferably,use the primary key here. number of rows matching the query provided throws: TorqueException - if the query could not be executed |
|
|