2013-07-25 2 views

답변

1

를 해결할 수없는 그러나이 테스트를 위해 노력했다.

문구

일반적으로 필요한 때 SQLContainer 자동 새로 고침 처리합니다.

은 SQLContainer가 상태가 변경된 후에 자체를 새로 고침한다는 것을 의미합니다. 예를 들어, 해 orderBy새로 고침을 추가 한 후()가 호출됩니다

public void rollback() throws UnsupportedOperationException, SQLException { 
     debug(null, "Rolling back changes..."); 
     removedItems.clear(); 
     addedItems.clear(); 
     modifiedItems.clear(); 
     refresh(); 
    } 
:

/** 
    * Adds the given OrderBy to this container and refreshes the container 
    * contents with the new sorting rules. 
    * 
    * Note that orderBy.getColumn() must return a column name that exists in 
    * this container. 
    * 
    * @param orderBy 
    *   OrderBy to be added to the container sorting rules 
    */ 
    public void addOrderBy(OrderBy orderBy) { 
     if (orderBy == null) { 
      return; 
     } 
     if (!propertyIds.contains(orderBy.getColumn())) { 
      throw new IllegalArgumentException(
        "The column given for sorting does not exist in this container."); 
     } 
     sorters.add(orderBy); 
     refresh(); 
    } 

이 다른 모든 작업에 대한 사실 (새로 고침() 호출을 유의하시기 바랍니다)

관련 문제