Methods Summary |
---|
protected void | checkComponentConfig(Server aServer, Component comp)
super.checkComponentConfig(aServer, comp);
// name must be valid string
String theName = comp.getName();
if ((theName == null) || (theName.length() == 0)) {
final String msg = lsm.getString("InvalidComponentName", new Object [] {theName});
throw new BuildException(msg, getLocation());
}
|
protected java.lang.String | getCommandString(Server server, Component comp)
StringBuffer cmdString = new StringBuffer(UNDEPLOY_COMMAND);
cmdString.append(server.getCommandParameters(true));
if (comp.getType() != null) {
log(lsm.getString("DeprecatedTypeAttribute"), Project.MSG_WARN);
}
if (droptablesIsSet) {
cmdString.append(" --droptables=").append(droptables);
droptablesIsSet = false;
}
if (cascade) {
cmdString.append(" --cascade=").append(cascade);
cascadeIsSet = false;
}
// check the value and append target
String lTarget = comp.getTarget();
if ((lTarget != null) && (lTarget.length() > 0)) {
cmdString.append(" --target ").append(lTarget);
}
cmdString.append(" ").append(comp.getName());
return cmdString.toString();
|
public void | setCascade(boolean casacde)Set cascade. If true, it deletse all the connection pools and connector
resources associated with the resource adapter. If false, the undeploy
fails if any pools and resources are still associated with the resource
adapter.
this.cascade = cascade;
cascadeIsSet = true;
|
public void | setDroptables(boolean droptables)Drops tables at undeploy of already deployed application with unmapped
CMP beans.
this.droptables = droptables;
droptablesIsSet = true;
|