|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.util.CountHelper
public class CountHelper
| Constructor Summary | |
|---|---|
CountHelper()
|
|
| Method Summary | |
|---|---|
int |
count(Criteria c)
The COUNT function returns the number of rows in a query. |
int |
count(Criteria c,
java.sql.Connection conn)
The COUNT function returns the number of rows in a query. |
int |
count(Criteria c,
java.sql.Connection conn,
java.lang.String columnName)
Returns the number of rows in a query. |
int |
count(Criteria c,
java.lang.String columnName)
Returns the number of rows in a query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountHelper()
| Method Detail |
|---|
public int count(Criteria c)
throws TorqueException
c - Criteria to get the count for.
TorqueException - if the query could not be executed
public int count(Criteria c,
java.sql.Connection conn)
throws TorqueException
c - Criteria to get the count for.conn - Connection to use
TorqueException - if the query could not be executed
public int count(Criteria c,
java.lang.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 executed
public int count(Criteria c,
java.sql.Connection conn,
java.lang.String columnName)
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.
TorqueException - if the query could not be executed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||