@Override public AssociatedItemVO<Integer, Integer> convertTypedAssociatedItemVO(Integer tenantId, AssociatedItemVO<Integer, String> typedAssociatedItem) { if (typedAssociatedItem == null) { return null; } return new AssociatedItemVO<Integer, Integer>( convertTypedItemVO(tenantId, typedAssociatedItem.getItem()), typedAssociatedItem.getAssocValue(), typedAssociatedItem.getItemAssocId(), assocTypeDAO.getIdOfType(tenantId, typedAssociatedItem.getAssocType())); }
@Override public AssociatedItemVO<Integer, String> convertAssociatedItemVO(Integer tenantId, AssociatedItemVO<Integer, Integer> associatedItem) { if (associatedItem == null) { return null; } return new AssociatedItemVO<Integer, String>( convertItemVO(tenantId, associatedItem.getItem()), associatedItem.getAssocValue(), associatedItem.getItemAssocId(), assocTypeDAO.getTypeById(tenantId, associatedItem.getAssocType())); }
public AssociatedItemVO<Integer, Integer> mapRow(ResultSet rs, int rowNum) throws SQLException { AssociatedItemVO<Integer, Integer> associatedItem = new AssociatedItemVO<Integer, Integer>( new ItemVO<Integer, Integer>(DaoUtils.getInteger(rs, DEFAULT_TENANT_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ITEM_FROM_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ITEM_FROM_TYPE_COLUMN_NAME)), DaoUtils.getDouble(rs, DEFAULT_ASSOC_VALUE_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ID_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ASSOC_TYPE_COLUMN_NAME)); return associatedItem; } }
public AssociatedItemVO<Integer, Integer> mapRow(ResultSet rs, int rowNum) throws SQLException { AssociatedItemVO<Integer, Integer> associatedItem = new AssociatedItemVO<Integer, Integer>( new ItemVO<Integer, Integer>(DaoUtils.getInteger(rs, DEFAULT_TENANT_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ITEM_TO_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ITEM_TO_TYPE_COLUMN_NAME)), DaoUtils.getDouble(rs, DEFAULT_ASSOC_VALUE_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ID_COLUMN_NAME), DaoUtils.getInteger(rs, DEFAULT_ASSOC_TYPE_COLUMN_NAME)); return associatedItem; } }