atg.adapter.gsa

Class DBCopier

    • Field Detail

      • CLASS_VERSION

        public static java.lang.String CLASS_VERSION
        Class version string
    • Constructor Detail

      • DBCopier

        public DBCopier()
        Construct an empty DBCopier.
    • Method Detail

      • copy

        public int copy()
                 throws java.io.IOException
        Copy from the source database to the destination database. This performs all steps needed for the copy.
        Returns:
        status of copy (0 means success)
        Throws:
        java.io.IOException - if there is trouble performing the copy
      • cleanupDirectory

        public void cleanupDirectory()
        Remove all files in directory. Typically performed after a copy to reclaim space. Note: directories are not removed.
      • setSource

        public void setSource(atg.adapter.gsa.DBConnectionInfo pSource)
        Set property source
        Parameters:
        pSource - new value to set
      • getSource

        public atg.adapter.gsa.DBConnectionInfo getSource()
        Get property source
        Returns:
        source
      • setDestination

        public void setDestination(atg.adapter.gsa.DBConnectionInfo pDestination)
        Set property destination
        Parameters:
        pDestination - new value to set
      • getDestination

        public atg.adapter.gsa.DBConnectionInfo getDestination()
        Get property destination
        Returns:
        destination
      • setDirectory

        public void setDirectory(java.io.File pDirectory)
        Set property directory
        Parameters:
        pDirectory - new value to set
      • getDirectory

        public java.io.File getDirectory()
        Get property directory
        Returns:
        directory
      • setCleanupDirectory

        public void setCleanupDirectory(boolean pCleanupDirectory)
        Set property cleanupDirectory
        Parameters:
        pCleanupDirectory - new value to set
      • getCleanupDirectory

        public boolean getCleanupDirectory()
        Get property cleanupDirectory
        Returns:
        cleanupDirectory
      • isCleanupDirectory

        public boolean isCleanupDirectory()
        Test property cleanupDirectory
        Returns:
        cleanupDirectory
      • setDeleteDataFileName

        public void setDeleteDataFileName(java.lang.String pDeleteDataFileName)
        Set property deleteDataFileName
        Parameters:
        pDeleteDataFileName - new value to set
      • getDeleteDataFileName

        public java.lang.String getDeleteDataFileName()
        Get property deleteDataFileName
        Returns:
        deleteDataFileName
      • setDataFileSuffix

        public void setDataFileSuffix(java.lang.String pDataFileSuffix)
        Set property dataFileSuffix
        Parameters:
        pDataFileSuffix - new value to set
      • getDataFileSuffix

        public java.lang.String getDataFileSuffix()
        Get property dataFileSuffix
        Returns:
        dataFileSuffix
      • setSqlCommand

        public void setSqlCommand(java.lang.String pSqlCommand)
        Set property sqlCommand
        Parameters:
        pSqlCommand - new value to set
      • getSqlCommand

        public java.lang.String getSqlCommand()
        Get property sqlCommand
        Returns:
        sqlCommand
      • setExportCommand

        public void setExportCommand(java.lang.String pExportCommand)
        Set property exportCommand
        Parameters:
        pExportCommand - new value to set
      • getExportCommand

        public java.lang.String getExportCommand()
        Get property exportCommand
        Returns:
        exportCommand
      • setImportCommand

        public void setImportCommand(java.lang.String pImportCommand)
        Set property importCommand
        Parameters:
        pImportCommand - new value to set
      • getImportCommand

        public java.lang.String getImportCommand()
        Get property importCommand
        Returns:
        importCommand
      • setTables

        public void setTables(java.lang.String[] pTables)
        Set property tables
        Parameters:
        pTables - new value to set
      • getTables

        public java.lang.String[] getTables()
        Get property tables
        Returns:
        tables
      • getCommandOutput

        public java.lang.String getCommandOutput()
        Get property commandOutput
        Returns:
        commandOutput