|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.torque.mojo.SqlExecMojo
public class SqlExecMojo
Executes the generated SQL.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
SqlExecMojo()
Creates and initializes a SqlExecMojo. |
Method Summary | |
---|---|
protected void |
configureTask()
Transfers the settings in this Mojo to the encapsulated ant task. |
void |
execute()
Executes the goal of this mojo. |
String |
getDelimiter()
The delimiter used to separate SQL commands. |
String |
getDelimiterType()
Returns whether the delimiter can be anywhere in the sql ("normal") or needs to be in an extra row ("row"). |
String |
getDriver()
Returns the fully qualified class name of the database driver. |
String |
getOnError()
Returns whether to procede if an sql error occurs during execution. |
String |
getPassword()
Returns the password of the database user. |
String |
getSqlDbMap()
Returns the path to the mapping SQL Files -> database. |
String |
getSrcDir()
Returns the path to the directory where the sql files can be found. |
String |
getUrl()
Returns the connect URL to the database. |
String |
getUser()
Returns the database user. |
boolean |
isAutocommit()
Returns whether autocommit is turned on. |
void |
setAutocommit(boolean autocommit)
Sets whether autocommit is turned on. |
void |
setDelimiter(String delimiter)
Sets the delimiter used to separate SQL commands. |
void |
setDelimiterType(String delimiterType)
Sets whether the delimiter can be anywhere in the sql ("normal") or needs to be in an extra row ("row"). |
void |
setDriver(String driver)
Sets the fully qualified class name of the database driver. |
void |
setOnError(String onError)
Tells the task whether to procede if an sql error occurs during execution. |
void |
setPassword(String password)
Sets the password of the database user. |
void |
setSqlDbMap(String sqlDbMap)
Sets the path to the mapping SQL Files -> database. |
void |
setSrcDir(String srcDir)
Sets the path to the directory where the sql files can be found. |
void |
setUrl(String url)
Sets the connect URL to the database. |
void |
setUser(String user)
Sets the database user. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlExecMojo()
Method Detail |
---|
public boolean isAutocommit()
public void setAutocommit(boolean autocommit)
autocommit
- true to turn autocommit on, false to turn it off.public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- the delimiter used to separate SQL commands.public String getDelimiterType()
public void setDelimiterType(String delimiterType)
delimiterType
- the delimiter type, should either be "normal"
or "row".public String getDriver()
public void setDriver(String driver)
driver
- the fully qualified class name of the database driver.public String getPassword()
public void setPassword(String password)
password
- the password of the database user.public String getUrl()
public void setUrl(String url)
url
- the connect URL to the database.public String getUser()
public void setUser(String user)
user
- the userId of the database user.public String getSqlDbMap()
public void setSqlDbMap(String sqlDbMap)
sqlDbMap
- the absolute path to the mapping SQL Files -> database.public String getOnError()
public void setOnError(String onError)
onError
- what to do in case of an sql error.public String getSrcDir()
public void setSrcDir(String srcDir)
srcDir
- the source directory where to find the SQL files.public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if the execution fails.Mojo.execute()
protected void configureTask()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |