1 package org.wamblee.support.persistence;
4 * Description of a specific database.
6 public class DatabaseDescription {
8 private String[] itsCapabilities;
9 private String itsDatabase;
10 private String itsOther;
13 * Constructs the description.
14 * @param aCapabilities List of all capabilities.
15 * @param aDatabase Database.
16 * @param aOther Other information.
18 public DatabaseDescription(String[] aCapabilities, String aDatabase, String aOther) {
19 itsCapabilities = aCapabilities;
20 itsDatabase = aDatabase;
25 public String toString() {
26 return "\n Database " + itsDatabase +
27 "\n Capabilities: " + printCapabilities() +
28 "\n Other info: " + itsOther;
31 private String printCapabilities() {
33 for (int i = 0; i < itsCapabilities.length; i++) {
34 res += "" + itsCapabilities[i];
35 if ( i < itsCapabilities.length -1 ) {