void buildDummyEXCSAT() throws SqlException { createCommand(); // begin excsat collection by placing the 4 byte llcp in the buffer. // the length of this command will be computed later and "filled in" // with the call to request.updateLengthBytes(). markLengthBytes(CodePoint.EXCSAT); // the excsat command is complete so the updateLengthBytes method // is called to dynamically compute the length for this command and insert // it into the buffer updateLengthBytes(); }
void buildDummyEXCSAT() throws SqlException { createCommand(); // begin excsat collection by placing the 4 byte llcp in the buffer. // the length of this command will be computed later and "filled in" // with the call to request.updateLengthBytes(). markLengthBytes(CodePoint.EXCSAT); // the excsat command is complete so the updateLengthBytes method // is called to dynamically compute the length for this command and insert // it into the buffer updateLengthBytes(); }
void buildTYPDEFOVR(boolean sendCcsidSbc, int ccsidSbc, boolean sendCcsidDbc, int ccsidDbc, boolean sendCcsidMbc, int ccsidMbc) throws SqlException { markLengthBytes(CodePoint.TYPDEFOVR); // write the single-byte ccsid used by this driver. if (sendCcsidSbc) { writeScalar2Bytes(CodePoint.CCSIDSBC, ccsidSbc); } // write the double-byte ccsid used by this driver. if (sendCcsidDbc) { writeScalar2Bytes(CodePoint.CCSIDDBC, ccsidDbc); } // write the mixed-byte ccsid used by this driver if (sendCcsidMbc) { writeScalar2Bytes(CodePoint.CCSIDMBC, ccsidMbc); } updateLengthBytes(); }
void buildTYPDEFOVR(boolean sendCcsidSbc, int ccsidSbc, boolean sendCcsidDbc, int ccsidDbc, boolean sendCcsidMbc, int ccsidMbc) throws SqlException { markLengthBytes(CodePoint.TYPDEFOVR); // write the single-byte ccsid used by this driver. if (sendCcsidSbc) { writeScalar2Bytes(CodePoint.CCSIDSBC, ccsidSbc); } // write the double-byte ccsid used by this driver. if (sendCcsidDbc) { writeScalar2Bytes(CodePoint.CCSIDDBC, ccsidDbc); } // write the mixed-byte ccsid used by this driver if (sendCcsidMbc) { writeScalar2Bytes(CodePoint.CCSIDMBC, ccsidMbc); } updateLengthBytes(); }
void buildACCSEC(int secmec, String rdbnam, byte[] sectkn) throws SqlException { createCommand(); // place the llcp for the ACCSEC in the buffer. save the length bytes for // later update markLengthBytes(CodePoint.ACCSEC); // the security mechanism is a required instance variable. it will // always be sent. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (sectkn != null) { buildSECTKN(sectkn); } // the accsec command is complete so notify the the request object to // update the ddm length and the dss header length. updateLengthBytes(); }
void buildACCSEC(int secmec, String rdbnam, byte[] sectkn) throws SqlException { createCommand(); // place the llcp for the ACCSEC in the buffer. save the length bytes for // later update markLengthBytes(CodePoint.ACCSEC); // the security mechanism is a required instance variable. it will // always be sent. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (sectkn != null) { buildSECTKN(sectkn); } // the accsec command is complete so notify the the request object to // update the ddm length and the dss header length. updateLengthBytes(); }
void buildSECCHK(int secmec, String rdbnam, String user, String password, byte[] sectkn, byte[] sectkn2) throws SqlException { createCommand(); markLengthBytes(CodePoint.SECCHK); // always send the negotiated security mechanism for the connection. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (user != null) { buildUSRID(user); } if (password != null) { buildPASSWORD(password); } if (sectkn != null) { buildSECTKN(sectkn); } if (sectkn2 != null) { buildSECTKN(sectkn2); } updateLengthBytes(); }
void buildSECCHK(int secmec, String rdbnam, String user, String password, byte[] sectkn, byte[] sectkn2) throws SqlException { createCommand(); markLengthBytes(CodePoint.SECCHK); // always send the negotiated security mechanism for the connection. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (user != null) { buildUSRID(user); } if (password != null) { buildPASSWORD(password); } if (sectkn != null) { buildSECTKN(sectkn); } if (sectkn2 != null) { buildSECTKN(sectkn2); } updateLengthBytes(); }
markLengthBytes(CodePoint.EXCSAT);
markLengthBytes(CodePoint.EXCSAT);
private void buildMGRLVLLS(int agent, int sqlam, int rdb, int secmgr, int xamgr, int syncptmgr, int rsyncmgr) throws SqlException { markLengthBytes(CodePoint.MGRLVLLS); // place the managers and their levels in the buffer writeCodePoint4Bytes(CodePoint.AGENT, agent); writeCodePoint4Bytes(CodePoint.SQLAM, sqlam); writeCodePoint4Bytes(CodePoint.RDB, rdb); writeCodePoint4Bytes(CodePoint.SECMGR, secmgr); if (netAgent_.netConnection_.isXAConnection()) { if (xamgr != NetConfiguration.MGRLVL_NA) { writeCodePoint4Bytes(CodePoint.XAMGR, xamgr); } if (syncptmgr != NetConfiguration.MGRLVL_NA) { writeCodePoint4Bytes(CodePoint.SYNCPTMGR, syncptmgr); } if (rsyncmgr != NetConfiguration.MGRLVL_NA) { writeCodePoint4Bytes(CodePoint.RSYNCMGR, rsyncmgr); } } updateLengthBytes(); }
private void buildMGRLVLLS(int agent, int sqlam, int rdb, int secmgr, int xamgr, int syncptmgr, int rsyncmgr) throws SqlException { markLengthBytes(CodePoint.MGRLVLLS); // place the managers and their levels in the buffer writeCodePoint4Bytes(CodePoint.AGENT, agent); writeCodePoint4Bytes(CodePoint.SQLAM, sqlam); writeCodePoint4Bytes(CodePoint.RDB, rdb); writeCodePoint4Bytes(CodePoint.SECMGR, secmgr); if (netAgent_.netConnection_.isXAConnection()) { if (xamgr != NetConfiguration.MGRLVL_NA) { writeCodePoint4Bytes(CodePoint.XAMGR, xamgr); } if (syncptmgr != NetConfiguration.MGRLVL_NA) { writeCodePoint4Bytes(CodePoint.SYNCPTMGR, syncptmgr); } if (rsyncmgr != NetConfiguration.MGRLVL_NA) { writeCodePoint4Bytes(CodePoint.RSYNCMGR, rsyncmgr); } } updateLengthBytes(); }
createCommand(); markLengthBytes(CodePoint.ACCRDB);
createCommand(); markLengthBytes(CodePoint.ACCRDB);