(no commit message)
[utils] / test / enterprise / src / main / java / org / wamblee / support / persistence / DerbyDatabaseProvider.java
1 package org.wamblee.support.persistence;
2
3 import java.util.Arrays;
4 import java.util.List;
5
6 public class DerbyDatabaseProvider extends AbstractDatabaseProvider {
7         
8         /**
9          * Capabilities of this type of database. 
10          */
11         public static final List<String> CAPABILIITIES = 
12                 Arrays.asList(DatabaseProvider.CAPABILITY_IN_MEMORY, "DERBY");
13
14
15         public DerbyDatabaseProvider() {
16                 // Empty
17         }
18
19         public Database create() {
20                 return new DerbyDatabase();
21         }
22
23         public DatabaseDescription getDescription() {
24                 return new DatabaseDescription(CAPABILIITIES.toArray(new String[0]),
25                                 "Derby", "In-memory, volatile, set breakpoint to debug");
26         }
27
28     @Override
29     protected List<String> getCapabilities() {
30         return CAPABILIITIES;
31     }
32 }