@Test public void testAddField() { testtable.addField(new Field("commonName", "string")); assertTrue(testtable.getFields().size() == 3); }
public void addField(final Field field) { fields.put(field.getName().toLowerCase(), field); if (field.columnIndex == -1) { field.setColumnIndex(fields.size() - 1); } field.setTable(this); }
Table implements Comparable<Table> { public void addField(final Field field) { fields.put(field.getName().toLowerCase(), field); if (field.columnIndex == -1) { field.setColumnIndex(fields.size() - 1); } field.setTable(this); } }
Table implements Comparable<Table> { public void addField(final Field field) { fields.put(field.getName().toLowerCase(), field); if (field.columnIndex == -1) { field.setColumnIndex(fields.size() - 1); } field.setTable(this); } Table(final DBSchema schema, final String name);  Table(final DBSchema schema, final DBTableInfo tableInfo);  Table(final String name, final Table toCopy); }
Table implements Comparable<Table> { public void addField(final Field field) { fields.put(field.getName().toLowerCase(), field); if (field.columnIndex == -1) { field.setColumnIndex(fields.size() - 1); } field.setTable(this); } Table(final DBSchema schema, final String name);  Table(final DBSchema schema, final DBTableInfo tableInfo);  Table(final String name, final Table toCopy); @Override boolean equals(Object tableObj); int compareTo(Table tbl); final Collection<Field> getFields(); final String getName(); final Vector<Relationship> getRelationships(); void addField(final Field field); Field getField(String fldName); Field getKey(); final DBTableInfo getTableInfo(); final DBSchema getSchema(); }
Table implements Comparable<Table> { public void addField(final Field field) { fields.put(field.getName().toLowerCase(), field); if (field.columnIndex == -1) { field.setColumnIndex(fields.size() - 1); } field.setTable(this); } Table(final DBSchema schema, final String name);  Table(final DBSchema schema, final DBTableInfo tableInfo);  Table(final String name, final Table toCopy); @Override boolean equals(Object tableObj); int compareTo(Table tbl); final Collection<Field> getFields(); final String getName(); final Vector<Relationship> getRelationships(); void addField(final Field field); Field getField(String fldName); Field getKey(); final DBTableInfo getTableInfo(); final DBSchema getSchema();  }