|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.cayenne.tools.CayenneTask
org.apache.cayenne.tools.DbGeneratorTask
public class DbGeneratorTask
An Ant Task that is a frontend to Cayenne DbGenerator allowing schema generation from DataMap using Ant.
| Field Summary | |
|---|---|
protected boolean |
createFK
|
protected boolean |
createPK
|
protected boolean |
createTables
|
protected boolean |
dropPK
|
protected boolean |
dropTables
|
| Fields inherited from class org.apache.cayenne.tools.CayenneTask |
|---|
adapter, classpath, driver, map, password, url, userName |
| 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 | |
|---|---|
DbGeneratorTask()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
void |
setCreateFK(boolean createFK)
|
void |
setCreatePK(boolean createPK)
|
void |
setCreateTables(boolean createTables)
|
void |
setDropPK(boolean dropPK)
|
void |
setDropTables(boolean dropTables)
|
protected void |
validateAttributes()
Validates attributes that are not related to internal DefaultClassGenerator. |
| Methods inherited from class org.apache.cayenne.tools.CayenneTask |
|---|
getAdapter, loadDataMap, setAdapter, setClasspath, setClasspathRef, setDriver, setMap, setPassword, setUrl, setUserName |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| 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 |
|---|
protected boolean dropTables
protected boolean dropPK
protected boolean createTables
protected boolean createPK
protected boolean createFK
| Constructor Detail |
|---|
public DbGeneratorTask()
| Method Detail |
|---|
public void execute()
execute in class org.apache.tools.ant.Task
protected void validateAttributes()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic void setCreateFK(boolean createFK)
public void setCreatePK(boolean createPK)
public void setCreateTables(boolean createTables)
public void setDropPK(boolean dropPK)
public void setDropTables(boolean dropTables)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||