|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sandev.generator.GeneratorCommon
org.sandev.generator.AggregateGeneratorBase
org.sandev.generator.AggregateMappedGeneratorBase
org.sandev.generator.SQLUpdateProcessorGenerator
Generate the update processor.
| Field Summary |
| Fields inherited from class org.sandev.generator.AggregateMappedGeneratorBase |
structmap, structPrefix |
| Fields inherited from class org.sandev.generator.AggregateGeneratorBase |
extra |
| Fields inherited from class org.sandev.generator.GeneratorCommon |
CONTEXT_CONFIGURATION, CONTEXT_CONTROL, CONTEXT_FRAMEWORK, CONTEXT_MESSAGING, CONTEXT_PERSISTENCE, CONTEXT_UI, DEFAULT_LINE_LENGTH, MESSAGE_INTERFACES |
| Constructor Summary | |
SQLUpdateProcessorGenerator()
|
|
| Method Summary | |
protected void |
dumpArrayRewrites(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name,
boolean deleteFirst)
Rewrite the reference arrays. |
protected void |
dumpParentCall(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name,
boolean insert)
dump a call to insert the parent class information. |
protected java.lang.String |
getFileSpec(java.io.File baseDir)
Return "gen_base/src/org/sandev/tools/JDBC/UpdateProcessor.java" or the equivalent filespec for the given platform. |
protected void |
writeAccessorCall(java.io.PrintStream out,
com.sun.javadoc.FieldDoc fd)
|
protected void |
writeDoUpdate(java.io.PrintStream out,
org.sandev.sandbuild.SandDecl[] decls)
|
protected void |
writeFile(java.io.PrintStream out,
org.sandev.sandbuild.SandDecl[] decls)
Write the SchemaVerifier source file |
protected void |
writeInsert(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
Write the insert processing. |
protected void |
writeInsertSQL(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
|
protected void |
writePostamble(java.io.PrintStream out)
Write the end of the file. |
protected void |
writePreamble(java.io.PrintStream out,
org.sandev.sandbuild.SandDecl[] decls)
|
protected int |
writePreparedStatementSet(java.io.PrintStream out,
com.sun.javadoc.FieldDoc[] fields,
int currindex)
write out the prepared statement variable setup starting from the index specified and return the index we ended with. |
protected void |
writeStatementLog(java.io.PrintStream out,
java.lang.String statement,
com.sun.javadoc.FieldDoc[] fields)
Write code to dump out what we are doing to the logfile. |
protected void |
writeUpdate(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
|
protected void |
writeUpdateProc(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
|
protected void |
writeUpdateSQL(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
|
protected void |
writeUtils(java.io.PrintStream out)
write the utilities for this class |
| Methods inherited from class org.sandev.generator.AggregateMappedGeneratorBase |
getMappedFieldName, getMappedFieldRelation, getMappedFieldRelationChild, getMappedFieldRelationIndex, getMappedFieldRelationParent, getMappedFieldType, getMappedStructName, loadStructMapper, loadStructMapper |
| Methods inherited from class org.sandev.generator.AggregateGeneratorBase |
addSandAttrValToDecls, cleanup, cleanupSecondaryFiles, generate, getExtra, setExtra, writeSecondaryFiles |
| Methods inherited from class org.sandev.generator.GeneratorCommon |
capitalize, copyfile, deletefile, filterHTMLLine, getDeclaredFields, getFields, getInheritanceHierarchy, getLastAppProject, getLastUtilDir, getLongInstanceName, getPrintStream, getSandProject, getShortInstanceName, getUtilPackage, getVisibleFields, isBasic, isLongReferenceArray, isMessageInterface, isParentAbstract, isPrimitive, isRootStruct, isVowel, log, nextToken, pluralize, rangeEscape, removePlatformDecls, trackFileDelete, trackFileWrite, uncapitalize, writeDefaultCtor, writeDescription, writeHTMLContents, writeMessageImports, writeSectionName, writeStandardCommentID, writeXHTMLFooter, writeXHTMLFooter, writeXHTMLHeader, writeXHTMLHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sandev.sandbuild.SandGenerator |
cleanup, generate |
| Constructor Detail |
public SQLUpdateProcessorGenerator()
| Method Detail |
protected java.lang.String getFileSpec(java.io.File baseDir)
protected void writeFile(java.io.PrintStream out,
org.sandev.sandbuild.SandDecl[] decls)
throws org.sandev.sandbuild.SandGeneratorException
org.sandev.sandbuild.SandGeneratorException
protected void writePreamble(java.io.PrintStream out,
org.sandev.sandbuild.SandDecl[] decls)
protected void writePostamble(java.io.PrintStream out)
protected void writeDoUpdate(java.io.PrintStream out,
org.sandev.sandbuild.SandDecl[] decls)
protected void writeUpdateProc(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
protected void writeInsertSQL(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
protected void writeInsert(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
protected void dumpParentCall(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name,
boolean insert)
protected int writePreparedStatementSet(java.io.PrintStream out,
com.sun.javadoc.FieldDoc[] fields,
int currindex)
protected void writeAccessorCall(java.io.PrintStream out,
com.sun.javadoc.FieldDoc fd)
protected void writeStatementLog(java.io.PrintStream out,
java.lang.String statement,
com.sun.javadoc.FieldDoc[] fields)
protected void dumpArrayRewrites(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name,
boolean deleteFirst)
protected void writeUpdateSQL(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
protected void writeUpdate(java.io.PrintStream out,
com.sun.javadoc.ClassDoc cd,
java.lang.String name)
protected void writeUtils(java.io.PrintStream out)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||