FileDocCategorySizeDatePackage
StatementImpl.javaAPI DocGlassfish v2 API11066Fri May 04 22:35:02 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.connection

StatementImpl

public class StatementImpl extends Object implements Statement
This class implements the java.sql.Statement interface, which is part of the JDBC API. You should use the java.sql.Statement interface as an object type instead of this class.

Fields Summary
ConnectionImpl
conn
Statement
stmt
Constructors Summary
public StatementImpl()

        super();
        this.conn = null;
        this.stmt = null;
    
public StatementImpl(ConnectionImpl conn, Statement stmt)

ForteInternal
Create a new StatementImpl object. Keep references to corresponding JDBC Connection and Statement objects.
param
conn ConnectionImpl
param
stmt JDBC Statement

        super();
        this.conn = conn;
        this.stmt = stmt;
    
Methods Summary
public voidaddBatch(java.lang.String sql)

        try {
            this.stmt.addBatch(sql);
        } catch (SQLException se) {
            throw se;
        }
    
public voidcancel()

        try {
            this.stmt.cancel();
        } catch (SQLException se) {
            throw se;
        }
    
public voidclearBatch()

        try {
            this.stmt.clearBatch();
        } catch (SQLException se) {
            throw se;
        }
    
public voidclearWarnings()

        try {
            this.stmt.clearWarnings();
        } catch (SQLException se) {
            throw se;
        }
    
public voidclose()

        try {
            this.stmt.close();
        } catch (SQLException se) {
            throw se;
        }
    
public booleanexecute(java.lang.String sql)

        try {
            this.conn.checkXact();
            return (this.stmt.execute(sql));
        } catch (SQLException se) {
            throw se;
        }
    
public booleanexecute(java.lang.String sql, int autoGeneratedKeys)

        try {
            return (this.stmt.execute(sql,autoGeneratedKeys));
        } catch (SQLException se) {
            throw se;
        }
    
public booleanexecute(java.lang.String sql, int[] columnIndexes)

        try {
            return (this.stmt.execute(sql,columnIndexes));
        } catch (SQLException se) {
            throw se;
        }
    
public booleanexecute(java.lang.String sql, java.lang.String[] columnNames)

        try {
            return (this.stmt.execute(sql,columnNames));
        } catch (SQLException se) {
            throw se;
        }
    
public int[]executeBatch()

        try {
            this.conn.checkXact();
            return (this.stmt.executeBatch());
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.ResultSetexecuteQuery(java.lang.String sql)

        try {
            this.conn.checkXact();
            return (this.stmt.executeQuery(sql));
        } catch (SQLException se) {
            throw se;
        }
    
public intexecuteUpdate(java.lang.String sql, int autoGeneratedKeys)

        try {
            return (this.stmt.executeUpdate(sql,autoGeneratedKeys) );
        } catch (SQLException se) {
            throw se;
        }
    
public intexecuteUpdate(java.lang.String sql, int[] columnIndexes)

        try {
            return (this.stmt.executeUpdate(sql,columnIndexes));
        } catch (SQLException se) {
            throw se;
        }
    
public intexecuteUpdate(java.lang.String sql, java.lang.String[] columnNames)

        try {
            return (this.stmt.executeUpdate(sql,columnNames));
        } catch (SQLException se) {
            throw se;
        }
    
public intexecuteUpdate(java.lang.String sql)

        try {
            this.conn.checkXact();
            return (this.stmt.executeUpdate(sql));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.ConnectiongetConnection()

        try {
            return (this.stmt.getConnection());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetFetchDirection()

        try {
            return (this.stmt.getFetchDirection());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetFetchSize()

        try {
            return (this.stmt.getFetchSize());
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.ResultSetgetGeneratedKeys()

        try {
            return (this.stmt.getGeneratedKeys());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetMaxFieldSize()

        try {
            return (this.stmt.getMaxFieldSize());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetMaxRows()

        try {
            return (this.stmt.getMaxRows());
        } catch (SQLException se) {
            throw se;
        }
    
public booleangetMoreResults()

        try {
            return (this.stmt.getMoreResults());
        } catch (SQLException se) {
            throw se;
        }
    
public booleangetMoreResults(int current)

        try {
            return (this.stmt.getMoreResults(current));
        } catch (SQLException se) {
            throw se;
        }
    
public intgetQueryTimeout()

        try {
            return (this.stmt.getQueryTimeout());
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.ResultSetgetResultSet()

        try {
            return (this.stmt.getResultSet());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetResultSetConcurrency()

        try {
            return (this.stmt.getResultSetConcurrency());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetResultSetHoldability()

        try {
            return (this.stmt.getResultSetHoldability());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetResultSetType()

        try {
            return (this.stmt.getResultSetType());
        } catch (SQLException se) {
            throw se;
        }
    
public intgetUpdateCount()

        try {
            return (this.stmt.getUpdateCount());
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.SQLWarninggetWarnings()

        try {
            return (this.stmt.getWarnings());
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetCursorName(java.lang.String name)

        try {
            this.stmt.setCursorName(name);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetEscapeProcessing(boolean enable)

        try {
            this.stmt.setEscapeProcessing(enable);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetFetchDirection(int direction)

        try {
            this.stmt.setFetchDirection(direction);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetFetchSize(int rows)

        try {
            this.stmt.setFetchSize(rows);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetMaxFieldSize(int max)

        try {
            this.stmt.setMaxFieldSize(max);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetMaxRows(int max)

        try {
            this.stmt.setMaxRows(max);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetQueryTimeout(int seconds)

        try {
            this.stmt.setQueryTimeout(seconds);
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.StatementunwrapStatement()

        return this.stmt;