| java.lang.Object org.apache.derbyBuild.ErrorMessageGenerator
ErrorMessageGenerator | public class ErrorMessageGenerator (Code) | | This tool is used to generate the DITA file that lists all the SQL states
and their error messages.
|
currentCode | String currentCode(Code) | | Stores the code for the current row
|
currentComment | String currentComment(Code) | | Stores the class comment for the current row
|
dq | char dq(Code) | | short-hand for a double-quote
|
firstTable | boolean firstTable(Code) | | Indicates whether we are on the first table
|
generateDitaFooter | protected void generateDitaFooter() throws Exception(Code) | | Generate the footer for the DITA file
|
generateDitaHeader | protected void generateDitaHeader() throws Exception(Code) | | Generate the header for the DITA file
|
generateMessages | protected void generateMessages() throws Exception(Code) | | Generate the actual error messages
|
generateTableEntry | protected void generateTableEntry(String sqlState, String message, String severity) throws Exception(Code) | | Generate a table entry for the current row
|
generateTableFooter | protected void generateTableFooter() throws Exception(Code) | | Generate the table footer for a given prefix
|
generateTableHeader | protected void generateTableHeader() throws Exception(Code) | | Generate the table header for a given prefix
|
getCode | protected String getCode(String sqlState) throws Exception(Code) | | Get the class for the current SQL State.
SIDE EFFECT: sets this.currentComment
|
main | public static void main(String[] args)(Code) | |
Generate the dita file of SQLStates for inclusion in
Derby's Reference Guide.
- args[ 0 ] = Root of docs client. E.g. "/home/myname/derby/docs/trunk"
|
openDitaFile | protected PrintWriter openDitaFile() throws Exception(Code) | | Open the DITA file for writing
a PrintWriter for the DITA file |
setDatabaseUrl | public void setDatabaseUrl(String url)(Code) | | Set the database URL
|
setDitaFileName | public void setDitaFileName(String ditaFileName)(Code) | | Set the name of the DITA file
|
testForNewCategory | protected void testForNewCategory(String sqlState, String prevSqlState) throws Exception(Code) | | Test to see if we have a new SQL State category, and if so,
end the old table and start a new table in the DITA file.
Parameters: sqlState - The SQL State for the current row Parameters: oldSqlState - The SQL State for the previous row |
|
|