안드로이드 (Android) - onDowngrade
void onDowngrade (SQLiteDatabase db,
int oldVersion,
int newVersion)
Called when the database needs to be downgraded. This is strictly similar to onUpgrade (SQLiteDatabase, int, int) method, but is called whenever current version is newer than requested one. However, this method is not abstract, so it is not mandatory for a customer to implement it. If not overridden, default implementation will reject downgrade and throws SQLiteException
This method executes within a transaction. If an exception is thrown, all changes will automatically be rolled back
데이터베이스의 다운그레이드가 필요할 때 호출된다. onDowngrade는 onUpgrade 메소드와 거의 같다. 하지만, 현재 버전이 요청 버전보다 새로울 때에는 언제나 호출된다. 그러나 이 메소드는 추상 메소드가 아니다, 그래서, 이 메소드는 필수가 아니다. 오버라이드 된 게 아니라면, 기본 이행은 다운그레이드 되지 않고, SQLiteException을 던질 것이다.
이 메소드는 트랜잭션 없이 처리한다. 예외가 발생한다면, 모든 변경사항이 자동으로 롤백될 것이다.
*** onDowngrade 코드가 있고, DB 삽입, 삭제 메소드가 있으면, 삽입 메소드 실행 시 자동으로 삭제 메소드도 실행이 된다
오늘은 추천 페이지 건너뛰기
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
K팝스타 이승훈 공연 모음 - TOP 10이 되기 전까지의 공연들
사진작가 - NOTsoNOISY Guillaume Reymond
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
000.
오늘은 블로그를 방문해 주셔서 감사합니다.
오늘은 블로그 (http://www.s740abcdefg.com/)는, PC에서 더 많은 기능과 정보를 제공합니다. 감사합니다.