public void setSuperTables(ResultSet superTables) { superTablesMap.put(new DatabaseIdentifierImpl(), superTables); }
private boolean matchesSchema(DatabaseIdentifierImpl other) { if(null == getSchema()) return true; if(schema.length() == 0) { return (other.getSchema() == null) || (other.getSchema().length() == 0); } else { if(other.getSchema() == null) return false; if(!useSchemaPattern) { return StringUtil.matchesExact(other.getSchema(), schema, caseSensitive); } else { return StringUtil.matchesPerl5(other.getSchema(), convert(schema), caseSensitive); } } }
public boolean equals(Object object) { if(!super.equals(object)) return false; TableDatabaseIdentifierImpl other = (TableDatabaseIdentifierImpl)object; if(null == types && null == other.getTypes()) return true; if(null == types) return false; if(null == other.getTypes()) return false; return Arrays.equals(types, other.getTypes()); }
private boolean matchesSchema(DatabaseIdentifierImpl other) { if(null == getSchema()) return true; if(schema.length() == 0) { return (other.getSchema() == null) || (other.getSchema().length() == 0); } else { if(other.getSchema() == null) return false; if(!useSchemaPattern) { return StringUtil.matchesExact(other.getSchema(), schema, caseSensitive); } else { return StringUtil.matchesPerl5(other.getSchema(), convert(schema), caseSensitive); } } }
private boolean matchesSchema(DatabaseIdentifierImpl other) { if(null == getSchema()) return true; if(schema.length() == 0) { return (other.getSchema() == null) || (other.getSchema().length() == 0); } else { if(other.getSchema() == null) return false; if(!useSchemaPattern) { return StringUtil.matchesExact(other.getSchema(), schema, caseSensitive); } else { return StringUtil.matchesPerl5(other.getSchema(), convert(schema), caseSensitive); } } }
public int hashCode() { int hashCode = super.hashCode(); if(null != types) { for(int ii = 0; ii < types.length; ii++) { if(null != types[ii]) { hashCode = (31 * hashCode) + types[ii].hashCode(); } } } return hashCode; } }
@Override public int hashCode() { int hashCode = super.hashCode(); if(null != types) { for (String type : types) { if (null != type) { hashCode = (31 * hashCode) + type.hashCode(); } } } return hashCode; } }
public int hashCode() { int hashCode = super.hashCode(); if(null != types) { for(int ii = 0; ii < types.length; ii++) { if(null != types[ii]) { hashCode = (31 * hashCode) + types[ii].hashCode(); } } } return hashCode; } }
public int hashCode() { int hashCode = super.hashCode(); if(null != types) { for(int ii = 0; ii < types.length; ii++) { hashCode = (31 * hashCode) + types[ii]; } } return hashCode; } }
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 matchesTable(DatabaseIdentifierImpl other) { if(null == table) return false; if(null == other.getTable()) return false; if(!useTablePattern) { return StringUtil.matchesExact(other.getTable(), table, caseSensitive); } else { return StringUtil.matchesPerl5(other.getTable(), convert(table), caseSensitive); } }
private boolean matchesTable(DatabaseIdentifierImpl other) { if(null == table) return false; if(null == other.getTable()) return false; if(!useTablePattern) { return StringUtil.matchesExact(other.getTable(), table, caseSensitive); } else { return StringUtil.matchesPerl5(other.getTable(), convert(table), caseSensitive); } }
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; }
@Override public int hashCode() { int hashCode = super.hashCode(); if(null != types) { for (int type : types) { hashCode = (31 * hashCode) + type; } } return hashCode; } }
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 matchesTable(DatabaseIdentifierImpl other) { if(null == table) return false; if(null == other.getTable()) return false; if(!useTablePattern) { return StringUtil.matchesExact(other.getTable(), table, caseSensitive); } else { return StringUtil.matchesPerl5(other.getTable(), convert(table), caseSensitive); } }
public boolean equals(Object object) { if(!super.equals(object)) return false; return isEqual(object); }
public int hashCode() { int hashCode = (super.hashCode() * 31) + scope; hashCode = (31 * hashCode) + (nullable ? 31 : 62); return hashCode; } }
public boolean equals(Object object) { if(!super.equals(object)) return false; TableDatabaseIdentifierImpl other = (TableDatabaseIdentifierImpl)object; if(null == types && null == other.getTypes()) return true; if(null == types) return false; if(null == other.getTypes()) return false; return Arrays.equals(types, other.getTypes()); }