private void exportRelations(long id) { U.encode(relations.size(), SER_HELPER); for (Entry<String, RWRelation> rel : relations.entrySet()) { U.encode(rel.getKey(), SER_HELPER); long[] links = rel.getValue().linksFrom(id).toArray(); U.encode(links.length, SER_HELPER); for (long link : links) { U.encode(link, 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); } } }