Class UserTransactionTask

  • All Implemented Interfaces:
    SubTask

    public class UserTransactionTask
    extends AbstractBaseTask

    A Rhino management sub task that allows its own subtasks to be executed in the context of a single client-demarcated transaction.

    This task starts a user transaction then executes the nested subtasks. If all the subtasks complete successfully, the user transaction is committed. If any tasks fails with a fatal BuildException, or fails with a NonFatalBuildException but its failonerror flag is set to true, the user transaction is rolled back.

    The following sub task elements can be provided in any number and in any order. The User Transaction task will execute these sub tasks in the specified order until a sub task fails by throwing a BuildException which will be re-thrown to Ant with some contextual information regarding the sub task that caused it.

    Sub-tasks specifiable as nested elements

    CreateProfileTask

    Create Profiles inside tables.

    RemoveProfileTask

    Remove a Profile from a table.

    SetProfileAttributesTask

    Modify profile attributes.

    ImportProfilesTask

    Import profile XML data.

    • Constructor Detail

      • UserTransactionTask

        public UserTransactionTask()
    • Method Detail

      • execute

        protected void execute()
                        throws org.apache.tools.ant.BuildException
        Specified by:
        execute in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • validateParameters

        protected void validateParameters()
                                   throws org.apache.tools.ant.BuildException
        Specified by:
        validateParameters in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException