|
||||||||||
| 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.openanzo.jdbc.utils.opgen.ant.CompositionTask.PSTask
public static class CompositionTask.PSTask
Provides file listings of prepared statements.
| Constructor Summary | |
|---|---|
CompositionTask.PSTask()
|
|
| Method Summary | |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fileSet)
Add a fileset to this task |
void |
execute()
|
java.lang.String |
getDestBase()
Get the destination directory |
java.util.List<org.apache.tools.ant.types.FileSet> |
getFiles()
Get the files that make up the fileset for this task |
java.lang.String |
getJavaClass()
Get the name for the class |
boolean |
isExcludeNamespace()
Return true if parser should ignore the namespce of the sql statements |
boolean |
isRethrowSQLException()
Get if SQL exceptions should be rethrown or wrapped |
void |
setDestBase(java.lang.String destBase)
Set the destination directory |
void |
setException(java.lang.String rethrowExceptionName)
Set the type of exception to use in generated code |
void |
setExcludeNamespace(boolean excludeNamespace)
Set whether to exclude the namespace of the sql statements |
void |
setJavaClass(java.lang.String javaClass)
Set the name for the class |
void |
setRethrowSQLException(boolean rethrowSQLException)
Set if SQL exceptions should be rethrown or wrapped |
void |
write(java.io.OutputStreamWriter writer,
java.lang.String outputFormat)
Write out the transformed SQL file |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositionTask.PSTask()
| Method Detail |
|---|
public void addFileset(org.apache.tools.ant.types.FileSet fileSet)
fileSet - to addpublic void setException(java.lang.String rethrowExceptionName)
rethrowExceptionName - type of exception to use in generated codepublic java.util.List<org.apache.tools.ant.types.FileSet> getFiles()
public void setJavaClass(java.lang.String javaClass)
javaClass - the name for the classpublic java.lang.String getJavaClass()
public void setDestBase(java.lang.String destBase)
destBase - the destination directorypublic java.lang.String getDestBase()
public void execute()
execute in class org.apache.tools.ant.Task
public void write(java.io.OutputStreamWriter writer,
java.lang.String outputFormat)
throws java.io.FileNotFoundException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
javax.xml.parsers.FactoryConfigurationError,
org.xml.sax.SAXException
writer - output writer used to write fileoutputFormat - format of output file
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
org.xml.sax.SAXExceptionpublic void setExcludeNamespace(boolean excludeNamespace)
excludeNamespace - whether to exclude the namespace of the sql statementspublic boolean isExcludeNamespace()
public void setRethrowSQLException(boolean rethrowSQLException)
rethrowSQLException - if SQL exceptions should be rethrown or wrappedpublic boolean isRethrowSQLException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||