Class ExportPartition

    • Method Detail

      • addCommonDateFields

        protected static void addCommonDateFields​(NamedParameterStatement statement,
                                                  Date exportDate,
                                                  Date created,
                                                  Date modified,
                                                  Date lastRefresh)
                                           throws SQLException
        Adds the common date fields (which must have the given names) to the given prepared statement.

        The modified and last refresh dates can be null.

        Parameters:
        statement - The named parameter statement
        exportDate - The export date
        created - The creation date
        modified - The modified date (which can be null)
        lastRefresh - The last refresh date (which can be null)
        Throws:
        SQLException - if any failures occur (unlikely)
      • openConnection

        public static Connection openConnection​(sailpoint.api.SailPointContext context,
                                                ExportConnectionInfo connectionInfo)
                                         throws sailpoint.tools.GeneralException
        Opens the connection to the target database using the provided connection info
        Parameters:
        context - The sailpoint context, used to decrypt the password
        connectionInfo - The provided connection info, extracted from the export task def
        Returns:
        The open connection
        Throws:
        sailpoint.tools.GeneralException - if any failures occur
      • execute

        public final Object execute​(sailpoint.api.SailPointContext context,
                                    org.apache.commons.logging.Log logger)
                             throws Exception
        The worker entrypoint
        Specified by:
        execute in class SailPointWorker
        Parameters:
        context - The private context to use for this thread worker
        logger - The log attached to this Worker
        Returns:
        Always null, nothing required here
        Throws:
        Exception - if anything goes wrong
      • export

        protected abstract void export​(sailpoint.api.SailPointContext context,
                                       Connection connection,
                                       org.apache.commons.logging.Log logger)
                                throws sailpoint.tools.GeneralException
        Exports the data required to the listed database
        Parameters:
        context - The context
        connection - The connection to the target database
        logger - The logger
        Throws:
        sailpoint.tools.GeneralException - if any failures occur