currentRs = null; currentCachedResultSet = null;
    public void close() throws  SQLException {        if (closed)            throw new SQLException("This statement is already closed.");                    Object syncObject = getSynchronizationObject();                synchronized(syncObject) {            try {                if (fixedStmt != null) {                    try {                        //may need ensureTransaction?                        c.closeStatement(fixedStmt, true);                    } catch (GDSException ge) {                        throw new FBSQLException(ge);                    } finally {                        fixedStmt = null;                        currentRs = null;                        currentCachedResultSet = null;                        closed = true;                    }                } else                    closed = true;            } finally {                c.notifyStatementClosed(this);            }        }    }