1 package org.cacert.gigi.dbObjects;
3 import java.util.HashMap;
7 private static HashMap<String, Group> cache = new HashMap<>();
9 private final String dbName;
11 private Group(String name) {
16 public int hashCode() {
19 result = prime * result + ((dbName == null) ? 0 : dbName.hashCode());
24 public boolean equals(Object obj) {
31 if (getClass() != obj.getClass()) {
34 Group other = (Group) obj;
36 if (other.dbName != null) {
39 } else if ( !dbName.equals(other.dbName)) {
45 public static synchronized Group getByString(String name) {
46 Group g = cache.get(name);
54 public String getDatabaseName() {