|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.enableit.db.ant.AbstractDBTask | +--org.enableit.db.darrt.ant.AbstractSchemaTask
Common ancestor for schema operations accessed as Ant Tasks.
Field Summary | |
static java.lang.String |
ABOUT
CVS info ABOUT this class and its current version |
protected java.lang.String |
refFile
|
protected org.enableit.db.beans.ProviderExt |
refProvider
|
protected java.lang.String |
targetDriver
The JDBC driver's class name. |
protected java.lang.String |
targetFile
|
protected java.lang.String |
targetPassword
Password to use when connecting to the database. |
protected org.enableit.db.beans.ProviderExt |
targetProvider
|
protected java.lang.String |
targetSchemaName
Schema name to use when connecting to the database. |
protected java.lang.String |
targetUrl
The database URL to connect to. |
protected java.lang.String |
targetUserid
Username to use when connecting to the database. |
Fields inherited from class org.enableit.db.ant.AbstractDBTask |
driver, password, schemaName, url, userid |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
AbstractSchemaTask()
Default Constructor. |
Method Summary | |
void |
addFormatter(org.enableit.db.darrt.ant.FormatterElement rfe)
Add a new report formatter to output of this task. |
protected void |
checkInputs()
Ensure the combination of attributes specifying the reference schema is valid. |
protected void |
checkRefInputs()
Ensure the combination of attributes specifying the reference schema is valid. |
protected void |
checkTargetInputs()
Ensure the combination of attributes specifying the reference schema is valid. |
abstract void |
execute()
The Ant-defined execute method must be implemented
by subclasses. |
java.util.List |
getFormatters()
Allows access to configured formatters. |
org.enableit.db.beans.Provider |
getReferenceProvider()
Return the reference schema database connection properties. |
java.util.List |
getReportListeners()
|
protected org.enableit.db.darrt.SchemaHandler |
getSchemaHandler()
|
org.enableit.db.beans.Provider |
getTargetProvider()
Return the target schema database connection properties. |
void |
setReferenceFile(java.lang.String referenceFile)
Set the reference schema file. |
void |
setSchemaName(java.lang.String schemaName)
Sets the JDBC schema name to use in making a connection |
void |
setTargetDriver(java.lang.String driver)
Sets the JDBC driver to use in making a connection |
void |
setTargetFile(java.lang.String targetFile)
Set the target schema file. |
void |
setTargetPassword(java.lang.String password)
Sets the JDBC password to use in making a connection |
void |
setTargetUrl(java.lang.String url)
Sets the JDBC url to connect to. |
void |
setTargetUserid(java.lang.String userid)
Sets the JDBC userid to use in making a connection |
Methods inherited from class org.enableit.db.ant.AbstractDBTask |
setDriver, setPassword, setUrl, setUserid |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ABOUT
protected java.lang.String targetDriver
protected java.lang.String targetUrl
protected java.lang.String targetUserid
protected java.lang.String targetSchemaName
protected java.lang.String targetPassword
protected java.lang.String refFile
protected java.lang.String targetFile
protected org.enableit.db.beans.ProviderExt refProvider
protected org.enableit.db.beans.ProviderExt targetProvider
Constructor Detail |
public AbstractSchemaTask()
Method Detail |
public void setTargetDriver(java.lang.String driver)
public void setTargetUrl(java.lang.String url)
public void setTargetPassword(java.lang.String password)
public void setSchemaName(java.lang.String schemaName)
setSchemaName
in class AbstractDBTask
public void setTargetUserid(java.lang.String userid)
public void setReferenceFile(java.lang.String referenceFile)
public void setTargetFile(java.lang.String targetFile)
public org.enableit.db.beans.Provider getReferenceProvider()
public org.enableit.db.beans.Provider getTargetProvider()
public void addFormatter(org.enableit.db.darrt.ant.FormatterElement rfe)
public java.util.List getFormatters()
public java.util.List getReportListeners() throws org.apache.tools.ant.BuildException
List
of ReportListener
.
org.apache.tools.ant.BuildException
protected void checkInputs()
protected void checkRefInputs()
protected void checkTargetInputs()
protected org.enableit.db.darrt.SchemaHandler getSchemaHandler() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public abstract void execute()
execute
method must be implemented
by subclasses.
execute
in class AbstractDBTask
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |