jodd-db/src/main/java/jodd/db/DbQueryBase.java
public ResultSet execute() {
		start = System.currentTimeMillis();

		init();
		ResultSet rs = null;
		if (log.isDebugEnabled()) {
			log.debug("Executing statement: " + getQueryString());
		}
		try {
			if (preparedStatement == null) {
				rs = statement.executeQuery(query.sql);
			} else {
				rs = preparedStatement.executeQuery();
			}
			rs.setFetchSize(fetchSize);
		} catch (SQLException sex) {
			DbUtil.close(rs);
			throw new DbSqlException(this, "Query execution failed", sex);
		}
		saveResultSet(rs);
		totalOpenResultSetCount++;

		elapsed = System.currentTimeMillis() - start;
		if (log.isDebugEnabled()) {
			log.debug("execution time: " + elapsed + "ms");
		}
		return rs;
	}
public ResultSet execute() {
		start = System.currentTimeMillis();

		init();
		ResultSet rs = null;
		if (log.isDebugEnabled()) {
			log.debug("Executing statement: " + getQueryString());
		}
		try {
			if (preparedStatement == null) {
				rs = statement.executeQuery(query.sql);
			} else {
				rs = preparedStatement.executeQuery();
			}
			rs.setFetchSize(fetchSize);
		} catch (SQLException sex) {
			DbUtil.close(rs);
			throw new DbSqlException(this, "Query execution failed", sex);
		}
		saveResultSet(rs);
		totalOpenResultSetCount++;

		elapsed = System.currentTimeMillis() - start;
		if (log.isDebugEnabled()) {
			log.debug("execution time: " + elapsed + "ms");
		}
		return rs;
	}
public ResultSet execute ( ) { start = System . currentTimeMillis ( ) ; init ( ) ; ResultSet rs = null ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Executing statement: " + getQueryString ( ) ) ; } try { if ( preparedStatement == null ) { rs = statement . executeQuery ( query . sql ) ; } else { rs = preparedStatement . executeQuery ( ) ; } rs . setFetchSize ( fetchSize ) ; } catch ( SQLException sex ) { DbUtil . close ( rs ) ; throw new DbSqlException ( this , "Query execution failed" , sex ) ; } saveResultSet ( rs ) ; totalOpenResultSetCount ++ ; elapsed = System . currentTimeMillis ( ) - start ; if ( log . isDebugEnabled ( ) ) { log . debug ( "execution time: " + elapsed + "ms" ) ; } return rs ; }
Executes the query. If this method is invoked at least once, the query or
all created ResultSets must be explicitly closed at the end of query usage.
This can be done explicitly by calling {@link DbQueryBase#closeResultSet(ResultSet)}
оr implicitly, during {@link DbQueryBase#close()}.
@see Statement#execute(String)
Executes the query . If this method is invoked at least once the query or all created ResultSets must be explicitly closed at the end of query usage . This can be done explicitly by calling {