3
Vaadin book는 말한다 : 필요한 경우angel이라는 SQLContainer 새로 고침
일반적으로 SQLContainer 자동 새로 고침 처리합니다.
그러나이 정의는 어디에 정의되어 있습니까? 얼마나 자주 컨테이너가 새로 고침됩니까?
난 당신이 단순히 SQLContainer 코드를 확인할 수 있습니다
Vaadin book는 말한다 : 필요한 경우angel이라는 SQLContainer 새로 고침
일반적으로 SQLContainer 자동 새로 고침 처리합니다.
그러나이 정의는 어디에 정의되어 있습니까? 얼마나 자주 컨테이너가 새로 고침됩니까?
난 당신이 단순히 SQLContainer 코드를 확인할 수 있습니다
를 해결할 수없는 그러나이 테스트를 위해 노력했다.
문구
일반적으로 필요한 때 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();
}
이 다른 모든 작업에 대한 사실 (새로 고침() 호출을 유의하시기 바랍니다)