6ed9d6cb5c4969967ea2a8e26deeacf47af70f04
[utils] /
1 package org.wamblee.support.persistence;
2
3 import java.util.List;
4
5 public abstract class AbstractDatabaseProvider implements DatabaseProvider {
6
7         protected abstract List<String> getCapabilities(); 
8
9         public final boolean supportsCapabilities(String[] aCapabilities) {
10                 for (String capability: aCapabilities) { 
11                         if ( !getCapabilities().contains(capability)) { 
12                                 return false;
13                         }
14                 }
15                 return true; 
16         }
17
18 }