/** * Reset connection for another test */ private void reset() { closeConnection(); getConnection(); reader.initialize(monitorIs); writer.reset(null); } /**
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
/** * Read length and codepoint and check against required values * * @exception IOException, DRDAProtocolException error reading file or protocol */ private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint( false ); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); }
/** get XAResource for the connection * * @return XAResource */ private XAResource getXAResource() { return ((XADatabase) connThread.getDatabase()).getXAResource(); }
public int getDrdaTimeSlice() { checkMonitor(); // relying on server to return the default if not set return server.getTimeSlice(); }
protected String buildRuntimeInfo(String indent, LocalizedResource localLangUtil ) { String s =""; if (!hasSession()) return s; else s += session.buildRuntimeInfo("", localLangUtil); s += "\n"; return s; }
/** * Initialize class */ private void initialize() { // set input and output sockets // this needs to be done before creating reader sockis = session.sessionInput; sockos = session.sessionOutput; reader = new DDMReader(this, session.dssTrace); writer = new DDMWriter(ccsidManager, this, session.dssTrace); }
/** * DRDAStatement constructor * * @param database * */ DRDAStatement (Database database) { this.database = database; setTypDefValues(); this.currentDrdaRs = new DRDAResultSet(); }
/** * Flush buffer to outputstream * * * @exception IOException */ protected void flush () throws java.io.IOException { flush(agent.getOutputStream()); }
/** * @param rsNum - result set # starting with 0 */ public String getResultSetCursorName(int rsNum) throws SQLException { DRDAResultSet drdaRs = getDrdaResultSet(rsNum); return drdaRs.getResultSetCursorName(); }
/** * Reset connection for another test */ private void reset() { closeConnection(); getConnection(); reader.initialize(monitorIs); writer.reset(null); } /**
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
/** * Read length and codepoint and check against required values * * @exception IOException, DRDAProtocolException error reading file or protocol */ private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint( false ); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); }
/** get XAResource for the connection * * @return XAResource */ private XAResource getXAResource() { return ((XADatabase) connThread.getDatabase()).getXAResource(); }
public int getDrdaTimeSlice() { checkMonitor(); // relying on server to return the default if not set return server.getTimeSlice(); }
protected String buildRuntimeInfo(String indent, LocalizedResource localLangUtil ) { String s =""; if (!hasSession()) return s; else s += session.buildRuntimeInfo("", localLangUtil); s += "\n"; return s; }
/** * Reset connection for another test */ private void reset() { closeConnection(); getConnection(); reader.initialize(monitorIs); writer.reset(null); } /**
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
/** * Read length and codepoint and check against required values * * @exception IOException, DRDAProtocolException error reading file or protocol */ private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint( false ); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); }