Java Doc for ManagedConnectionImpl.java in » EJB-Server-resin-3.1.5 » resin » com » caucho » sql » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
EJB Server resin 3.1.5
»
resin
»
com.caucho.sql
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
com.caucho.sql
.ManagedConnectionImpl
ManagedConnectionImpl
public
class ManagedConnectionImpl implements ManagedConnection,
javax.sql.ConnectionEventListener
(Code)
Represents a single pooled connection. For the most part, it just passes the requests to the underlying JDBC connection.
Closing the connection will return the real connection to the pool and close any statements.
Inner Class :class LocalTransactionImpl implements LocalTransaction
Field Summary
protected
static L10N
L
final
protected
static
Logger
log
Constructor Summary
ManagedConnectionImpl
(
ManagedFactoryImpl
factory,
DriverConfig
driver,
ConnectionConfig
connConfig,
Credential
credentials)
Method Summary
public
void
addConnectionEventListener
(ConnectionEventListener listener)
Adds a connection event listener.
public
void
associateConnection
(
Object
connection)
Associates the associate connection.
public
void
cleanup
()
Cleans up the instance.
public
void
closeEvent
(
UserConnection
userConn)
Sends the close event.
public
void
connectionClosed
(
javax.sql.ConnectionEvent
event)
public
void
connectionErrorOccurred
(
javax.sql.ConnectionEvent
event)
public
void
destroy
()
Destroys the physical connection.
public
void
fatalEvent
()
Sends the fatal event.
public
void
fatalEvent
(
Exception
e)
Sends the fatal event.
public
Object
getConnection
(
Subject
subject, ConnectionRequestInfo info)
Returns the underlying connection.
Credential
getCredentials
()
Returns the credentials.
DBPoolImpl
getDBPool
()
Returns the db pool.
public
Class
getDriverClass
()
Connection
getDriverConnection
()
Returns the driver connection.
public
LocalTransaction
getLocalTransaction
()
Returns the XA resource for the connection.
public
PrintWriter
getLogWriter
()
Gets the log writer.
public
ManagedConnectionMetaData
getMetaData
()
Returns the meta data.
public
String
getURL
()
public
XAResource
getXAResource
()
Returns the XA resource for the connection.
boolean
isValid
()
Returns true if the connection is valid.
boolean
isWrapStatements
()
Returns true if statements should be wrapped.
void
killPool
()
When closed, the item is not put into the idle pool.
PreparedStatement
prepareStatement
(
UserConnection
uConn,
String
sql, int resultType)
Returns a new or cached prepared statement.
PreparedStatement
prepareStatement
(
UserConnection
uConn,
String
sql)
Returns a new or cached prepared statement.
void
remove
(
PreparedStatementKey
key)
Removes a cached item.
public
void
removeConnectionEventListener
(ConnectionEventListener listener)
Removes a connection event listener.
public
void
sendFatalEvent
(
Exception
e)
Sends the fatal event.
public
void
setAutoCommit
(boolean autoCommit)
Sets the auto-commit.
public
void
setCatalog
(
String
catalog)
Sets the JDBC catalog.
public
void
setIsolation
(int isolation)
Sets the isolation.
public
void
setLogWriter
(
PrintWriter
out)
Sets the log writer.
public
void
setReadOnly
(boolean readOnly)
Sets the read only attribute.
public
void
setTransactionIsolation
(int isolation)
Sets the connection's isolation.
public
void
setTypeMap
(
Map
map)
Sets the connection's type map.
public
String
toString
()
Field Detail
L
protected
static L10N L
(Code)
log
final
protected
static
Logger
log
(Code)
Constructor Detail
ManagedConnectionImpl
ManagedConnectionImpl(
ManagedFactoryImpl
factory,
DriverConfig
driver,
ConnectionConfig
connConfig,
Credential
credentials) throws
SQLException
(Code)
Method Detail
addConnectionEventListener
public
void addConnectionEventListener(ConnectionEventListener listener)
(Code)
Adds a connection event listener.
associateConnection
public
void associateConnection(
Object
connection) throws ResourceException
(Code)
Associates the associate connection.
cleanup
public
void cleanup() throws ResourceException
(Code)
Cleans up the instance.
closeEvent
public
void closeEvent(
UserConnection
userConn)
(Code)
Sends the close event.
connectionClosed
public
void connectionClosed(
javax.sql.ConnectionEvent
event)
(Code)
connectionErrorOccurred
public
void connectionErrorOccurred(
javax.sql.ConnectionEvent
event)
(Code)
destroy
public
void destroy() throws ResourceException
(Code)
Destroys the physical connection.
fatalEvent
public
void fatalEvent()
(Code)
Sends the fatal event.
fatalEvent
public
void fatalEvent(
Exception
e)
(Code)
Sends the fatal event.
getConnection
public
Object
getConnection(
Subject
subject, ConnectionRequestInfo info) throws ResourceException
(Code)
Returns the underlying connection.
getCredentials
Credential
getCredentials()
(Code)
Returns the credentials.
getDBPool
DBPoolImpl
getDBPool()
(Code)
Returns the db pool.
getDriverClass
public
Class
getDriverClass()
(Code)
getDriverConnection
Connection
getDriverConnection()
(Code)
Returns the driver connection.
getLocalTransaction
public
LocalTransaction getLocalTransaction() throws ResourceException
(Code)
Returns the XA resource for the connection.
getLogWriter
public
PrintWriter
getLogWriter() throws ResourceException
(Code)
Gets the log writer.
getMetaData
public
ManagedConnectionMetaData getMetaData() throws ResourceException
(Code)
Returns the meta data.
getURL
public
String
getURL()
(Code)
getXAResource
public
XAResource
getXAResource() throws ResourceException
(Code)
Returns the XA resource for the connection.
isValid
boolean isValid()
(Code)
Returns true if the connection is valid.
isWrapStatements
boolean isWrapStatements()
(Code)
Returns true if statements should be wrapped.
killPool
void killPool()
(Code)
When closed, the item is not put into the idle pool.
prepareStatement
PreparedStatement
prepareStatement(
UserConnection
uConn,
String
sql, int resultType) throws
SQLException
(Code)
Returns a new or cached prepared statement.
prepareStatement
PreparedStatement
prepareStatement(
UserConnection
uConn,
String
sql) throws
SQLException
(Code)
Returns a new or cached prepared statement.
remove
void remove(
PreparedStatementKey
key)
(Code)
Removes a cached item.
removeConnectionEventListener
public
void removeConnectionEventListener(ConnectionEventListener listener)
(Code)
Removes a connection event listener.
sendFatalEvent
public
void sendFatalEvent(
Exception
e)
(Code)
Sends the fatal event.
setAutoCommit
public
void setAutoCommit(boolean autoCommit) throws
SQLException
(Code)
Sets the auto-commit.
setCatalog
public
void setCatalog(
String
catalog) throws
SQLException
(Code)
Sets the JDBC catalog.
setIsolation
public
void setIsolation(int isolation) throws
SQLException
(Code)
Sets the isolation.
setLogWriter
public
void setLogWriter(
PrintWriter
out) throws ResourceException
(Code)
Sets the log writer.
setReadOnly
public
void setReadOnly(boolean readOnly) throws
SQLException
(Code)
Sets the read only attribute.
setTransactionIsolation
public
void setTransactionIsolation(int isolation) throws
SQLException
(Code)
Sets the connection's isolation.
setTypeMap
public
void setTypeMap(
Map
map) throws
SQLException
(Code)
Sets the connection's type map.
toString
public
String
toString()
(Code)
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.