|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.components.language.markup.xsp.EsqlQuery
This helper class takes care of contstructing queries and cursor positioning (paging) for all different kinds of databases based on the orginal esql.xsl
Constructor Summary | |
EsqlQuery(EsqlConnection connection,
java.lang.String query)
|
|
EsqlQuery(java.sql.ResultSet aResultSet)
|
Method Summary | |
protected void |
adjustCounts()
update counters for result sets and update counts |
java.sql.Statement |
createStatement()
|
boolean |
execute()
|
boolean |
execute(boolean needsQuery)
some brain dead DBMSs (Informix) don't like their callable statements to be 'execute'd but require 'executeQuery' instead. |
boolean |
execute(int resultSetFromObject)
|
java.sql.CallableStatement |
getCallableStatement()
|
int |
getCurrentRow()
|
int |
getMaxRows()
|
boolean |
getMoreResults()
retrieve next result, check whether it is an result set or an update count. |
java.sql.PreparedStatement |
getPreparedStatement()
|
java.lang.String |
getQueryString()
|
int |
getResultCount()
|
void |
getResultRows()
|
java.sql.ResultSet |
getResultSet()
|
java.sql.ResultSetMetaData |
getResultSetMetaData()
|
int |
getSkipRows()
|
java.sql.Statement |
getStatement()
|
int |
getUpdateCount()
|
int |
getUpdateCountCount()
|
boolean |
groupLevelExists()
|
void |
groupLevelMinusMinus()
|
void |
groupLevelPlusPlus()
|
boolean |
hasGroupingVarChanged()
|
boolean |
hasResultSet()
|
boolean |
keepGoing()
|
boolean |
nextRow()
|
java.sql.CallableStatement |
prepareCall()
|
java.sql.PreparedStatement |
prepareStatement()
|
int |
rowCount()
|
void |
setGroupingVar(java.lang.String key)
|
void |
setKeepGoing(boolean still)
|
void |
setMaxRows(int i)
|
void |
setSkipRows(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EsqlQuery(EsqlConnection connection, java.lang.String query)
public EsqlQuery(java.sql.ResultSet aResultSet)
Method Detail |
public int getSkipRows()
public void setSkipRows(int i)
public int getMaxRows()
public void setMaxRows(int i)
public int getCurrentRow()
public java.lang.String getQueryString()
public java.sql.PreparedStatement prepareStatement() throws java.sql.SQLException
java.sql.SQLException
public java.sql.CallableStatement prepareCall() throws java.sql.SQLException
java.sql.SQLException
public java.sql.PreparedStatement getPreparedStatement()
public java.sql.CallableStatement getCallableStatement()
public java.sql.ResultSet getResultSet()
public boolean nextRow() throws java.sql.SQLException
java.sql.SQLException
public boolean keepGoing()
public void setKeepGoing(boolean still)
public void groupLevelPlusPlus()
public void groupLevelMinusMinus()
public boolean groupLevelExists()
public void setGroupingVar(java.lang.String key) throws java.sql.SQLException
java.sql.SQLException
public boolean hasGroupingVarChanged() throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSetMetaData getResultSetMetaData()
public java.sql.Statement createStatement() throws java.sql.SQLException
java.sql.SQLException
public java.sql.Statement getStatement()
public int getUpdateCount() throws java.sql.SQLException
java.sql.SQLException
public int getUpdateCountCount()
public int getResultCount()
public boolean getMoreResults() throws java.sql.SQLException
java.sql.SQLException
protected void adjustCounts() throws java.sql.SQLException
java.sql.SQLException
public boolean execute() throws java.sql.SQLException
java.sql.SQLException
public boolean execute(int resultSetFromObject) throws java.sql.SQLException
java.sql.SQLException
public boolean execute(boolean needsQuery) throws java.sql.SQLException
java.sql.SQLException
public boolean hasResultSet()
public int rowCount() throws java.sql.SQLException
java.sql.SQLException
public void getResultRows() throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |