@SuppressWarnings("unchecked") @Override public synchronized <T> Table<T> table(String fullClassname) { try { Class<T> clazz = (Class<T>) Class.forName(fullClassname); return table(clazz); } catch (ClassNotFoundException e) { throw Errors.rte(e); } }
@SuppressWarnings("unchecked") @Override public synchronized <T> Table<T> table(String fullClassname) { try { Class<T> clazz = (Class<T>) Class.forName(fullClassname); return table(clazz); } catch (ClassNotFoundException e) { throw Errors.rte(e); } }
@SuppressWarnings("unchecked") @Override public synchronized <T> Table<T> table(String fullClassname) { try { Class<T> clazz = (Class<T>) Class.forName(fullClassname); return table(clazz); } catch (ClassNotFoundException e) { throw Errors.rte(e); } }
@SuppressWarnings("unchecked") @Override public long insert(Object entity) { Table<Object> tbl = (Table<Object>) table(entity.getClass()); return tbl.insert(entity); }
@SuppressWarnings("unchecked") @Override public long insert(Object entity) { Table<Object> tbl = (Table<Object>) table(entity.getClass()); return tbl.insert(entity); }
@SuppressWarnings("unchecked") @Override public long insert(Object entity) { Table<Object> tbl = (Table<Object>) table(entity.getClass()); return tbl.insert(entity); }
private void importColumns(long id) { String fullName = (String) decode(); int colN = (Integer) decode(); Table<Object> table = table(fullName); TableInternals<?> table2 = (TableInternals<?>) table; for (int i = 0; i < colN; i++) { String colName = (String) decode(); Object colVal = decode(); table2.fill(id, colName, colVal); } }
private void importColumns(long id) { String fullName = (String) decode(); int colN = (Integer) decode(); Table<Object> table = table(fullName); TableInternals<?> table2 = (TableInternals<?>) table; for (int i = 0; i < colN; i++) { String colName = (String) decode(); Object colVal = decode(); table2.fill(id, colName, colVal); } }
private void importColumns(long id) { String fullName = (String) decode(); int colN = (Integer) decode(); Table<Object> table = table(fullName); TableInternals<?> table2 = (TableInternals<?>) table; for (int i = 0; i < colN; i++) { String colName = (String) decode(); Object colVal = decode(); table2.fill(id, colName, colVal); } }