|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.drda.Database
org.apache.derby.impl.drda.XADatabase
Field Summary | |
protected int |
accessCount
|
(package private) java.lang.String |
attrString
|
protected int |
byteOrder
|
protected int |
ccsidDBC
|
protected java.lang.String |
ccsidDBCEncoding
|
protected int |
ccsidMBC
|
protected java.lang.String |
ccsidMBCEncoding
|
protected int |
ccsidSBC
|
protected java.lang.String |
ccsidSBCEncoding
|
protected byte[] |
crrtkn
|
protected java.lang.String |
dbName
|
protected java.lang.String |
decryptedPassword
|
protected java.lang.String |
decryptedUserId
|
(package private) DRDAStatement |
defaultStatement
|
(package private) boolean |
forXA
|
protected java.lang.String |
password
|
protected byte[] |
publicKeyIn
|
protected byte[] |
publicKeyOut
|
protected boolean |
rdbAllowUpdates
|
protected boolean |
RDBUPDRM_sent
|
protected int |
securityMechanism
|
protected boolean |
sendTRGDFTRT
|
protected java.lang.String |
shortDbName
|
(package private) java.util.Hashtable |
stmtTable
|
protected java.lang.String |
typDefNam
|
protected java.lang.String |
userId
|
private javax.sql.XAConnection |
xaConnection
|
private EmbeddedXADataSource |
xaDataSource
|
private javax.transaction.xa.XAResource |
xaResource
|
Constructor Summary | |
protected |
XADatabase(java.lang.String dbName)
|
Method Summary | |
(package private) java.lang.String |
appendAttrString(java.util.Properties p)
|
protected java.lang.String |
buildRuntimeInfo(java.lang.String indent,
LocalizedResource localLangUtil)
|
protected void |
close()
Close the connection and clean up the statement table |
protected void |
commit()
|
protected java.sql.Connection |
getConnection()
Get the connection |
protected DRDAStatement |
getCurrentStatement()
Get current DRDA statement |
protected DRDAStatement |
getDefaultStatement()
Get default statement for use in EXCIMM |
protected DRDAStatement |
getDefaultStatement(java.lang.String pkgnamcsn)
Get default statement for use in EXCIMM with specified pkgnamcsn The pkgnamcsn has the encoded isolation level |
protected DRDAStatement |
getDRDAStatement(java.lang.String pkgnamcsn)
Get DRDA statement based on pkgnamcsn |
protected java.sql.PreparedStatement |
getPreparedStatement(java.lang.String pkgnamcsn)
Get prepared statement based on pkgnamcsn |
protected int |
getPrepareIsolation()
get prepare isolation level for this connection. |
protected java.sql.ResultSet |
getResultSet(java.lang.String pkgnamcsn)
Get result set |
protected javax.transaction.xa.XAResource |
getXAResource()
get XA Resource for this connection |
protected java.sql.Connection |
makeConnection(java.util.Properties p)
Make a new connection using the database name and set the connection in the database |
protected DRDAStatement |
newDRDAStatement(java.lang.String pkgnamcsn)
Get a new DRDA statement and store it in the stmtTable if stortStmt is true If possible recycle an existing statement If we are asking for one with the same name it means it was already closed. |
protected void |
removeStatement(DRDAStatement stmt)
|
protected void |
rollback()
|
protected void |
setConnection(java.sql.Connection conn)
Set connection and create the SQL statement for the default statement |
protected void |
setCurrentStatement(DRDAStatement stmt)
Make statement the current statement |
protected void |
setDrdaID(java.lang.String drdaID)
Set DRDA id for this connection |
protected void |
setPrepareIsolation(int level)
Set the internal isolation level to use for preparing statements. |
protected void |
setResultSet(java.sql.ResultSet value)
Set result set |
protected void |
setXAResource(javax.transaction.xa.XAResource resource)
SetXAResource |
protected void |
storeStatement(DRDAStatement stmt)
Store DRDA prepared statement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private EmbeddedXADataSource xaDataSource
private javax.transaction.xa.XAResource xaResource
private javax.sql.XAConnection xaConnection
protected java.lang.String dbName
protected java.lang.String shortDbName
java.lang.String attrString
protected int securityMechanism
protected java.lang.String userId
protected java.lang.String password
protected java.lang.String decryptedUserId
protected java.lang.String decryptedPassword
protected boolean rdbAllowUpdates
protected int accessCount
protected byte[] publicKeyIn
protected byte[] publicKeyOut
protected byte[] crrtkn
protected java.lang.String typDefNam
protected int byteOrder
protected int ccsidSBC
protected int ccsidDBC
protected int ccsidMBC
protected java.lang.String ccsidSBCEncoding
protected java.lang.String ccsidDBCEncoding
protected java.lang.String ccsidMBCEncoding
protected boolean RDBUPDRM_sent
protected boolean sendTRGDFTRT
DRDAStatement defaultStatement
java.util.Hashtable stmtTable
boolean forXA
Constructor Detail |
protected XADatabase(java.lang.String dbName)
Method Detail |
protected java.sql.Connection makeConnection(java.util.Properties p) throws java.sql.SQLException
makeConnection
in class Database
p
- Properties for connection attributes to pass to connect
java.sql.SQLException
protected void setXAResource(javax.transaction.xa.XAResource resource)
resource
- XAResource for this connectionprotected void setDrdaID(java.lang.String drdaID)
setDrdaID
in class Database
drdaID
- protected void setPrepareIsolation(int level) throws java.sql.SQLException
setPrepareIsolation
in class Database
level
- internal isolation level
java.sql.SQLException
BrokeredConnection.setPrepareIsolation(int)
protected int getPrepareIsolation() throws java.sql.SQLException
getPrepareIsolation
in class Database
java.sql.SQLException
protected javax.transaction.xa.XAResource getXAResource()
protected void setConnection(java.sql.Connection conn) throws java.sql.SQLException
conn
- Connection
java.sql.SQLException
protected java.sql.Connection getConnection()
protected DRDAStatement getCurrentStatement()
java.sql.SQLException
protected DRDAStatement getDefaultStatement()
protected DRDAStatement getDefaultStatement(java.lang.String pkgnamcsn)
pkgnamcsn
- package/ section # for statement
protected java.sql.PreparedStatement getPreparedStatement(java.lang.String pkgnamcsn) throws java.sql.SQLException
pkgnamcsn
- - key to access statement
java.sql.SQLException
protected DRDAStatement newDRDAStatement(java.lang.String pkgnamcsn) throws java.sql.SQLException
pkgnamcsn
- Package name and section
java.sql.SQLException
protected DRDAStatement getDRDAStatement(java.lang.String pkgnamcsn) throws java.sql.SQLException
pkgnamcsn
- - key to access statement
java.sql.SQLException
java.lang.String appendAttrString(java.util.Properties p)
protected java.sql.ResultSet getResultSet(java.lang.String pkgnamcsn) throws java.sql.SQLException
pkgnamcsn
- - key to access prepared statement
java.sql.SQLException
protected void setResultSet(java.sql.ResultSet value) throws java.sql.SQLException
value
-
java.sql.SQLException
protected void storeStatement(DRDAStatement stmt) throws java.sql.SQLException
stmt
- DRDA prepared statement
java.sql.SQLException
protected void removeStatement(DRDAStatement stmt) throws java.sql.SQLException
java.sql.SQLException
protected void setCurrentStatement(DRDAStatement stmt)
stmt
- protected void commit() throws java.sql.SQLException
java.sql.SQLException
protected void rollback() throws java.sql.SQLException
java.sql.SQLException
protected void close() throws java.sql.SQLException
java.sql.SQLException
- on conn.close() error to be handled in DRDAConnThread.protected java.lang.String buildRuntimeInfo(java.lang.String indent, LocalizedResource localLangUtil)
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |