java.lang.Object
org.eclipse.persistence.tools.dbws.DBWSBuilderModel
org.eclipse.persistence.tools.dbws.DBWSBuilder

public class DBWSBuilder extends DBWSBuilderModel
  • Field Details

  • Constructor Details

    • DBWSBuilder

      public DBWSBuilder()
  • Method Details

    • main

      public static void main(String[] args) throws javax.wsdl.WSDLException
      This method creates a new DBWSBuilder instance, and calls the start method with the given arguments.
      Throws:
      javax.wsdl.WSDLException
    • start

      public void start(String[] args) throws javax.wsdl.WSDLException
      This method processes the given arguments, sets properties and operations, initializes the target packager, then calls the start method. This method expects 6 or 7 arguments (7 if the archive file name is provided), as follows: [0] -builderFile [1] <builder filename> [2] -stageDir [3] <stage dir> [4] -packagAs [5] <package type> (wls, jdev, etc.) [6] <archive filename> (optional)
      Throws:
      javax.wsdl.WSDLException
    • start

      public void start() throws javax.wsdl.WSDLException
      Initialize the required OutputStreams and call the build method.
      Throws:
      javax.wsdl.WSDLException
    • build

      public void build(OutputStream dbwsSchemaStream, OutputStream dbwsSessionsStream, OutputStream dbwsServiceStream, OutputStream dbwsOrStream, OutputStream dbwsOxStream, OutputStream swarefStream, OutputStream webXmlStream, OutputStream wsdlStream, OutputStream classProviderStream, OutputStream sourceProviderStream, OutputStream classProviderListenerStream, OutputStream sourceProviderListenerStream, Logger logger) throws javax.wsdl.WSDLException
      Continue to support calling the build method without providing an OutputStream for the optional deployment descriptor.
      Throws:
      javax.wsdl.WSDLException
    • build

      public void build(OutputStream dbwsSchemaStream, OutputStream dbwsSessionsStream, OutputStream dbwsServiceStream, OutputStream dbwsOrStream, OutputStream dbwsOxStream, OutputStream swarefStream, OutputStream webXmlStream, OutputStream wsdlStream, OutputStream classProviderStream, OutputStream sourceProviderStream, OutputStream classProviderListenerStream, OutputStream sourceProviderListenerStream, OutputStream deploymentDescriptorStream, Logger logger) throws javax.wsdl.WSDLException
      Generate the required artifacts for the target packaging/archiving, and write each to the given OutputStreams as appropriate.
      Throws:
      javax.wsdl.WSDLException
    • getShadowDDLStream

      public OutputStream getShadowDDLStream()
    • addSqlOperation

      @Deprecated public void addSqlOperation(SQLOperationModel sqlOperation)
      Deprecated.
      As of release 2.4, use addOperation(OperationModel operation) instead.
      See Also:
    • addOperation

      public void addOperation(OperationModel operation)
      Add an OperationModel instance to the List of OperationModels to be processed.
    • buildORProjectConfig

      protected ProjectConfig buildORProjectConfig()
    • buildOXProjectConfig

      protected ProjectConfig buildOXProjectConfig()
    • hasAttachments

      protected boolean hasAttachments()
    • getPackager

      public DBWSPackager getPackager()
    • setPackager

      public void setPackager(DBWSPackager packager)
    • getDriver

      public String getDriver()
    • setDriver

      public void setDriver(String driver)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getConnection

      public Connection getConnection()
    • setConnection

      public void setConnection(Connection conn)
    • getProjectName

      public String getProjectName()
      Return the projectName property or the default (myProject) if not set.
    • setProjectName

      public void setProjectName(String projectName)
      Sets the projectName property.
    • getContextRoot

      public String getContextRoot()
    • setContextRoot

      public void setContextRoot(String contextRoot)
    • getDataSource

      public String getDataSource()
    • setDataSource

      public void setDataSource(String dataSource)
    • getSessionsFileName

      public String getSessionsFileName()
    • setSessionsFileName

      public void setSessionsFileName(String sessionsFileName)
    • getPlatformClassname

      public String getPlatformClassname()
    • setPlatformClassname

      public void setPlatformClassname(String platformClassname)
    • getDatabasePlatform

      public DatabasePlatform getDatabasePlatform()
    • setDatabasePlatform

      public void setDatabasePlatform(DatabasePlatform databasePlatform)
    • getOrProject

      public Project getOrProject()
    • setOrProject

      public void setOrProject(Project orProject)
    • getOxProject

      public Project getOxProject()
    • setOxProject

      public void setOxProject(Project oxProject)
    • getSchema

      public Schema getSchema()
    • setSchema

      public void setSchema(Schema schema)
    • getXrServiceModel

      public XRServiceModel getXrServiceModel()
    • getOrSessionCustomizerClassName

      public String getOrSessionCustomizerClassName()
    • setOrSessionCustomizerClassName

      public void setOrSessionCustomizerClassName(String sessionCustomizerClassName)
    • getOxSessionCustomizerClassName

      public String getOxSessionCustomizerClassName()
    • setOXSessionCustomizerClassName

      public void setOXSessionCustomizerClassName(String sessionCustomizerClassName)
    • getWSDLGenerator

      public WSDLGenerator getWSDLGenerator()
    • getWsdlLocationURI

      public String getWsdlLocationURI()
    • setWsdlLocationURI

      public void setWsdlLocationURI(String wsdlLocationURI)
    • getLogLevel

      public String getLogLevel()
    • setLogLevel

      public void setLogLevel(String logLevel)
    • getTargetNamespace

      public String getTargetNamespace()
    • getTypeDDL

      public Set<String> getTypeDDL()
    • getTypeDropDDL

      public Set<String> getTypeDropDDL()
    • getBuilderHelper

      public DBWSBuilderHelper getBuilderHelper()
    • setBuilderHelper

      public void setBuilderHelper(DBWSBuilderHelper builderHelper)
    • useSOAP12

      public void useSOAP12()
    • usesSOAP12

      public boolean usesSOAP12()
    • mtomEnabled

      public boolean mtomEnabled()
    • setTargetNamespace

      public void setTargetNamespace(String targetNamespace)
    • logMessage

      public void logMessage(Level level, String message)
    • logMessage

      protected void logMessage(Level severe, String message, Exception e)
    • getTopNamingConventionTransformer

      public NamingConventionTransformer getTopNamingConventionTransformer()
    • setTopNamingConventionTransformer

      public void setTopNamingConventionTransformer(NamingConventionTransformer topTransformer)
    • hasBuildSqlOperations

      public boolean hasBuildSqlOperations()