Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.client.net
Class NetConnectionRequest  view NetConnectionRequest download NetConnectionRequest.java

java.lang.Object
  extended byorg.apache.derby.client.net.Request
      extended byorg.apache.derby.client.net.NetConnectionRequest
All Implemented Interfaces:
ConnectionRequestInterface
Direct Known Subclasses:
NetPackageRequest

public class NetConnectionRequest
extends Request
implements ConnectionRequestInterface


Field Summary
 
Fields inherited from class org.apache.derby.client.net.Request
bytes_, ccsidManager_, netAgent_, offset_, passwordIncluded_, passwordLength_, passwordStart_
 
Constructor Summary
(package private) NetConnectionRequest(NetAgent netAgent, CcsidManager ccsidManager, int bufferSize)
           
 
Method Summary
(package private)  void buildACCRDB(java.lang.String rdbnam, boolean readOnly, byte[] crrtkn, byte[] prddta, Typdef typdef)
           
(package private)  void buildACCSEC(int secmec, java.lang.String rdbnam, byte[] sectkn)
           
private  void buildCRRTKN(byte[] crrtkn)
           
(package private)  void buildDummyEXCSAT()
           
(package private)  void buildEXCSAT(java.lang.String externalName, int targetAgent, int targetSqlam, int targetRdb, int targetSecmgr, int targetCmntcpip, int targetCmnappc, int targetXamgr, int targetSyncptmgr, int targetRsyncmgr)
           
private  void buildEXTNAM(java.lang.String extnam)
           
private  void buildMGRLVLLS(int agent, int sqlam, int rdb, int secmgr, int xamgr, int syncptmgr, int rsyncmgr)
           
private  void buildPASSWORD(java.lang.String password)
           
private  void buildPRDDTA(byte[] prddta)
           
private  void buildPRDID()
           
private  void buildRDBACCCL()
           
private  void buildRDBALWUPD(boolean readOnly)
           
(package private)  void buildRDBCMM()
           
private  void buildRDBNAM(java.lang.String rdbnam)
           
(package private)  void buildRDBRLLBCK()
           
(package private)  void buildSECCHK(int secmec, java.lang.String rdbnam, java.lang.String user, java.lang.String password, byte[] sectkn, byte[] sectkn2)
           
private  void buildSECMEC(int secmec)
           
private  void buildSECTKN(byte[] sectkn)
           
private  void buildSRVCLSNM()
           
private  void buildSRVNAM(java.lang.String srvnam)
           
private  void buildSRVRLSLV()
           
(package private)  void buildSYNCCTLCommit(int xaFlags, javax.transaction.xa.Xid xid)
           
(package private)  void buildSYNCCTLMigrate()
           
(package private)  void buildSYNCCTLRollback(int xaFlags)
           
private  void buildTYPDEFNAM(java.lang.String typdefnam)
           
(package private)  void buildTYPDEFOVR(boolean sendCcsidSbc, int ccsidSbc, boolean sendCcsidDbc, int ccsidDbc, boolean sendCcsidMbc, int ccsidMbc)
           
private  void buildUSRID(java.lang.String usrid)
           
(package private)  void writeAccessDatabase(java.lang.String rdbnam, boolean readOnly, byte[] correlationToken, byte[] productData, Typdef typdef)
           
(package private)  void writeAccessSecurity(int securityMechanism, java.lang.String databaseName, byte[] publicKey)
           
 void writeCommitSubstitute(NetConnection connection)
           
(package private)  void writeDummyExchangeServerAttributes()
           
(package private)  void writeExchangeServerAttributes(java.lang.String externalName, int targetAgent, int targetSqlam, int targetRdb, int targetSecmgr, int targetCmntcpip, int targetCmnappc, int targetXamgr, int targetSyncptmgr, int targetRsyncmgr)
           
 void writeForget(int codepoint, int value)
           
 void writeLocalCommit(NetConnection connection)
           
 void writeLocalRollback(NetConnection connection)
           
 void writeLocalXACommit(NetConnection conn)
           
 void writeLocalXARollback(NetConnection conn)
           
 void writeLocalXAStart(NetConnection connection)
           
(package private)  void writeNullXID(int codepoint)
           
 void writeReleaseConversation(int codepoint, int value)
           
(package private)  void writeSecurityCheck(int securityMechanism, java.lang.String databaseName, java.lang.String userid, java.lang.String password, byte[] encryptedUserid, byte[] encryptedPassword)
           
 void writeSYNCType(int codepoint, int syncType)
           
protected  void writeXaCommit(NetConnection conn, javax.transaction.xa.Xid xid)
           
 void writeXaEndUnitOfWork(NetConnection conn)
           
(package private)  void writeXAFlags(int codepoint, int xaFlags)
           
protected  void writeXaForget(NetConnection conn, javax.transaction.xa.Xid xid)
           
protected  void writeXaPrepare(NetConnection conn)
           
protected  void writeXaRecover(NetConnection conn, int flag)
           
protected  void writeXaRollback(NetConnection conn, javax.transaction.xa.Xid xid)
           
 void writeXaStartUnitOfWork(NetConnection conn)
           
(package private)  void writeXID(int codepoint, javax.transaction.xa.Xid xid)
           
 
Methods inherited from class org.apache.derby.client.net.Request
buildTripletHeader, clearBuffer, createCommand, createCommandData, createEncryptedCommandData, createXACommand, doesRequestContainData, ensureLength, finalizeDssLength, finalizePreviousChainedDss, flush, flushScalarStreamSegment, initialize, markForCachingPKGNAMCSN, markLengthBytes, maskOutPassword, padBytes, padScalarStreamForError, popMarkForCachingPKGNAMCSN, prepScalarStream, sendBytes, setCcsidMgr, setCorrelationID, setDssLengthLocation, updateLengthBytes, write1Byte, write2Bytes, write4Bytes, writeBigDecimal, writeBoolean, writeByte, writeBytes, writeBytes, writeCodePoint4Bytes, writeDate, writeDDMString, writeDouble, writeEXTDTALengthCodePointForEncryption, writeFloat, writeInt, writeIntFdocaData, writeLDBytes, writeLengthCodePoint, writeLidAndLengths, writeLidAndLengths, writeLong, writeLongFdocaData, writeScalar1Byte, writeScalar2Bytes, writeScalar4Bytes, writeScalar8Bytes, writeScalarBytes, writeScalarBytes, writeScalarBytes, writeScalarHeader, writeScalarPaddedBytes, writeScalarPaddedBytes, writeScalarPaddedString, writeScalarPaddedString, writeScalarStream, writeScalarStream, writeScalarString, writeShort, writeShortFdocaData, writeSingleorMixedCcsidLDString, writeTime, writeTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetConnectionRequest

NetConnectionRequest(NetAgent netAgent,
                     CcsidManager ccsidManager,
                     int bufferSize)
Method Detail

writeExchangeServerAttributes

void writeExchangeServerAttributes(java.lang.String externalName,
                                   int targetAgent,
                                   int targetSqlam,
                                   int targetRdb,
                                   int targetSecmgr,
                                   int targetCmntcpip,
                                   int targetCmnappc,
                                   int targetXamgr,
                                   int targetSyncptmgr,
                                   int targetRsyncmgr)
                             throws org.apache.derby.client.am.SqlException

writeDummyExchangeServerAttributes

void writeDummyExchangeServerAttributes()
                                  throws org.apache.derby.client.am.SqlException

writeAccessSecurity

void writeAccessSecurity(int securityMechanism,
                         java.lang.String databaseName,
                         byte[] publicKey)
                   throws org.apache.derby.client.am.SqlException

writeSecurityCheck

void writeSecurityCheck(int securityMechanism,
                        java.lang.String databaseName,
                        java.lang.String userid,
                        java.lang.String password,
                        byte[] encryptedUserid,
                        byte[] encryptedPassword)
                  throws org.apache.derby.client.am.SqlException

writeAccessDatabase

void writeAccessDatabase(java.lang.String rdbnam,
                         boolean readOnly,
                         byte[] correlationToken,
                         byte[] productData,
                         Typdef typdef)
                   throws org.apache.derby.client.am.SqlException

writeCommitSubstitute

public void writeCommitSubstitute(NetConnection connection)
                           throws org.apache.derby.client.am.SqlException
Specified by:
writeCommitSubstitute in interface ConnectionRequestInterface

writeLocalCommit

public void writeLocalCommit(NetConnection connection)
                      throws org.apache.derby.client.am.SqlException
Specified by:
writeLocalCommit in interface ConnectionRequestInterface

writeLocalRollback

public void writeLocalRollback(NetConnection connection)
                        throws org.apache.derby.client.am.SqlException
Specified by:
writeLocalRollback in interface ConnectionRequestInterface

writeLocalXAStart

public void writeLocalXAStart(NetConnection connection)
                       throws org.apache.derby.client.am.SqlException
Specified by:
writeLocalXAStart in interface ConnectionRequestInterface

writeLocalXACommit

public void writeLocalXACommit(NetConnection conn)
                        throws org.apache.derby.client.am.SqlException
Specified by:
writeLocalXACommit in interface ConnectionRequestInterface

writeLocalXARollback

public void writeLocalXARollback(NetConnection conn)
                          throws org.apache.derby.client.am.SqlException
Specified by:
writeLocalXARollback in interface ConnectionRequestInterface

writeXaStartUnitOfWork

public void writeXaStartUnitOfWork(NetConnection conn)
                            throws org.apache.derby.client.am.SqlException

writeXaEndUnitOfWork

public void writeXaEndUnitOfWork(NetConnection conn)
                          throws org.apache.derby.client.am.SqlException

writeXaPrepare

protected void writeXaPrepare(NetConnection conn)
                       throws org.apache.derby.client.am.SqlException

writeXaCommit

protected void writeXaCommit(NetConnection conn,
                             javax.transaction.xa.Xid xid)
                      throws org.apache.derby.client.am.SqlException

writeXaRollback

protected void writeXaRollback(NetConnection conn,
                               javax.transaction.xa.Xid xid)
                        throws org.apache.derby.client.am.SqlException

writeXaRecover

protected void writeXaRecover(NetConnection conn,
                              int flag)
                       throws org.apache.derby.client.am.SqlException

writeXaForget

protected void writeXaForget(NetConnection conn,
                             javax.transaction.xa.Xid xid)
                      throws org.apache.derby.client.am.SqlException

writeSYNCType

public void writeSYNCType(int codepoint,
                          int syncType)

writeForget

public void writeForget(int codepoint,
                        int value)

writeReleaseConversation

public void writeReleaseConversation(int codepoint,
                                     int value)

writeNullXID

void writeNullXID(int codepoint)

writeXID

void writeXID(int codepoint,
              javax.transaction.xa.Xid xid)
        throws org.apache.derby.client.am.SqlException

writeXAFlags

void writeXAFlags(int codepoint,
                  int xaFlags)

buildRDBCMM

void buildRDBCMM()
           throws org.apache.derby.client.am.SqlException

buildRDBRLLBCK

void buildRDBRLLBCK()
              throws org.apache.derby.client.am.SqlException

buildEXCSAT

void buildEXCSAT(java.lang.String externalName,
                 int targetAgent,
                 int targetSqlam,
                 int targetRdb,
                 int targetSecmgr,
                 int targetCmntcpip,
                 int targetCmnappc,
                 int targetXamgr,
                 int targetSyncptmgr,
                 int targetRsyncmgr)
           throws org.apache.derby.client.am.SqlException

buildDummyEXCSAT

void buildDummyEXCSAT()
                throws org.apache.derby.client.am.SqlException

buildACCSEC

void buildACCSEC(int secmec,
                 java.lang.String rdbnam,
                 byte[] sectkn)
           throws org.apache.derby.client.am.SqlException

buildSECCHK

void buildSECCHK(int secmec,
                 java.lang.String rdbnam,
                 java.lang.String user,
                 java.lang.String password,
                 byte[] sectkn,
                 byte[] sectkn2)
           throws org.apache.derby.client.am.SqlException

buildACCRDB

void buildACCRDB(java.lang.String rdbnam,
                 boolean readOnly,
                 byte[] crrtkn,
                 byte[] prddta,
                 Typdef typdef)
           throws org.apache.derby.client.am.SqlException

buildSYNCCTLMigrate

void buildSYNCCTLMigrate()
                   throws org.apache.derby.client.am.SqlException

buildSYNCCTLCommit

void buildSYNCCTLCommit(int xaFlags,
                        javax.transaction.xa.Xid xid)
                  throws org.apache.derby.client.am.SqlException

buildSYNCCTLRollback

void buildSYNCCTLRollback(int xaFlags)
                    throws org.apache.derby.client.am.SqlException

buildEXTNAM

private void buildEXTNAM(java.lang.String extnam)
                  throws org.apache.derby.client.am.SqlException

buildSRVNAM

private void buildSRVNAM(java.lang.String srvnam)
                  throws org.apache.derby.client.am.SqlException

buildSRVRLSLV

private void buildSRVRLSLV()
                    throws org.apache.derby.client.am.SqlException

buildSRVCLSNM

private void buildSRVCLSNM()
                    throws org.apache.derby.client.am.SqlException

buildSECMEC

private void buildSECMEC(int secmec)
                  throws org.apache.derby.client.am.SqlException

buildRDBNAM

private void buildRDBNAM(java.lang.String rdbnam)
                  throws org.apache.derby.client.am.SqlException

buildSECTKN

private void buildSECTKN(byte[] sectkn)
                  throws org.apache.derby.client.am.SqlException

buildUSRID

private void buildUSRID(java.lang.String usrid)
                 throws org.apache.derby.client.am.SqlException

buildPASSWORD

private void buildPASSWORD(java.lang.String password)
                    throws org.apache.derby.client.am.SqlException

buildRDBACCCL

private void buildRDBACCCL()
                    throws org.apache.derby.client.am.SqlException

buildPRDID

private void buildPRDID()
                 throws org.apache.derby.client.am.SqlException

buildPRDDTA

private void buildPRDDTA(byte[] prddta)
                  throws org.apache.derby.client.am.SqlException

buildTYPDEFNAM

private void buildTYPDEFNAM(java.lang.String typdefnam)
                     throws org.apache.derby.client.am.SqlException

buildTYPDEFOVR

void buildTYPDEFOVR(boolean sendCcsidSbc,
                    int ccsidSbc,
                    boolean sendCcsidDbc,
                    int ccsidDbc,
                    boolean sendCcsidMbc,
                    int ccsidMbc)
              throws org.apache.derby.client.am.SqlException

buildMGRLVLLS

private void buildMGRLVLLS(int agent,
                           int sqlam,
                           int rdb,
                           int secmgr,
                           int xamgr,
                           int syncptmgr,
                           int rsyncmgr)
                    throws org.apache.derby.client.am.SqlException

buildCRRTKN

private void buildCRRTKN(byte[] crrtkn)
                  throws org.apache.derby.client.am.SqlException

buildRDBALWUPD

private void buildRDBALWUPD(boolean readOnly)
                     throws org.apache.derby.client.am.SqlException