|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.infoengine.connector.IeManagedConnectionFactory
public class IeManagedConnectionFactory
this object typically interacts with an application server for creating ConnectionFactories and ManagedConnections and to match ManagedConnections for connection requests with pooled ManagedConnections.
| Constructor Summary | |
|---|---|
IeManagedConnectionFactory()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
createConnectionFactory()
create a default ConnectionFactory for us in a "non managed" environment. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
create a ConnectionFactory with a specific ConnectionManager. |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
create a new managed connection |
boolean |
equals(java.lang.Object other)
compare this ManagedConnectionFactory to another for equality |
java.lang.String |
getConnectionImplementation()
get the connection implementation this ManagedConnectionFactory uses when creating ConnectionFactories |
java.lang.String |
getConnectionProperties()
get the connection implementation this ManagedConnectionFactory uses when creating ConnectionFactories |
java.lang.String |
getLogLevel()
get the log level |
java.io.PrintWriter |
getLogWriter()
get the PrintWriter instance this ManagedConnectionFactory is using |
int |
hashCode()
generate this objects hashCode. |
void |
loadConnectionProperties(java.io.InputStream is)
load connection properties from an input stream |
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
given a set of ManagedConnections return one that matches the subject and connection request info criteria. |
void |
setConnectionImplementation(java.lang.String impl)
set the connection implementation this ManagedConnectionFactory is to use when producing ConnectionFactories. |
void |
setConnectionProperties(java.lang.String props)
set the connection implementation this ManagedConnectionFactory is to use when producing ConnectionFactories. |
void |
setConnectionProperty(java.lang.String name,
java.lang.String value)
set a single connection property |
void |
setLogLevel(java.lang.String level)
set the log level. |
void |
setLogWriter(java.io.PrintWriter out)
set the PrintWriter this ManagedConnectionFactory should use to log info |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IeManagedConnectionFactory()
| Method Detail |
|---|
public java.lang.Object createConnectionFactory()
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactorycxManager - a connection manager
javax.resource.ResourceException - if something bad happens
public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactorysubject - security credentials supplied in a "container managed sign on" scenario.cxRequestInfo - connection request info supplied by appication
javax.resource.ResourceException - if something bad happenspublic boolean equals(java.lang.Object other)
equals in interface javax.resource.spi.ManagedConnectionFactoryequals in class java.lang.Object
public java.io.PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException - (not really)public int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactoryhashCode in class java.lang.Object
public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactoryconnectionSet - set of ManagedConnectionssubject - security credentials in connection requestcxRequestInfo - connection request info in connection request
javax.resource.ResourceException - (not really)
public void setLogWriter(java.io.PrintWriter out)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionFactoryout - the PrintWriter
javax.resource.ResourceException - (not really)
public void setConnectionImplementation(java.lang.String impl)
throws java.beans.PropertyVetoException
impl - the connection implementation
java.beans.PropertyVetoException - if someone doesn't like the new valuepublic java.lang.String getConnectionImplementation()
public void loadConnectionProperties(java.io.InputStream is)
throws java.io.IOException
is - the property input stream
java.io.IOException
public void setConnectionProperty(java.lang.String name,
java.lang.String value)
name - the property namevalue - the property value
public void setConnectionProperties(java.lang.String props)
throws java.beans.PropertyVetoException
impl - the connection implementation
java.beans.PropertyVetoException - if someone doesn't like the new valuepublic java.lang.String getConnectionProperties()
public void setLogLevel(java.lang.String level)
throws java.beans.PropertyVetoException
level - string representation of an integer
java.beans.PropertyVetoException - if someone doesn't like the new valuepublic java.lang.String getLogLevel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||