|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> [ drda overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.drda
Class XADatabase

java.lang.Objectorg.apache.derby.impl.drda.Database
org.apache.derby.impl.drda.XADatabase
- class XADatabase
- extends Database
| 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,
org.apache.derby.iapi.tools.i18n.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 |
xaDataSource
private org.apache.derby.jdbc.EmbeddedXADataSource xaDataSource
xaResource
private javax.transaction.xa.XAResource xaResource
xaConnection
private javax.sql.XAConnection xaConnection
dbName
protected java.lang.String dbName
shortDbName
protected java.lang.String shortDbName
attrString
java.lang.String attrString
securityMechanism
protected int securityMechanism
userId
protected java.lang.String userId
password
protected java.lang.String password
decryptedUserId
protected java.lang.String decryptedUserId
decryptedPassword
protected java.lang.String decryptedPassword
rdbAllowUpdates
protected boolean rdbAllowUpdates
accessCount
protected int accessCount
publicKeyIn
protected byte[] publicKeyIn
publicKeyOut
protected byte[] publicKeyOut
crrtkn
protected byte[] crrtkn
typDefNam
protected java.lang.String typDefNam
byteOrder
protected int byteOrder
ccsidSBC
protected int ccsidSBC
ccsidDBC
protected int ccsidDBC
ccsidMBC
protected int ccsidMBC
ccsidSBCEncoding
protected java.lang.String ccsidSBCEncoding
ccsidDBCEncoding
protected java.lang.String ccsidDBCEncoding
ccsidMBCEncoding
protected java.lang.String ccsidMBCEncoding
RDBUPDRM_sent
protected boolean RDBUPDRM_sent
sendTRGDFTRT
protected boolean sendTRGDFTRT
defaultStatement
DRDAStatement defaultStatement
stmtTable
java.util.Hashtable stmtTable
forXA
boolean forXA
| Constructor Detail |
XADatabase
protected XADatabase(java.lang.String dbName)
| Method Detail |
makeConnection
protected java.sql.Connection makeConnection(java.util.Properties p) throws java.sql.SQLException
- Make a new connection using the database name and set
the connection in the database
- Overrides:
makeConnectionin classDatabase
setXAResource
protected void setXAResource(javax.transaction.xa.XAResource resource)
- SetXAResource
setDrdaID
protected void setDrdaID(java.lang.String drdaID)
setPrepareIsolation
protected void setPrepareIsolation(int level)
throws java.sql.SQLException
- Set the internal isolation level to use for preparing statements.
Subsequent prepares will use this isoalation level
- Overrides:
setPrepareIsolationin classDatabase
getPrepareIsolation
protected int getPrepareIsolation()
throws java.sql.SQLException
- get prepare isolation level for this connection.
- Overrides:
getPrepareIsolationin classDatabase
getXAResource
protected javax.transaction.xa.XAResource getXAResource()
- get XA Resource for this connection
setConnection
protected void setConnection(java.sql.Connection conn) throws java.sql.SQLException
- Set connection and create the SQL statement for the default statement
getConnection
protected java.sql.Connection getConnection()
- Get the connection
getCurrentStatement
protected DRDAStatement getCurrentStatement()
- Get current DRDA statement
getDefaultStatement
protected DRDAStatement getDefaultStatement()
- Get default statement for use in EXCIMM
getDefaultStatement
protected DRDAStatement getDefaultStatement(java.lang.String pkgnamcsn)
- Get default statement for use in EXCIMM with specified pkgnamcsn
The pkgnamcsn has the encoded isolation level
getPreparedStatement
protected java.sql.PreparedStatement getPreparedStatement(java.lang.String pkgnamcsn) throws java.sql.SQLException
- Get prepared statement based on pkgnamcsn
newDRDAStatement
protected DRDAStatement newDRDAStatement(java.lang.String pkgnamcsn) throws java.sql.SQLException
- 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.
getDRDAStatement
protected DRDAStatement getDRDAStatement(java.lang.String pkgnamcsn) throws java.sql.SQLException
- Get DRDA statement based on pkgnamcsn
appendAttrString
java.lang.String appendAttrString(java.util.Properties p)
getResultSet
protected java.sql.ResultSet getResultSet(java.lang.String pkgnamcsn) throws java.sql.SQLException
- Get result set
setResultSet
protected void setResultSet(java.sql.ResultSet value) throws java.sql.SQLException
- Set result set
storeStatement
protected void storeStatement(DRDAStatement stmt) throws java.sql.SQLException
- Store DRDA prepared statement
removeStatement
protected void removeStatement(DRDAStatement stmt) throws java.sql.SQLException
setCurrentStatement
protected void setCurrentStatement(DRDAStatement stmt)
- Make statement the current statement
commit
protected void commit()
throws java.sql.SQLException
rollback
protected void rollback()
throws java.sql.SQLException
close
protected void close()
throws java.sql.SQLException
- Close the connection and clean up the statement table
buildRuntimeInfo
protected java.lang.String buildRuntimeInfo(java.lang.String indent, org.apache.derby.iapi.tools.i18n.LocalizedResource localLangUtil)
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> [ drda overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC