jodd-db/src/main/java/jodd/db/DbQueryBase.java
public String getQueryString() {
		if (debug) {
			if ((callableStatement != null)) {
				if (preparedStatement instanceof LoggableCallableStatement) {
					return ((LoggableCallableStatement) callableStatement).getQueryString();
				}
			}
			if (preparedStatement != null) {
				if (preparedStatement instanceof LoggablePreparedStatement) {
					return ((LoggablePreparedStatement) preparedStatement).getQueryString();
				}
			}
		}
		if (query != null) {
			return query.sql;
		}
		return sqlString;
	}
public String getQueryString() {
		if (debug) {
			if ((callableStatement != null)) {
				if (preparedStatement instanceof LoggableCallableStatement) {
					return ((LoggableCallableStatement) callableStatement).getQueryString();
				}
			}
			if (preparedStatement != null) {
				if (preparedStatement instanceof LoggablePreparedStatement) {
					return ((LoggablePreparedStatement) preparedStatement).getQueryString();
				}
			}
		}
		if (query != null) {
			return query.sql;
		}
		return sqlString;
	}
public String getQueryString ( ) { if ( debug ) { if ( ( callableStatement != null ) ) { if ( preparedStatement instanceof LoggableCallableStatement ) { return ( ( LoggableCallableStatement ) callableStatement ) . getQueryString ( ) ; } } if ( preparedStatement != null ) { if ( preparedStatement instanceof LoggablePreparedStatement ) { return ( ( LoggablePreparedStatement ) preparedStatement ) . getQueryString ( ) ; } } } if ( query != null ) { return query . sql ; } return sqlString ; }
Returns query SQL string. For prepared statements, returned sql string with quick-and-dirty replaced values.
Returns query SQL string . For prepared statements returned sql string with quick - and - dirty replaced values .