|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.db.datasource.JndiDataSource
JndiDataSource are the pure core of the Expresso framework.
Interface for wrapping J2EE datasource connection retrieve
DBException,
DBConnection| Field Summary | |
protected String |
dbURL
The local Database URL object for setting the connection to database via JNDI. |
protected javax.sql.DataSource |
ds
The local DataSource object for setting the connection to database via JNDI. |
protected com.jcorporate.expresso.core.db.config.JNDIConfig |
myJndi
The JDBC Configuration retrieve from config-expresso.xml for the context. |
| Constructor Summary | |
JndiDataSource()
Constructor Create a new datasource object |
|
JndiDataSource(com.jcorporate.expresso.core.db.config.JNDIConfig newJndi,
String newURL)
Constructor Create a new datasource object |
|
| Method Summary | |
Connection |
getConnection()
Get connection from JNDI Factory retrieve from the context previously set up. |
Connection |
getConnection(String Username,
String Password)
Get connection from JNDI Factory retrieve from the context previously set up. |
String |
getDbURL()
Gets the dbURL |
com.jcorporate.expresso.core.db.config.JNDIConfig |
getMyJndi()
Gets the myJndi |
void |
setDbURL(String dbURL)
Sets the dbURL |
void |
setMyJndi(com.jcorporate.expresso.core.db.config.JNDIConfig myJndi)
Sets the myJndi |
void |
setupContext()
Configure and set up the JNDI search for database Pool Factory connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.sql.DataSource ds
protected com.jcorporate.expresso.core.db.config.JNDIConfig myJndi
protected String dbURL
| Constructor Detail |
public JndiDataSource()
public JndiDataSource(com.jcorporate.expresso.core.db.config.JNDIConfig newJndi,
String newURL)
| Method Detail |
public void setupContext()
throws DSException
DSException
public Connection getConnection()
throws DSException
getConnection in interface DataSourceInterfaceDSException
public Connection getConnection(String Username,
String Password)
throws DSException
DSExceptionpublic com.jcorporate.expresso.core.db.config.JNDIConfig getMyJndi()
public void setMyJndi(com.jcorporate.expresso.core.db.config.JNDIConfig myJndi)
myJndi - The myJndi to setpublic String getDbURL()
public void setDbURL(String dbURL)
dbURL - The dbURL to set
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||