/*
XBN Java: Generically useful, non-GUI Java code.
http://sourceforge.net/projects/xbnjava
Copyright (C) 1997-2003, Jeff Epstein
All rights reserved.
Modifications: No
Redistribution in binary form, with or without modifications, are permitted provided that the following conditions are met:
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* If modifications are made to source code then this license should indicate that fact in the "Modifications" section above.
* Neither the author, nor the contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[NOTE: This license contains NO advertising clause.]
*/
package xbn.db;
import java.sql.SQLException;
import java.sql.ResultSet;
/**
A QueryBase object that executes the Statement contained in a DBCSPlain.
Source code: QueryPlain.java.
@version 0.9b
@author Jeff Epstein, http://sourceforge.net/projects/xbnjava.
**/
public class QueryPlain extends QueryBase {
public QueryPlain(boolean b_throwOnNoRowUpdate) {
super(b_throwOnNoRowUpdate);
}
public QueryPlain() {
super();
}
public ResultSet getResultSet(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency) throws SQLException {
return getResultSet(new DBCSPlain(db_connDirect, s_sql, i_resultSetType, i_resultSetConcurrency));
}
public ResultSet getResultSet(DBConnDirect db_connDirect, String s_sql) throws SQLException {
return getResultSet(new DBCSPlain(db_connDirect, s_sql));
}
public ResultSet getResultSet(DBCSPlain dbcs_plain) throws SQLException {
return getResultSet(dbcs_plain, null);
}
public String getString(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency) throws SQLException {
return getString(new DBCSPlain(db_connDirect, s_sql, i_resultSetType, i_resultSetConcurrency));
}
public String getString(DBConnDirect db_connDirect, String s_sql) throws SQLException {
return getString(new DBCSPlain(db_connDirect, s_sql));
}
public String getString(DBCSPlain dbcs_plain) throws SQLException {
return getString(dbcs_plain, null);
}
public int getInt(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency) throws SQLException {
return getInt(new DBCSPlain(db_connDirect, s_sql, i_resultSetType, i_resultSetConcurrency));
}
public int getInt(DBConnDirect db_connDirect, String s_sql) throws SQLException {
return getInt((new DBCSPlain(db_connDirect, s_sql)));
}
public int getInt(DBCSPlain dbcs_plain) throws SQLException {
return getInt(dbcs_plain, null);
}
public long getLong(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency) throws SQLException {
return getLong(new DBCSPlain(db_connDirect, s_sql, i_resultSetType, i_resultSetConcurrency));
}
public long getLong(DBConnDirect db_connDirect, String s_sql) throws SQLException {
return getLong((new DBCSPlain(db_connDirect, s_sql)));
}
public long getLong(DBCSPlain dbcs_plain) throws SQLException {
return getLong(dbcs_plain, null);
}
public int update(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency) throws SQLException {
return update(new DBCSPlain(db_connDirect, s_sql, i_resultSetType, i_resultSetConcurrency));
}
public int update(DBConnDirect db_connDirect, String s_sql) throws SQLException {
return update(new DBCSPlain(db_connDirect, s_sql));
}
public int update(DBCSPlain dbcs_plain) throws SQLException {
return update(dbcs_plain, null);
}
public boolean execute(DBConnDirect db_connDirect, String s_sql, int i_resultSetType, int i_resultSetConcurrency) throws SQLException {
return execute(new DBCSPlain(db_connDirect, s_sql, i_resultSetType, i_resultSetConcurrency));
}
public boolean execute(DBConnDirect db_connDirect, String s_sql) throws SQLException {
return execute(new DBCSPlain(db_connDirect, s_sql));
}
public boolean execute(DBCSPlain dbcs_plain) throws SQLException {
return execute(dbcs_plain, null);
}
}