org.apache.derby.client.net
Class NetConnectionRequest
java.lang.Object
org.apache.derby.client.net.Request
org.apache.derby.client.net.NetConnectionRequest
- All Implemented Interfaces:
- ConnectionRequestInterface
- Direct Known Subclasses:
- NetPackageRequest
public class NetConnectionRequest
- extends Request
- implements ConnectionRequestInterface
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,
boolean dontSendOnConversionError)
Relational Database Name specifies the name of a relational database
of the server. |
(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 |
writeXATimeout(int codepoint,
long xaTimeout)
|
(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, flushExistingDSS, flushScalarStreamSegment, 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, writeFloat, writeInt, writeIntFdocaData, writeLDBytes, writeLengthCodePoint, writeLidAndLengths, writeLidAndLengths, writeLong, writeLong6Bytes, writeLongFdocaData, writeScalar1Byte, writeScalar2Bytes, writeScalar4Bytes, writeScalar8Bytes, writeScalarBytes, writeScalarBytes, writeScalarBytes, writeScalarHeader, writeScalarPaddedBytes, writeScalarPaddedBytes, writeScalarPaddedString, writeScalarStream, writeScalarStream, writeScalarStream, writeScalarStream, writeScalarString, writeScalarString, writeShort, writeShortFdocaData, writeSingleorMixedCcsidLDString, writeTime, writeTimestamp, writeUDT |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetConnectionRequest
NetConnectionRequest(NetAgent netAgent,
CcsidManager ccsidManager,
int bufferSize)
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 SqlException
- Throws:
SqlException
writeDummyExchangeServerAttributes
void writeDummyExchangeServerAttributes()
throws SqlException
- Throws:
SqlException
writeAccessSecurity
void writeAccessSecurity(int securityMechanism,
java.lang.String databaseName,
byte[] publicKey)
throws SqlException
- Throws:
SqlException
writeSecurityCheck
void writeSecurityCheck(int securityMechanism,
java.lang.String databaseName,
java.lang.String userid,
java.lang.String password,
byte[] encryptedUserid,
byte[] encryptedPassword)
throws SqlException
- Throws:
SqlException
writeAccessDatabase
void writeAccessDatabase(java.lang.String rdbnam,
boolean readOnly,
byte[] correlationToken,
byte[] productData,
Typdef typdef)
throws SqlException
- Throws:
SqlException
writeCommitSubstitute
public void writeCommitSubstitute(NetConnection connection)
throws SqlException
- Specified by:
writeCommitSubstitute
in interface ConnectionRequestInterface
- Throws:
SqlException
writeLocalCommit
public void writeLocalCommit(NetConnection connection)
throws SqlException
- Specified by:
writeLocalCommit
in interface ConnectionRequestInterface
- Throws:
SqlException
writeLocalRollback
public void writeLocalRollback(NetConnection connection)
throws SqlException
- Specified by:
writeLocalRollback
in interface ConnectionRequestInterface
- Throws:
SqlException
writeLocalXAStart
public void writeLocalXAStart(NetConnection connection)
throws SqlException
- Specified by:
writeLocalXAStart
in interface ConnectionRequestInterface
- Throws:
SqlException
writeLocalXACommit
public void writeLocalXACommit(NetConnection conn)
throws SqlException
- Specified by:
writeLocalXACommit
in interface ConnectionRequestInterface
- Throws:
SqlException
writeLocalXARollback
public void writeLocalXARollback(NetConnection conn)
throws SqlException
- Specified by:
writeLocalXARollback
in interface ConnectionRequestInterface
- Throws:
SqlException
writeXaStartUnitOfWork
public void writeXaStartUnitOfWork(NetConnection conn)
throws SqlException
- Throws:
SqlException
writeXaEndUnitOfWork
public void writeXaEndUnitOfWork(NetConnection conn)
throws SqlException
- Throws:
SqlException
writeXaPrepare
protected void writeXaPrepare(NetConnection conn)
throws SqlException
- Throws:
SqlException
writeXaCommit
protected void writeXaCommit(NetConnection conn,
javax.transaction.xa.Xid xid)
throws SqlException
- Throws:
SqlException
writeXaRollback
protected void writeXaRollback(NetConnection conn,
javax.transaction.xa.Xid xid)
throws SqlException
- Throws:
SqlException
writeXaRecover
protected void writeXaRecover(NetConnection conn,
int flag)
throws SqlException
- Throws:
SqlException
writeXaForget
protected void writeXaForget(NetConnection conn,
javax.transaction.xa.Xid xid)
throws SqlException
- Throws:
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 SqlException
- Throws:
SqlException
writeXAFlags
void writeXAFlags(int codepoint,
int xaFlags)
writeXATimeout
void writeXATimeout(int codepoint,
long xaTimeout)
buildRDBCMM
void buildRDBCMM()
throws SqlException
- Throws:
SqlException
buildRDBRLLBCK
void buildRDBRLLBCK()
throws SqlException
- Throws:
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 SqlException
- Throws:
SqlException
buildDummyEXCSAT
void buildDummyEXCSAT()
throws SqlException
- Throws:
SqlException
buildACCSEC
void buildACCSEC(int secmec,
java.lang.String rdbnam,
byte[] sectkn)
throws SqlException
- Throws:
SqlException
buildSECCHK
void buildSECCHK(int secmec,
java.lang.String rdbnam,
java.lang.String user,
java.lang.String password,
byte[] sectkn,
byte[] sectkn2)
throws SqlException
- Throws:
SqlException
buildACCRDB
void buildACCRDB(java.lang.String rdbnam,
boolean readOnly,
byte[] crrtkn,
byte[] prddta,
Typdef typdef)
throws SqlException
- Throws:
SqlException
buildSYNCCTLMigrate
void buildSYNCCTLMigrate()
throws SqlException
- Throws:
SqlException
buildSYNCCTLCommit
void buildSYNCCTLCommit(int xaFlags,
javax.transaction.xa.Xid xid)
throws SqlException
- Throws:
SqlException
buildSYNCCTLRollback
void buildSYNCCTLRollback(int xaFlags)
throws SqlException
- Throws:
SqlException
buildEXTNAM
private void buildEXTNAM(java.lang.String extnam)
throws SqlException
- Throws:
SqlException
buildSRVNAM
private void buildSRVNAM(java.lang.String srvnam)
throws SqlException
- Throws:
SqlException
buildSRVRLSLV
private void buildSRVRLSLV()
throws SqlException
- Throws:
SqlException
buildSRVCLSNM
private void buildSRVCLSNM()
throws SqlException
- Throws:
SqlException
buildSECMEC
private void buildSECMEC(int secmec)
throws SqlException
- Throws:
SqlException
buildRDBNAM
private void buildRDBNAM(java.lang.String rdbnam,
boolean dontSendOnConversionError)
throws SqlException
- Relational Database Name specifies the name of a relational database
of the server.
if length of RDB name <= 18 characters, there is not change to the format
of the RDB name. The length of the RDBNAM remains fixed at 18 which includes
any right bland padding if necessary.
if length of the RDB name is > 18 characters, the length of the RDB name is
identical to the length of the RDB name. No right blank padding is required.
- Parameters:
rdbnam
- name of the database.dontSendOnConversionError
- omit sending the RDBNAM if there is an
exception converting to EBCDIC. This will be used by ACCSEC to defer
sending the RDBNAM to SECCHK if it can't be converted.
- Throws:
SqlException
buildSECTKN
private void buildSECTKN(byte[] sectkn)
throws SqlException
- Throws:
SqlException
buildUSRID
private void buildUSRID(java.lang.String usrid)
throws SqlException
- Throws:
SqlException
buildPASSWORD
private void buildPASSWORD(java.lang.String password)
throws SqlException
- Throws:
SqlException
buildRDBACCCL
private void buildRDBACCCL()
throws SqlException
- Throws:
SqlException
buildPRDID
private void buildPRDID()
throws SqlException
- Throws:
SqlException
buildPRDDTA
private void buildPRDDTA(byte[] prddta)
throws SqlException
- Throws:
SqlException
buildTYPDEFNAM
private void buildTYPDEFNAM(java.lang.String typdefnam)
throws SqlException
- Throws:
SqlException
buildTYPDEFOVR
void buildTYPDEFOVR(boolean sendCcsidSbc,
int ccsidSbc,
boolean sendCcsidDbc,
int ccsidDbc,
boolean sendCcsidMbc,
int ccsidMbc)
throws SqlException
- Throws:
SqlException
buildMGRLVLLS
private void buildMGRLVLLS(int agent,
int sqlam,
int rdb,
int secmgr,
int xamgr,
int syncptmgr,
int rsyncmgr)
throws SqlException
- Throws:
SqlException
buildCRRTKN
private void buildCRRTKN(byte[] crrtkn)
throws SqlException
- Throws:
SqlException
buildRDBALWUPD
private void buildRDBALWUPD(boolean readOnly)
throws SqlException
- Throws:
SqlException
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.