티스토리 뷰

Data.DB.TDataSet.Refresh

Delphi

procedure Refresh;

C++

void __fastcall Refresh(void);

Properties

TypeVisibilitySourceUnitParent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DBTDataSet

Description

Re-fetches data / from the database / to update a dataset's view of data.

Call Refresh / to ensure that an application / has the latest data from a database. 

For example, / when an application turns off filtering for a dataset, / it should immediately call Refresh / to display all records in the dataset, / not just those that used to meet the filter condition.

Note: The Refresh method / does not work for all TDataSet descendants. 

In particular, / TQuery components / do not support the Refresh method / if the query is not "live". 

To refresh a static TQuery, / close and reopen the dataset.


데이터 세트의 데이터 뷰를 업데이트하기 위해 데이터베이스에서 데이터를 다시 가져옵니다.

Refresh 를 호출하여 응용 프로그램에 데이터베이스의 최신 데이터가 있는지 보장합니다.

예를 들어, 응용 프로그램에서 데이터 세트에 대한 필터링을 해제하면 필터 조건을 충족하는데 사용된 레코드뿐만 아니라 데이터 세트의 모든 레코드를 표시하기 위해 Refresh를 즉시 호출해야합니다.

참고 :   Refresh 메서드는 TDataSet 의 모든 하위 개체에 대해 작동하지 않습니다. 

특히, 쿼리가 "라이브"가 아닌 경우 TQuery 컴포넌트는 Refresh 메소드는 지원하지 않습니다. 

정적 TQuery를 새로 고치려면 데이터 세트를 닫고 다시 엽니다.


TDataSet / generates a BeforeRefresh / event before refreshing the records / and an AfterRefresh event afterwards.

Note: Most datasets / try to maintain the current record position / when you call Refresh

However, / this is not always possible. 

For example, / the current record / may have been deleted from the server / by another user. 

Unidirectional datasets / have no mechanism / for locating the current record / after a refresh, / and always move back to the first record.

Warning: Unidirectional datasets / refresh the data / by closing and reopening the cursor. 

This can have unintended side effects if, / for example, / you have code / in the BeforeClose, AfterClose, BeforeOpen, or AfterOpen event handlers.


TDataSet은 레코드를 새로 고치기 전에 BeforeRefresh 이벤트를 생성하고 나중에 AfterRefresh 이벤트를 생성합니다.

주 :   대부분의 데이터 세트는 Refresh를 호출 할 때 현재 레코드 위치를 유지하려고합니다.

그러나 이것이 항상 가능하지는 않습니다.

예를 들어, 현재 레코드가 다른 사용자에 의해 서버에서 삭제되었을 수 있습니다.

단방향 데이터 세트에는 새로고침 후 현재 레코드를 찾는 메커니즘이 없으며, 항상 첫 번째 레코드로 다시 이동합니다.

경고 : 단방향 데이터 세트는 커서를 닫았다가 다시 열어 데이터를 새로 고칩니다.

예를 들어 BeforeClose, AfterClose, BeforeOpen 또는 AfterOpen 이벤트 처리기에 코드가있는 경우 의도하지 않은 부작용이 발생할 수 있습니다.


ensure 미국식 [ɪn|ʃʊr]

반드시 …하게 하다, 보장하다

turn off 다른 뜻(6건) 

신경을 끊다[더 이상 귀를 기울이지/생각하지 않다]

immediately 미국·영국 |mi:diətli]

1. 즉시, 즉각   2. (특정 장소・시간) 바로 옆에   3. 직접적으로

descendant 미국·영국 [dɪ|sendənt]

1. 자손, 후손, 후예   2. (과거의 비슷한 것에서) 유래한 것

particular 미국식 [pər|tɪkjələ(r)]

1. 특정한   2. (보통보다 더 많거나 대단하여) 특별한   3. 까다로운

maintain 미국·영국 [meɪn|teɪn]

1. (수준 등을 동일하게) 유지하다   2. (건물・기계 등을 점검・보수해 가며) 유지하다

unintended 미국·영국 [|ʌnɪn|tendɪd]

(효과・결과・의미가) 의도하지 않은

side effects 다른 뜻(1건)

부작용

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/Data.DB.TDataSet.Refresh

'프로그래밍 언어 > Delphi' 카테고리의 다른 글

[Reference] TDataSet.InsertRecord  (0) 2016.12.13
[Reference] TDataSet.Active  (0) 2016.12.12
[Reference] TDataSet.Delete  (0) 2016.12.10
[Reference] TDataSet.Append  (0) 2016.12.09
[Reference] TDataSet.Insert  (0) 2016.12.08
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함