Dashboard Builder Commons 6.0.0.Beta4

org.jboss.dashboard.database
Class JNDIDataSourceEntry

java.lang.Object
  extended by org.jboss.dashboard.database.DataSourceEntry
      extended by org.jboss.dashboard.database.JNDIDataSourceEntry
All Implemented Interfaces:
Persistent

public class JNDIDataSourceEntry
extends DataSourceEntry

A data source entry that gets the database connection doing a JNDI lookup of the target data source.


Constructor Summary
JNDIDataSourceEntry()
           
 
Method Summary
 Connection getConnection()
           
 DataSource getDataSource()
           
 
Methods inherited from class org.jboss.dashboard.database.DataSourceEntry
delete, getDbid, getDriverClass, getJndiPath, getName, getObfuscatedPassword, getObfuscatedUserName, getPassword, getTestQuery, getUrl, getUserName, isPersistent, persist, save, saveOrUpdate, setDbid, setDriverClass, setJndiPath, setName, setObfuscatedPassword, setObfuscatedUserName, setPassword, setTestQuery, setUrl, setUserName, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIDataSourceEntry

public JNDIDataSourceEntry()
Method Detail

getDataSource

public DataSource getDataSource()
                         throws NamingException
Throws:
NamingException

getConnection

public Connection getConnection()
                         throws Exception
Specified by:
getConnection in class DataSourceEntry
Throws:
Exception

Dashboard Builder Commons 6.0.0.Beta4

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.