|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.language.markup.xsp.AbstractEsqlQuery
org.apache.cocoon.components.language.markup.xsp.JdbcEsqlQuery
public final class JdbcEsqlQuery
This EsqlQuery only uses the standard JDBC API approaches. Please note that whether this is good, ok or bad depends on the driver implementation of your database vendor. It should work with all JDBC compliant databases. Unfortunately it seems NOT to work with mssql
| Constructor Summary | |
|---|---|
JdbcEsqlQuery(Connection connection,
String query)
|
|
| Method Summary | |
|---|---|
void |
getResultRows()
Move to the first row. |
int |
getRowCount()
AFAIK this is the proposed JDBC API way to get the number of results. |
AbstractEsqlQuery |
newInstance(ResultSet resultSet)
Create a EsqlQuery of the same type |
CallableStatement |
prepareCall()
NOTE: Might want to be overridden by indiviual EsqlQuery implementations |
PreparedStatement |
prepareStatement()
NOTE: Might want to be overridden by indiviual EsqlQuery implementations |
| Methods inherited from class org.apache.cocoon.components.language.markup.xsp.AbstractEsqlQuery |
|---|
cleanUp, decGroupLevel, execute, execute, executeQuery, getCallableStatement, getConnection, getCurrentRow, getMaxRows, getMoreResults, getPreparedStatement, getQueryResultsCount, getQueryString, getResultSet, getResultSetMetaData, getSkipRows, getUpdateCount, getUpdateResultsCount, groupLevelExists, hasGroupingVarChanged, hasResultSet, incGroupLevel, keepGoing, nextRow, setGroupingVar, setKeepGoing, setMaxRows, setPosition, setPreparedStatement, setSkipRows |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcEsqlQuery(Connection connection,
String query)
| Method Detail |
|---|
public AbstractEsqlQuery newInstance(ResultSet resultSet)
newInstance in class AbstractEsqlQueryresultSet -
public PreparedStatement prepareStatement()
throws SQLException
AbstractEsqlQuery
prepareStatement in class AbstractEsqlQuerySQLException
public CallableStatement prepareCall()
throws SQLException
AbstractEsqlQuery
prepareCall in class AbstractEsqlQuerySQLException
public int getRowCount()
throws SQLException
getRowCount in class AbstractEsqlQuerySQLException
public void getResultRows()
throws SQLException
AbstractEsqlQuery
getResultRows in class AbstractEsqlQuerySQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||