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 databaseSQLException
int getType(int[] inputTypes) throws SQLException
inputTypes
- the SQL type of the parametersSQLException
void add(Object value) throws SQLException
value
- the value(s) for this rowSQLException
Object getResult() throws SQLException
SQLException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.