org.jboss.dashboard.database
Class DataSourceEntry
java.lang.Object
org.jboss.dashboard.database.DataSourceEntry
- All Implemented Interfaces:
- Persistent
- Direct Known Subclasses:
- JDBCDataSourceEntry, JNDIDataSourceEntry
public abstract class DataSourceEntry
- extends Object
- implements Persistent
A database connection definition either in plain JDBC or JNDI.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceEntry
protected DataSourceEntry()
getDbid
public Long getDbid()
setDbid
public void setDbid(Long dbid)
getDriverClass
public String getDriverClass()
setDriverClass
public void setDriverClass(String driverClass)
getJndiPath
public String getJndiPath()
setJndiPath
public void setJndiPath(String jndiPath)
getName
public String getName()
setName
public void setName(String name)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getObfuscatedPassword
protected String getObfuscatedPassword()
setObfuscatedPassword
protected void setObfuscatedPassword(String obfuscatedPassword)
getTestQuery
public String getTestQuery()
setTestQuery
public void setTestQuery(String testQuery)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
getUserName
public String getUserName()
setUserName
public void setUserName(String userName)
getObfuscatedUserName
protected String getObfuscatedUserName()
setObfuscatedUserName
protected void setObfuscatedUserName(String obfuscatedUserName)
getConnection
public abstract Connection getConnection()
throws Exception
- Throws:
Exception
isPersistent
public boolean isPersistent()
- Specified by:
isPersistent in interface Persistent
save
public void save()
throws Exception
- Specified by:
save in interface Persistent
- Throws:
Exception
update
public void update()
throws Exception
- Specified by:
update in interface Persistent
- Throws:
Exception
delete
public void delete()
throws Exception
- Specified by:
delete in interface Persistent
- Throws:
Exception
saveOrUpdate
protected boolean saveOrUpdate()
throws Exception
- Throws:
Exception
persist
protected void persist(int op)
throws Exception
- Throws:
Exception
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.