The Encog Project

org.encog.util.db
Class RepeatableConnection

java.lang.Object
  extended by org.encog.util.db.RepeatableConnection

public class RepeatableConnection
extends java.lang.Object


Constructor Summary
RepeatableConnection(java.lang.String driver, java.lang.String url, java.lang.String uid, java.lang.String pwd)
           
 
Method Summary
 void close()
           
 RepeatableStatement createStatement(java.lang.String sql)
           
 java.sql.Connection getConnection()
           
 java.lang.String getDriver()
           
 java.lang.String getPwd()
           
 java.util.List<RepeatableStatement> getStatements()
           
 java.lang.String getUid()
           
 java.lang.String getUrl()
           
 void open()
          Open a database connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatableConnection

public RepeatableConnection(java.lang.String driver,
                            java.lang.String url,
                            java.lang.String uid,
                            java.lang.String pwd)
Method Detail

close

public void close()

createStatement

public RepeatableStatement createStatement(java.lang.String sql)

getConnection

public java.sql.Connection getConnection()
Returns:
the connection

getDriver

public java.lang.String getDriver()
Returns:
the driver

getPwd

public java.lang.String getPwd()
Returns:
the pwd

getStatements

public java.util.List<RepeatableStatement> getStatements()
Returns:
the statements

getUid

public java.lang.String getUid()
Returns:
the uid

getUrl

public java.lang.String getUrl()
Returns:
the url

open

public void open()
Open a database connection.

Throws:
java.lang.InstantiationException - Thrown if the database driver could not be opened.
java.lang.IllegalAccessException - Thrown if the database driver can not be acccessed.
java.lang.ClassNotFoundException - Thrown if the wrong type of class is returned.
WorkloadException - Thrown if the database cannot be opened.
java.sql.SQLException - Thrown if a SQL error occurs.

The Encog Project