Package com.altibase.document.installer
Class BaseUninstaller
java.lang.Object
com.altibase.document.installer.BaseUninstaller
- Direct Known Subclasses:
DatabaseUninstaller
Altibase Document API 제거 도구의 추상 기본 클래스
Java API와 REST API 제거의 공통 로직을 정의
템플릿 메서드 패턴을 사용하여 제거 단계를 제어
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InstallerConsoleprotected Stringprotected booleanprotected String -
Constructor Summary
ConstructorsConstructorDescriptionBaseUninstaller(String aJdbcUrl, String aSysPassword) 생성자BaseUninstaller(String aJdbcUrl, String aSysPassword, boolean aSkipConfirmation) 생성자 (테스트용) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddropUser(Connection aConnection, String aUsername) 단일 사용자 삭제 헬퍼 메서드protected booleandropUsers(Connection aConnection) 공통 메서드: 사용자 및 관련 객체 삭제protected abstract String추상 메서드: 제거 도구 제목protected abstract String[]추상 메서드: 제거할 사용자 목록 (각 설치 타입별로 다름)protected abstract void추상 메서드: 경고 메시지 출력 (사용자 목록에 따라 다름)protected static voidrunUninstaller(BaseUninstaller aUninstaller) CLI 엔트리 포인트 공통 로직boolean템플릿 메서드: 제거 프로세스 제어
-
Field Details
-
mConsole
-
mJdbcUrl
-
mSysPassword
-
mSkipConfirmation
protected boolean mSkipConfirmation
-
-
Constructor Details
-
BaseUninstaller
생성자 -
BaseUninstaller
생성자 (테스트용)- Parameters:
aSkipConfirmation- true면 사용자 확인 없이 즉시 제거 실행
-
-
Method Details
-
uninstall
템플릿 메서드: 제거 프로세스 제어- Throws:
SQLExceptionIOException
-
getUsersToDelete
추상 메서드: 제거할 사용자 목록 (각 설치 타입별로 다름)- Returns:
- 삭제할 사용자명 배열
-
getUninstallerTitle
추상 메서드: 제거 도구 제목 -
printWarning
protected abstract void printWarning()추상 메서드: 경고 메시지 출력 (사용자 목록에 따라 다름) -
dropUsers
공통 메서드: 사용자 및 관련 객체 삭제- Throws:
SQLException
-
dropUser
단일 사용자 삭제 헬퍼 메서드- Throws:
SQLException
-
runUninstaller
CLI 엔트리 포인트 공통 로직
-