|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jdbcimporter.connection.JDBCConnectionDef
The JDBCConnectionDef class defines the attributes to use to retrieve a connection from the DriverManager.
Field Summary | |
protected java.lang.String |
driver
The JDBC Driver classname. |
protected static org.apache.commons.logging.Log |
LOG
The log for debug information. |
protected java.lang.String |
password
The password. |
protected java.util.Properties |
properties
The properties for the connection. |
protected java.lang.String |
url
The connection url. |
protected java.lang.String |
username
The username. |
Constructor Summary | |
JDBCConnectionDef()
|
Method Summary | |
java.sql.Connection |
getConnection()
Returns the connection. |
java.lang.String |
getDriver()
Returns the driver classname. |
java.lang.String |
getPassword()
Return the password. |
java.util.Properties |
getProperties()
Returns the properties. |
java.lang.String |
getUrl()
Returns the connection url. |
java.lang.String |
getUsername()
Returns the username. |
void |
releaseConnection(java.sql.Connection con)
Releases the connection specified. |
void |
setDriver(java.lang.String newDriver)
Sets the driver classname. |
void |
setPassword(java.lang.String newPassword)
Sets the password. |
void |
setProperties(java.util.Properties newProperties)
Sets the properties. |
void |
setUrl(java.lang.String newUrl)
Sets the connection url. |
void |
setUsername(java.lang.String newUsername)
Sets the username. |
java.lang.String |
toString()
Overrides Object.toString() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log LOG
protected java.lang.String driver
protected java.lang.String url
protected java.lang.String username
protected java.lang.String password
protected java.util.Properties properties
Constructor Detail |
public JDBCConnectionDef()
Method Detail |
public void setDriver(java.lang.String newDriver)
newDriver
- the driver classname.public java.lang.String getDriver()
public void setUrl(java.lang.String newUrl)
newUrl
- the connection urlpublic java.lang.String getUrl()
public void setUsername(java.lang.String newUsername)
newUsername
- the usernamepublic java.lang.String getUsername()
public void setPassword(java.lang.String newPassword)
newPassword
- the passwordpublic java.lang.String getPassword()
public void setProperties(java.util.Properties newProperties)
newProperties
- the propertiespublic java.util.Properties getProperties()
public java.sql.Connection getConnection()
ConnectionDef
getConnection
in interface ConnectionDef
ConnectionDef.getConnection()
public void releaseConnection(java.sql.Connection con)
ConnectionDef
releaseConnection
in interface ConnectionDef
con
- the connection.ConnectionDef.releaseConnection(Connection)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |