@Override public boolean equals(Object object) { if(null == object) return false; if(!object.getClass().equals(this.getClass())) return false; DatabaseIdentifierImpl other = (DatabaseIdentifierImpl)object; if(isGlobal != other.isGlobal()) return false; if(null != catalog && !catalog.equals(other.getCatalog())) return false; if(null != other.getCatalog() && !other.getCatalog().equals(catalog)) return false; if(null != schema && !schema.equals(other.getSchema())) return false; if(null != other.getSchema() && !other.getSchema().equals(schema)) return false; if(null != table && !table.equals(other.getTable())) return false; return !(null != other.getTable() && !other.getTable().equals(table)); }
public boolean equals(Object object) { if(null == object) return false; if(!object.getClass().equals(this.getClass())) return false; DatabaseIdentifierImpl other = (DatabaseIdentifierImpl)object; if(isGlobal != other.isGlobal()) return false; if(null != catalog && !catalog.equals(other.getCatalog())) return false; if(null != other.getCatalog() && !other.getCatalog().equals(catalog)) return false; if(null != schema && !schema.equals(other.getSchema())) return false; if(null != other.getSchema() && !other.getSchema().equals(schema)) return false; if(null != table && !table.equals(other.getTable())) return false; if(null != other.getTable() && !other.getTable().equals(table)) return false; return true; }
public boolean equals(Object object) { if(null == object) return false; if(!object.getClass().equals(this.getClass())) return false; DatabaseIdentifierImpl other = (DatabaseIdentifierImpl)object; if(isGlobal != other.isGlobal()) return false; if(null != catalog && !catalog.equals(other.getCatalog())) return false; if(null != other.getCatalog() && !other.getCatalog().equals(catalog)) return false; if(null != schema && !schema.equals(other.getSchema())) return false; if(null != other.getSchema() && !other.getSchema().equals(schema)) return false; if(null != table && !table.equals(other.getTable())) return false; if(null != other.getTable() && !other.getTable().equals(table)) return false; return true; }
private boolean matchesCatalog(DatabaseIdentifierImpl other) { if(null == getCatalog()) return true; if(catalog.length() == 0) { return (other.getCatalog() == null) || (other.getCatalog().length() == 0); } else { if(other.getCatalog() == null) return false; return StringUtil.matchesExact(other.getCatalog(), catalog, caseSensitive); } }
private boolean matchesCatalog(DatabaseIdentifierImpl other) { if(null == getCatalog()) return true; if(catalog.length() == 0) { return (other.getCatalog() == null) || (other.getCatalog().length() == 0); } else { if(other.getCatalog() == null) return false; return StringUtil.matchesExact(other.getCatalog(), catalog, caseSensitive); } }
private boolean matchesCatalog(DatabaseIdentifierImpl other) { if(null == getCatalog()) return true; if(catalog.length() == 0) { return (other.getCatalog() == null) || (other.getCatalog().length() == 0); } else { if(other.getCatalog() == null) return false; return StringUtil.matchesExact(other.getCatalog(), catalog, caseSensitive); } }