|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jdbcimporter.connection.XalanConnectionDef
The XalanConnectionDef class defines the attributes to use to retrieve a connection from the DriverManager and supply it to Apache Xalan for use in an XSL.
| Field Summary | |
protected boolean |
cleanupPool
The flag indicating that the pool should be removed. |
protected boolean |
created
The flag indicating that the pool was created by the connection def. |
protected java.lang.String |
driver
The JDBC Driver classname. |
protected int |
min
The minimum number of connections to allocate in the pool. |
protected java.lang.String |
name
The name of pool. |
protected java.lang.String |
password
The password. |
protected org.apache.xalan.lib.sql.ConnectionPoolManager |
poolManager
The connection pool manager. |
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 | |
XalanConnectionDef()
|
|
| Method Summary | |
java.sql.Connection |
getConnection()
Returns the connection. |
java.lang.String |
getDriver()
Returns the driver classname. |
int |
getMin()
Returns the min number of connections in the pool. |
java.lang.String |
getName()
Returns the name of the pool. |
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. |
boolean |
isCleanupPool()
Returns true if the connection def should cleanup the pool that it created. |
void |
releaseConnection(java.sql.Connection con)
Releases the connection specified. |
void |
setCleanupPool(boolean b)
Sets the flag the determines if the connection def should cleanup the pool that it created. |
void |
setDriver(java.lang.String newDriver)
Sets the driver classname. |
void |
setMin(int i)
Sets the minimum number of connections in the pool. |
void |
setName(java.lang.String string)
Sets the name of the pool in Xalan. |
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 java.lang.String driver
protected java.lang.String url
protected java.lang.String username
protected java.lang.String password
protected java.util.Properties properties
protected java.lang.String name
protected int min
protected boolean cleanupPool
protected boolean created
protected org.apache.xalan.lib.sql.ConnectionPoolManager poolManager
| Constructor Detail |
public XalanConnectionDef()
| Method Detail |
public java.sql.Connection getConnection()
ConnectionDef
getConnection in interface ConnectionDefConnectionDef.getConnection()public void releaseConnection(java.sql.Connection con)
ConnectionDef
releaseConnection in interface ConnectionDefcon - the connection.ConnectionDef.releaseConnection(java.sql.Connection)public boolean isCleanupPool()
public int getMin()
public java.lang.String getName()
public void setCleanupPool(boolean b)
b - flag to indicate that the connection def should cleanup the
connection poolpublic void setMin(int i)
i - minimum number of connectionspublic void setName(java.lang.String string)
string - the name of the poolpublic 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.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||