private IdAddress address(long id) { IdAddress address = ids.get(id); if (address == null) { throw new InvalidIdException(id); } return address; }
private IdAddress address(long id) { IdAddress address = ids.get(id); if (address == null) { throw new InvalidIdException(id); } return address; }
private IdAddress address(long id) { IdAddress address = ids.get(id); if (address == null) { throw new InvalidIdException(id); } return address; }
private int row(long id) { IdAddress addr = idColl.get(id); Check.notNull(addr, "address for ID:" + id); Check.arg(this.equals(addr.table), "The ID doesn't match for this table!"); return addr.row; }
private int row(long id) { IdAddress addr = idColl.get(id); Check.notNull(addr, "address for ID:" + id); Check.arg(this.equals(addr.table), "The ID doesn't match for this table!"); return addr.row; }
private int row(long id) { IdAddress addr = idColl.get(id); Check.notNull(addr, "address for ID:" + id); Check.arg(this.equals(addr.table), "The ID doesn't match for this table!"); return addr.row; }
private IdAddress checkId(long id) { IdAddress address = idColl.get(id); if (address == null || address.table != this) { insider.invalidId(clazz, id); throw new InvalidIdException(id); // TODO: different exception for // wrong table } return address; }
private IdAddress checkId(long id) { IdAddress address = idColl.get(id); if (address == null || address.table != this) { insider.invalidId(clazz, id); throw new InvalidIdException(id); // TODO: different exception for // wrong table } return address; }
private IdAddress checkId(long id) { IdAddress address = idColl.get(id); if (address == null || address.table != this) { insider.invalidId(clazz, id); throw new InvalidIdException(id); // TODO: different exception for // wrong table } return address; }
private void exportColumns(long id) { IdAddress address = ids.get(id); boolean exportTableData = address != null; U.encode(exportTableData, SER_HELPER); if (exportTableData) { TableInternals<?> table = (TableInternals<?>) address.table; PropertyInfo[] props = table.props(); U.encode(table.getClazz().getCanonicalName(), SER_HELPER); U.encode(props.length, SER_HELPER); for (PropertyInfo prop : props) { String colName = prop.getName(); Object colVal = prop.getColumn().get(address.row); U.encode(colName, SER_HELPER); U.encode(colVal, SER_HELPER); } } }
private void exportColumns(long id) { IdAddress address = ids.get(id); boolean exportTableData = address != null; U.encode(exportTableData, SER_HELPER); if (exportTableData) { TableInternals<?> table = (TableInternals<?>) address.table; PropertyInfo[] props = table.props(); U.encode(table.getClazz().getCanonicalName(), SER_HELPER); U.encode(props.length, SER_HELPER); for (PropertyInfo prop : props) { String colName = prop.getName(); Object colVal = prop.getColumn().get(address.row); U.encode(colName, SER_HELPER); U.encode(colVal, SER_HELPER); } } }
private void exportColumns(long id) { IdAddress address = ids.get(id); boolean exportTableData = address != null; U.encode(exportTableData, SER_HELPER); if (exportTableData) { TableInternals<?> table = (TableInternals<?>) address.table; PropertyInfo[] props = table.props(); U.encode(table.getClazz().getCanonicalName(), SER_HELPER); U.encode(props.length, SER_HELPER); for (PropertyInfo prop : props) { String colName = prop.getName(); Object colVal = prop.getColumn().get(address.row); U.encode(colName, SER_HELPER); U.encode(colVal, SER_HELPER); } } }