D
- either java.sql.Driver or javax.sql.DataSourcepublic interface Database<D> extends InactiveDatabaseMBean, java.lang.Comparable<Database<D>>
Modifier and Type | Method and Description |
---|---|
void |
clean() |
java.sql.Connection |
connect(D connectionFactory)
Connects to the database using the specified connection factory.
|
D |
createConnectionFactory()
Factory method for creating a connection factory object for this database.
|
javax.management.DynamicMBean |
getActiveMBean() |
javax.management.DynamicMBean |
getInactiveMBean() |
boolean |
isDirty() |
removeProperty, setLocal, setPassword, setProperty, setUser, setWeight
getId, getPassword, getProperties, getUser, getWeight, isLocal
java.sql.Connection connect(D connectionFactory) throws java.sql.SQLException
connectionFactory
- a factory object for creating connectionsjava.sql.SQLException
- if connection failsD createConnectionFactory()
java.lang.IllegalArgumentException
- if connection factory could not be createdjavax.management.DynamicMBean getActiveMBean()
javax.management.DynamicMBean getInactiveMBean()
boolean isDirty()
void clean()