public class Query extends Object
Constructor and Description |
---|
Query(Connection conn,
ParsedSql parsedSql) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
LeoArray |
execute()
Executes a Read Only Search
|
Query |
params(LeoMap leoparams) |
void |
setMaxResults(int maxResults) |
PreparedStatement |
statement() |
void |
streamExecute(LeoObject function,
Integer fetchSize)
Streams the result set invoking the supplied function every fetchSize.
|
int |
update()
Executes an update
|
public Query(Connection conn, ParsedSql parsedSql)
conn
- parsedSql
- public PreparedStatement statement() throws Exception
Exception
public void setMaxResults(int maxResults) throws SQLException
SQLException
public LeoArray execute() throws Exception
Exception
public void streamExecute(LeoObject function, Integer fetchSize) throws Exception
function
- fetchSize
- Exception
Copyright © 2010–2015. All rights reserved.