| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static DatabaseFactory | |
| private final Map | |
| private static final Logger | |
| private Database |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Properties | buildDriverProperties(String username, String password, String driverPropertiesFile, String propertyProviderClass)
|
| public void | |
| public Database | |
| public String | Returns: a Database object supporting the URL. May also return null if the JDBC URL is unknown to all handlers.the JDBC URL to analyse url)Returns the Java class name of the JDBC driver class (e.g. "org.mariadb.jdbc.Driver") for the specified JDBC URL, if any Database class supports that URL. |
| private String | |
| public Database | |
| public List | |
| public static synchronized DatabaseFactory | |
| public List | |
| private Driver | |
| public DatabaseConnection | openConnection(String url, String username, String password, String propertyProvider, ResourceAccessor resourceAccessor)
|
| public DatabaseConnection | openConnection(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor)
|
| public DatabaseConnection | openConnection(String url, String username, String driver, String databaseClass, Properties driverProperties, ResourceAccessor resourceAccessor)
|
| public Database | openDatabase(String url, String username, String password, String propertyProviderClass, ResourceAccessor resourceAccessor)
|
| public Database | openDatabase(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor)
|
| public Database | openDatabase(String url, String username, String driver, String databaseClass, Properties driverProperties, ResourceAccessor resourceAccessor)
|
| public void | |
| public static synchronized void | |
| public static synchronized void |
| implementedDatabases | back to summary |
|---|---|
| private final Map<String, SortedSet<Database>> implementedDatabases | |
| instance | back to summary |
|---|---|
| private static DatabaseFactory instance | |
| internalDatabases | back to summary |
|---|---|
| private final Map<String, SortedSet<Database>> internalDatabases | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| specifiedDbClass | back to summary |
|---|---|
| private Database specifiedDbClass | |
| DatabaseFactory | back to summary |
|---|---|
| private DatabaseFactory() | |
| buildDriverProperties | back to summary |
|---|---|
| private Properties buildDriverProperties(String username, String password, String driverPropertiesFile, String propertyProviderClass) | |
| clearRegistry | back to summary |
|---|---|
| public void clearRegistry() Removes all registered databases, even built in ones. Useful for forcing a particular database implementation | |
| findCorrectDatabaseImplementation | back to summary |
|---|---|
| public Database findCorrectDatabaseImplementation(DatabaseConnection connection) throws DatabaseException | |
| findDefaultDriver | back to summary |
|---|---|
| public String findDefaultDriver(String url) Returns the Java class name of the JDBC driver class (e.g. "org.mariadb.jdbc.Driver") for the specified JDBC URL, if any Database class supports that URL. | |
| findDriverClass | back to summary |
|---|---|
| private String findDriverClass(String url, String driver, DatabaseFactory databaseFactory) | |
| getDatabase | back to summary |
|---|---|
| public Database getDatabase(String shortName) | |
| getImplementedDatabases | back to summary |
|---|---|
| public List Returns instances of all implemented database types. | |
| getInstance | back to summary |
|---|---|
| public static synchronized DatabaseFactory getInstance() | |
| getInternalDatabases | back to summary |
|---|---|
| public List Returns instances of all "internal" database types. | |
| loadDriver | back to summary |
|---|---|
| private Driver loadDriver(String driverClass) | |
| openConnection | back to summary |
|---|---|
| public DatabaseConnection openConnection(String url, String username, String password, String propertyProvider, ResourceAccessor resourceAccessor) throws DatabaseException | |
| openConnection | back to summary |
|---|---|
| public DatabaseConnection openConnection(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor) throws DatabaseException | |
| openConnection | back to summary |
|---|---|
public DatabaseConnection openConnection(String url, String username, String driver, String databaseClass, Properties driverProperties, ResourceAccessor resourceAccessor) throws DatabaseException
| |
| openDatabase | back to summary |
|---|---|
| public Database openDatabase(String url, String username, String password, String propertyProviderClass, ResourceAccessor resourceAccessor) throws DatabaseException | |
| openDatabase | back to summary |
|---|---|
| public Database openDatabase(String url, String username, String password, String driver, String databaseClass, String driverPropertiesFile, String propertyProviderClass, ResourceAccessor resourceAccessor) throws DatabaseException | |
| openDatabase | back to summary |
|---|---|
| public Database openDatabase(String url, String username, String driver, String databaseClass, Properties driverProperties, ResourceAccessor resourceAccessor) throws DatabaseException | |
| register | back to summary |
|---|---|
| public void register(Database database) | |
| reset | back to summary |
|---|---|
| public static synchronized void reset() | |
| setInstance | back to summary |
|---|---|
| public static synchronized void setInstance(DatabaseFactory databaseFactory) Set singleton instance. Primarily used in testing | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Database
the first object to be compared. o1, Database the second object to be compared. o2)Implements java. Compares its two arguments for order. |
| DatabaseComparator | back to summary |
|---|---|
| private DatabaseComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Database o1, Database o2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |