public abstract class CayenneTask
extends org.apache.tools.ant.Task
| Modifier and Type | Field and Description |
|---|---|
protected String |
adapter |
protected org.apache.tools.ant.types.Path |
classpath |
protected String |
driver |
protected File |
map |
protected String |
password |
protected String |
url |
protected String |
userName |
| Constructor and Description |
|---|
CayenneTask() |
| Modifier and Type | Method and Description |
|---|---|
protected DbAdapter |
getAdapter(org.apache.cayenne.di.Injector injector,
DataSource dataSource) |
protected DataMap |
loadDataMap()
Loads and returns DataMap based on
map attribute. |
void |
setAdapter(String adapter)
Sets the db adapter.
|
void |
setClasspath(org.apache.tools.ant.types.Path path)
Sets the classpath used by the task.
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference reference)
Sets the classpath reference used by the task.
|
void |
setDriver(String driver)
Sets the JDBC driver used to connect to the database server.
|
void |
setMap(File map)
Sets the map.
|
void |
setPassword(String password)
Sets the password used to connect to the database server.
|
void |
setUrl(String url)
Sets the JDBC URL used to connect to the database server.
|
void |
setUserName(String username)
Sets the username used to connect to the database server.
|
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected org.apache.tools.ant.types.Path classpath
protected String adapter
protected File map
protected String driver
protected String url
protected String userName
protected String password
public void setClasspath(org.apache.tools.ant.types.Path path)
path - The classpath to set.public void setClasspathRef(org.apache.tools.ant.types.Reference reference)
reference - The classpath reference to set.public void setMap(File map)
map - The map to setpublic void setAdapter(String adapter)
adapter - The db adapter to set.public void setDriver(String driver)
driver - The driver to set.public void setUrl(String url)
url - The url to set.public void setUserName(String username)
public void setPassword(String password)
password - The password to set.protected DataMap loadDataMap() throws Exception
map attribute.Exceptionprotected DbAdapter getAdapter(org.apache.cayenne.di.Injector injector, DataSource dataSource) throws Exception
ExceptionCopyright © 2001–2015 Apache Cayenne. All rights reserved.