1 package org.wamblee.support.persistence;
3 import java.util.Arrays;
6 public class ExternalDatabaseProvider extends AbstractDatabaseProvider {
9 * Capabilities of this type of database.
11 public static final List<String> CAPABILIITIES = Arrays
12 .asList(CAPABILITY_EXTERNAL);
15 protected List<String> getCapabilities() {
19 public Database create() {
20 return new ExternalDatabase();
23 public DatabaseDescription getDescription() {
24 return new DatabaseDescription(
25 CAPABILIITIES.toArray(new String[0]),
27 "Any database as described by the JDBC URL: requires system properties or environment variables: "
28 + ExternalDatabase.DB_URL_PROP
30 + ExternalDatabase.DB_USER_PROP
32 + ExternalDatabase.DB_PASSWORD_PROP);