public class JNDIConnectionFactory extends Object implements ConnectionFactoryIF
Modifier and Type | Field and Description |
---|---|
protected String |
jndiname |
protected static String |
propname |
Constructor and Description |
---|
JNDIConnectionFactory(Map<String,String> properties) |
JNDIConnectionFactory(String jndiname) |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL: Closes the connection factory.
|
Connection |
requestConnection()
INTERNAL: Requests a new connection object.
|
protected static final String propname
protected String jndiname
public JNDIConnectionFactory(String jndiname)
public Connection requestConnection() throws SQLException
ConnectionFactoryIF
requestConnection
in interface ConnectionFactoryIF
SQLException
public void close()
ConnectionFactoryIF
close
in interface ConnectionFactoryIF