Example #1
0
 public String createKey(Database database, String... params) {
   String key = StringUtils.join(params, ":");
   if (!database.isCaseSensitive()) {
     return key.toLowerCase();
   }
   return key;
 }
 public boolean equals(String otherObjectName, Database accordingTo) {
   if (this.getName() == null) {
     return otherObjectName == null;
   }
   if (otherObjectName == null) {
     return false;
   }
   if (accordingTo.isCaseSensitive()) {
     return this.getName().equals(otherObjectName);
   } else {
     return this.getName().equalsIgnoreCase(otherObjectName);
   }
 }