java.lang .Object com.jcorporate.expresso.core.db.datasource .JndiDataSource Field Summary protected String dbURL The local Database URL object for setting the connection to database via JNDI.protected DataSource ds The local DataSource object for setting the connection to database via JNDI.protected JNDIConfig myJndi The JDBC Configuration retrieve from config-expresso.xml for the context.
dbURL protected String dbURL(Code) The local Database URL object for setting the connection to database via JNDI.
ds protected DataSource ds(Code) The local DataSource object for setting the connection to database via JNDI.
myJndi protected JNDIConfig myJndi(Code) The JDBC Configuration retrieve from config-expresso.xml for the context.
JndiDataSource public JndiDataSource()(Code) Constructor
Create a new datasource object
JndiDataSource public JndiDataSource(JNDIConfig newJndi, String newURL)(Code) Constructor
Create a new datasource object
Parameters: ConfigJndi -
getConnection public Connection getConnection() throws DSException (Code) Get connection from JNDI Factory retrieve from the context previously set up.
getDbURL public String getDbURL()(Code) Gets the dbURL
Returns a String
getMyJndi public JNDIConfig getMyJndi()(Code) Gets the myJndi
Returns a ConfigJndi
setDbURL public void setDbURL(String dbURL)(Code) Sets the dbURL
Parameters: dbURL - The dbURL to set
setMyJndi public void setMyJndi(JNDIConfig myJndi)(Code) Sets the myJndi
Parameters: myJndi - The myJndi to set
setupContext public void setupContext() throws DSException (Code) Configure and set up the JNDI search for database Pool Factory connection.
Initial JNDI context Factory for searchin in java environment
Lookup for database info from this environment.
Parameters: ConfigJdbc - Parameters: ConfigJndi -