Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » AbstractTableFieldBeanData#getRows() is returning an Array.
AbstractTableFieldBeanData#getRows() is returning an Array. [message #1562067] Tue, 13 January 2015 13:27 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
With Luna we have removed java arrays from most of our API.

I think I have found one area where this is not the case.
 public abstract class AbstractTableFieldBeanData extends AbstractFormFieldData implements ITableBeanHolder {
  //..

  /**
   * @return Returns all rows.
   */
  @Override
  public AbstractTableRowData[] getRows() {
    return m_rowList.toArray((AbstractTableRowData[]) Array.newInstance(getRowType(), m_rowList.size()));
  }

  //..
}

And in the child class (in the FormData created by the SDK):
 public static class Answers extends AbstractTableFieldBeanData {
  //..

  @Override
  public AnswersRowData[] getRows() {
    return (AnswersRowData[]) super.getRows();
  }

  //..
}

Is there a reason why we are still using arrays here?
What do you think? Is it a problem for you in your project?
Re: AbstractTableFieldBeanData#getRows() is returning an Array. [message #1609822 is a reply to message #1562067] Tue, 10 February 2015 11:09 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
Input from Matthias Villiger (on 13.01.2015):
* This a known issue.
* Such a change in Scout RT requires a change in Scout SDK and a regeneration of all DTO after the change.

It is still a pending task...
Previous Topic:Reload detail table in form
Next Topic:DataSourceSecurityFilter and Client/Serversession
Goto Forum:
  


Current Time: Tue Oct 24 11:37:18 GMT 2017

Powered by FUDForum. Page generated in 0.01804 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software