public interface AggregateFunction
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object value)
This method is called once for each row.
|
Object |
getResult()
This method returns the computed aggregate value.
|
int |
getType(int[] inputTypes)
This method must return the SQL type of the method, given the SQL type of
the input data.
|
void |
init(Connection conn)
This method is called when the aggregate function is used.
|
void init(Connection conn) throws SQLException
conn - a connection to the databaseSQLExceptionint getType(int[] inputTypes)
throws SQLException
inputTypes - the SQL type of the parametersSQLExceptionvoid add(Object value) throws SQLException
value - the value(s) for this rowSQLExceptionObject getResult() throws SQLException
SQLExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.