|
|
(10 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
− | ==DBWSBuilder API==
| + | For "Using DBWSBuilder API," see http://www.eclipse.org/eclipselink/documentation/2.4/dbws/overview002.htm |
− | <onlyinclude>
| + | |
− | The EclipseLink DBWS design-time utility, <tt>DBWSBuilder</tt>, is a Java application that generates EclipseLink DBWS files and assembles them into deployable archives. It is normally invoked from the command-line via its <code>main</code> method
| + | |
− | | + | |
− | | + | |
− | You can also set the <tt>DBWSBuilder</tt>’s properties, add table or procedure definitions and SQL operations programmatically through <tt>DBWSBuilder</tt>’s API.
| + | |
− | | + | |
− | The class <b><code>org.eclipse.persistence.tools.dbws.DBWSBuilder</code></b> is public and can be populated programmatically through property setters (i.e. <b><code>setDriver()</code></b>, <b><code>setUrl()</code></b>) and adding table or procedure definitions via the public <b><code>addDbTable()</code></b> and <b><code>addDbStoredProcedure()</code></b> methods; SQL operations via <b><code>addSqlOperation()</code></b> (NB - before adding a table or procedure definition, it is recommended that the public <b><code>checkTables()</code></b> and <b><code>checkStoredProcedures()</code></b> methods be used to ensure that the definitions are supported). Once all the data and definitions have been set, the builder is invoked through the <b><code>build(...)</code></b> method:
| + | |
− | | + | |
− | <source lang="java">
| + | |
− | public void build(OutputStream dbwsSchemaStream, OutputStream dbwsSessionsStream,
| + | |
− | OutputStream dbwsServiceStream, OutputStream dbwsOrStream, OutputStream dbwsOxStream,
| + | |
− | OutputStream swarefStream, OutputStream webXmlStream, OutputStream wsdlStream,
| + | |
− | OutputStream codeGenProviderStream, OutputStream sourceProviderStream, Logger logger)
| + | |
− | throws WSDLException
| + | |
− | </source>
| + | |
− | | + | |
− | | + | |
− | </onlyinclude>
| + | |
− | Information pending
| + | |
| | | |
| [[Category: DBWS]] | | [[Category: DBWS]] |
Latest revision as of 08:48, 1 November 2012
For "Using DBWSBuilder API," see http://www.eclipse.org/eclipselink/documentation/2.4/dbws/overview002.htm