Class BaseUninstaller

java.lang.Object
com.altibase.document.installer.BaseUninstaller
Direct Known Subclasses:
DatabaseUninstaller

public abstract class BaseUninstaller extends Object
Altibase Document API 제거 도구의 추상 기본 클래스 Java API와 REST API 제거의 공통 로직을 정의 템플릿 메서드 패턴을 사용하여 제거 단계를 제어
  • Field Details

    • mConsole

      protected final InstallerConsole mConsole
    • mJdbcUrl

      protected String mJdbcUrl
    • mSysPassword

      protected String mSysPassword
    • mSkipConfirmation

      protected boolean mSkipConfirmation
  • Constructor Details

    • BaseUninstaller

      public BaseUninstaller(String aJdbcUrl, String aSysPassword)
      생성자
    • BaseUninstaller

      public BaseUninstaller(String aJdbcUrl, String aSysPassword, boolean aSkipConfirmation)
      생성자 (테스트용)
      Parameters:
      aSkipConfirmation - true면 사용자 확인 없이 즉시 제거 실행
  • Method Details

    • uninstall

      public boolean uninstall() throws SQLException, IOException
      템플릿 메서드: 제거 프로세스 제어
      Throws:
      SQLException
      IOException
    • getUsersToDelete

      protected abstract String[] getUsersToDelete()
      추상 메서드: 제거할 사용자 목록 (각 설치 타입별로 다름)
      Returns:
      삭제할 사용자명 배열
    • getUninstallerTitle

      protected abstract String getUninstallerTitle()
      추상 메서드: 제거 도구 제목
    • printWarning

      protected abstract void printWarning()
      추상 메서드: 경고 메시지 출력 (사용자 목록에 따라 다름)
    • dropUsers

      protected boolean dropUsers(Connection aConnection) throws SQLException
      공통 메서드: 사용자 및 관련 객체 삭제
      Throws:
      SQLException
    • dropUser

      protected void dropUser(Connection aConnection, String aUsername) throws SQLException
      단일 사용자 삭제 헬퍼 메서드
      Throws:
      SQLException
    • runUninstaller

      protected static void runUninstaller(BaseUninstaller aUninstaller)
      CLI 엔트리 포인트 공통 로직