submarine.connectors.jdbc
Class JDBCRessource

java.lang.Object
  |
  +--submarine.connectors.jdbc.JDBCRessource
All Implemented Interfaces:
Resource, XMLConfigurable

public class JDBCRessource
extends java.lang.Object
implements Resource


Field Summary
private  java.lang.String driver
           
private  int initial
           
private  java.lang.String login
           
private  ConnectionManager manager
           
private  int maxextend
           
private  int maxsize
           
private  java.lang.String passwd
           
private  java.lang.String urlCnx
           
 
Constructor Summary
JDBCRessource()
           
 
Method Summary
 void close()
           
private static void example()
           
 java.sql.Connection getConnection()
           
 void init(org.w3c.dom.Element xml)
           
 void open()
           
 void releaseConnection(java.sql.Connection con)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

manager

private ConnectionManager manager

driver

private java.lang.String driver

urlCnx

private java.lang.String urlCnx

login

private java.lang.String login

passwd

private java.lang.String passwd

initial

private int initial

maxsize

private int maxsize

maxextend

private int maxextend
Constructor Detail

JDBCRessource

public JDBCRessource()
Method Detail

open

public void open()
Specified by:
open in interface Resource

close

public void close()
Specified by:
close in interface Resource

init

public void init(org.w3c.dom.Element xml)
          throws java.lang.Exception
Specified by:
init in interface XMLConfigurable
Following copied from interface: submarine.core.XMLConfigurable
Parameters:
xml -  
Throws:
java.lang.Exception -  

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception

releaseConnection

public void releaseConnection(java.sql.Connection con)

example

private static void example()

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.