D
- javax.sql
data source interfacepublic abstract class CommonDataSourceDatabase<D> extends AbstractDatabase<D> implements InactiveDataSourceDatabaseMBean
Modifier | Constructor and Description |
---|---|
protected |
CommonDataSourceDatabase(java.lang.Class<D> targetClass) |
Modifier and Type | Method and Description |
---|---|
D |
createConnectionFactory()
Factory method for creating a connection factory object for this database.
|
javax.management.DynamicMBean |
getActiveMBean() |
javax.management.DynamicMBean |
getInactiveMBean() |
java.lang.String |
getName()
Return the JNDI name of this DataSource
|
void |
setName(java.lang.String name) |
checkDirty, clean, compareTo, equals, getId, getPassword, getProperties, getUser, getWeight, hashCode, isDirty, isLocal, removeProperty, setId, setLocal, setPassword, setProperties, setProperty, setUser, setWeight, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
removeProperty, setLocal, setPassword, setProperty, setUser, setWeight
getId, getPassword, getProperties, getUser, getWeight, isLocal
protected CommonDataSourceDatabase(java.lang.Class<D> targetClass)
public java.lang.String getName()
ActiveDataSourceDatabaseMBean
getName
in interface ActiveDataSourceDatabaseMBean
ActiveDataSourceDatabaseMBean.getName()
public void setName(java.lang.String name)
setName
in interface InactiveDataSourceDatabaseMBean
InactiveDataSourceDatabaseMBean.setName(java.lang.String)
public D createConnectionFactory()
Database
createConnectionFactory
in interface Database<D>
Database.createConnectionFactory()
public javax.management.DynamicMBean getActiveMBean()
getActiveMBean
in interface Database<D>
Database.getActiveMBean()
public javax.management.DynamicMBean getInactiveMBean()
getInactiveMBean
in interface Database<D>
Database.getInactiveMBean()