All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.firebirdsql.jdbc.oo.OOStatement Maven / Gradle / Ivy

There is a newer version: 2.2.7
Show newest version
package org.firebirdsql.jdbc.oo;

import java.sql.SQLException;

import org.firebirdsql.gds.impl.GDSHelper;
import org.firebirdsql.jdbc.*;
import org.firebirdsql.jdbc.FBObjectListener.StatementListener;

public class OOStatement extends FBStatement {

    public OOStatement(GDSHelper c, int rsType, int rsConcurrency,
            int rsHoldability, StatementListener statementListener)
            throws SQLException {
        super(c, rsType, rsConcurrency, rsHoldability, statementListener);
    }

    public void completeStatement() throws SQLException {
        // workaround - do not close the result set, OpenOffice gets crazy
        // TODO Test if this is still necessary after the changes of JDBC-304
        if (!completed) notifyStatementCompleted();
    }
    
    public void completeStatement(CompletionReason reason)  throws SQLException {
        // TODO Test if this is still necessary after the changes of JDBC-304
        if (!completed) notifyStatementCompleted();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy