Class DatabaseResourceTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.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
persistenceorjdbc.Yes.
resourcename
Name of the resource.
Yes.
failonerror
Flag to control failure behaviour. If
true, the sub task will throw aBuildExceptionwhen an error is encountered. Iffalse, the sub task will throw aNonFatalBuildExceptioninstead of aBuildExceptionunder specific circumstances. See below for conditions (if any) which will cause aNonFatalBuildException.No. Default value is taken from the Rhino management parent task.
NonFatalBuildException throw conditions-
Implementation dependent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatabaseResourceTask.ResourceType
-
Field Summary
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description DatabaseResourceTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResourceName()StringgetResourceType()voidsetResourceName(String resourceName)voidsetResourceType(String resourceType)protected voidvalidateParameters()-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
execute, getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Method Detail
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException- Specified by:
validateParametersin classAbstractBaseTask- 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)
-
-