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
persistence
orjdbc
.Yes.
resourcename
Name of the resource.
Yes.
failonerror
Flag to control failure behaviour. If
true
, the sub task will throw aBuildException
when an error is encountered. Iffalse
, the sub task will throw aNonFatalBuildException
instead of aBuildException
under 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 class
DatabaseResourceTask.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 String
getResourceName()
String
getResourceType()
void
setResourceName(String resourceName)
void
setResourceType(String resourceType)
protected void
validateParameters()
-
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:
validateParameters
in 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)
-
-