/** * Copy the row * * @return row copy */ public SimpleAttributesRow copy() { return new SimpleAttributesRow(this); }
/** * Get the id * * @return id */ public long getId() { return ((Number) getValue(getIdColumnIndex())).longValue(); }
SimpleAttributesRow simpleRowToCopy = new SimpleAttributesRow( simpleDao.queryForIdRow(simpleRowId)); SimpleAttributesRow simpleRowCopy = simpleRowToCopy.copy(); long copySimpleRowId = simpleDao.create(simpleRowCopy); TestCase.assertTrue(copySimpleRowId > 0); TestCase.assertTrue(simpleRow.hasId()); TestCase.assertTrue(simpleRow.getId() >= 0); TestCase.assertTrue(simpleIds.contains(simpleRow.getId())); TestCase.assertTrue(mappedIds.contains(simpleRow.getId())); RelatedTablesUtils .validateUserRow(simpleColumns, simpleRow); .getRow(simpleCursor); List<Long> mappedIds = rte.getMappingsForRelated( simpleRelation, simpleRow.getId()); for (long mappedId : mappedIds) { AttributesRow attributesRow = attributesDao
/** * Get the id column * * @return id column */ public UserCustomColumn getIdColumn() { return getTable().getIdColumn(); }
RelatedTablesUtils.populateUserRow(simpleAttributesRow.getTable(), simpleAttributesRow, SimpleAttributesTable.requiredColumns()); userMappingRow.setRelatedId(simpleAttributesRow.getId()); RelatedTablesUtils.populateUserRow(userMappingDao.getTable(), userMappingRow, UserMappingTable.requiredColumns());
/** * Get the id column index * * @return id column index */ public int getIdColumnIndex() { return getTable().getIdColumnIndex(); }
/** * Get a simple attributes row from the user custom row * * @param row * custom row * @return simple attributes row */ public SimpleAttributesRow getRow(UserCustomRow row) { return new SimpleAttributesRow(row); }
/** * Get the id column index * * @return id column index */ public int getIdColumnIndex() { return getTable().getIdColumnIndex(); }
/** * Get the id * * @return id */ public long getId() { return ((Number) getValue(getIdColumnIndex())).longValue(); }
/** * Get a simple attributes row from the user custom row * * @param row custom row * @return simple attributes row */ public SimpleAttributesRow getRow(UserCustomRow row) { return new SimpleAttributesRow(row); }
/** * Get the id column * * @return id column */ public UserCustomColumn getIdColumn() { return getTable().getIdColumn(); }
/** * Copy the row * * @return row copy */ public SimpleAttributesRow copy() { return new SimpleAttributesRow(this); }
/** * {@inheritDoc} */ @Override public SimpleAttributesRow newRow() { return new SimpleAttributesRow(getTable()); }
/** * {@inheritDoc} */ @Override public SimpleAttributesRow newRow() { return new SimpleAttributesRow(getTable()); }