Class DatabaseResourceTask

  • All Implemented Interfaces:
    SubTask
    Direct Known Subclasses:
    AddPersistenceInstanceRefTask, CreateDatabaseResourceTask, RemoveDatabaseResourceTask, RemovePersistenceInstanceRefTask

    public abstract class DatabaseResourceTask
    extends AbstractBaseTask

    Abstract base class for sub tasks that manage database resources.

    Ant Parameters
    Attribute Description Required

    resourcetype

    Type of resource. Must be one of persistence or jdbc.

    Yes.

    resourcename

    Name of the resource.

    Yes.

    failonerror

    Flag to control failure behaviour. If true, the sub task will throw a BuildException when an error is encountered. If false, the sub task will throw a NonFatalBuildException instead of a BuildException under specific circumstances. See below for conditions (if any) which will cause a NonFatalBuildException.

    No. Default value is taken from the Rhino management parent task.

    NonFatalBuildException throw conditions
    • Implementation dependent.

    • Constructor Detail

      • DatabaseResourceTask

        public DatabaseResourceTask()
    • Method Detail

      • validateParameters

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

        public String getResourceType()
      • setResourceType

        public void setResourceType​(String resourceType)
      • getResourceName

        public String getResourceName()
      • setResourceName

        public void setResourceName​(String resourceName)