Class DBWSBuilder
java.lang.Object
org.eclipse.persistence.tools.dbws.DBWSBuilderModel
org.eclipse.persistence.tools.dbws.DBWSBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
protected DBWSBuilderHelper
protected Connection
static final String
protected DatabasePlatform
static final String
static final String
protected String
static final String
static final String
protected Logger
static final String
protected NamespaceResolver
protected Project
static final String
protected Project
static final String
protected DBWSPackager
static final Map
<String, DBWSPackager> static final String
static final String
static final String
boolean
protected Schema
static final String
static final String
static final String
protected NamingConventionTransformer
static final String
static final String
static final String
static final String
protected WSDLGenerator
protected XRServiceModel
Fields inherited from class org.eclipse.persistence.tools.dbws.DBWSBuilderModel
operations, properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOperation
(OperationModel operation) Add an OperationModel instance to the List of OperationModels to be processed.void
addSqlOperation
(SQLOperationModel sqlOperation) Deprecated.As of release 2.4, use addOperation(OperationModel operation) instead.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) Generate the required artifacts for the target packaging/archiving, and write each to the given OutputStreams as appropriate.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) Continue to support calling the build method without providing an OutputStream for the optional deployment descriptor.protected ProjectConfig
protected ProjectConfig
Return the projectName property or the default (myProject) if not set.getUrl()
protected boolean
boolean
void
logMessage
(Level level, String message) protected void
logMessage
(Level severe, String message, Exception e) static void
This method creates a new DBWSBuilder instance, and calls the start method with the given arguments.boolean
void
setBuilderHelper
(DBWSBuilderHelper builderHelper) void
setConnection
(Connection conn) void
setContextRoot
(String contextRoot) void
setDatabasePlatform
(DatabasePlatform databasePlatform) void
setDataSource
(String dataSource) void
void
setLogLevel
(String logLevel) void
setOrProject
(Project orProject) void
setOrSessionCustomizerClassName
(String sessionCustomizerClassName) void
setOxProject
(Project oxProject) void
setOXSessionCustomizerClassName
(String sessionCustomizerClassName) void
setPackager
(DBWSPackager packager) void
setPassword
(String password) void
setPlatformClassname
(String platformClassname) void
setProjectName
(String projectName) Sets the projectName property.void
void
setSessionsFileName
(String sessionsFileName) void
setTargetNamespace
(String targetNamespace) void
setTopNamingConventionTransformer
(NamingConventionTransformer topTransformer) void
void
setUsername
(String username) void
setWsdlLocationURI
(String wsdlLocationURI) void
start()
Initialize the required OutputStreams and call the build method.void
This method processes the given arguments, sets properties and operations, initializes the target packager, then calls the start method.void
boolean
Methods inherited from class org.eclipse.persistence.tools.dbws.DBWSBuilderModel
getOperations, getProperties, setOperations, setProperties
-
Field Details
-
BUILDER_FILE_PATH
- See Also:
-
BUILDER_PACKAGING
- See Also:
-
STAGE_DIR
- See Also:
-
DRIVER_KEY
- See Also:
-
USERNAME_KEY
- See Also:
-
PASSWORD_KEY
- See Also:
-
URL_KEY
- See Also:
-
PROJNAME_KEY
- See Also:
-
DEFAULT_PROJECT_NAME
- See Also:
-
CONTEXT_ROOT_KEY
- See Also:
-
DATASOURCE_KEY
- See Also:
-
SESSIONS_FILENAME_KEY
- See Also:
-
NO_SESSIONS_FILENAME
- See Also:
-
PLATFORM_CLASSNAME_KEY
- See Also:
-
ORSESSION_CUSTOMIZER_KEY
- See Also:
-
OXSESSION_CUSTOMIZER_KEY
- See Also:
-
WSDL_URI_KEY
- See Also:
-
LOG_LEVEL_KEY
- See Also:
-
TARGET_NAMESPACE_KEY
- See Also:
-
USE_SOAP12_KEY
- See Also:
-
PACKAGERS
-
packager
-
logger
-
quiet
public boolean quiet -
destDir
-
databasePlatform
-
conn
-
orProject
-
oxProject
-
wsdlGenerator
-
schema
-
ns
-
xrServiceModel
-
builderHelper
-
topTransformer
-
typeDDL
-
typeDropDDL
-
requireCRUDOperations
-
-
Constructor Details
-
DBWSBuilder
public DBWSBuilder()
-
-
Method Details
-
main
This method creates a new DBWSBuilder instance, and calls the start method with the given arguments.- Throws:
javax.wsdl.WSDLException
-
start
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.WSDLExceptionInitialize 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
-
addSqlOperation
Deprecated.As of release 2.4, use addOperation(OperationModel operation) instead.- See Also:
-
addOperation
Add an OperationModel instance to the List of OperationModels to be processed. -
buildORProjectConfig
-
buildOXProjectConfig
-
hasAttachments
protected boolean hasAttachments() -
getPackager
-
setPackager
-
getDriver
-
setDriver
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getUrl
-
setUrl
-
getConnection
-
setConnection
-
getProjectName
Return the projectName property or the default (myProject) if not set. -
setProjectName
Sets the projectName property. -
getContextRoot
-
setContextRoot
-
getDataSource
-
setDataSource
-
getSessionsFileName
-
setSessionsFileName
-
getPlatformClassname
-
setPlatformClassname
-
getDatabasePlatform
-
setDatabasePlatform
-
getOrProject
-
setOrProject
-
getOxProject
-
setOxProject
-
getSchema
-
setSchema
-
getXrServiceModel
-
getOrSessionCustomizerClassName
-
setOrSessionCustomizerClassName
-
getOxSessionCustomizerClassName
-
setOXSessionCustomizerClassName
-
getWSDLGenerator
-
getWsdlLocationURI
-
setWsdlLocationURI
-
getLogLevel
-
setLogLevel
-
getTargetNamespace
-
getTypeDDL
-
getTypeDropDDL
-
getBuilderHelper
-
setBuilderHelper
-
useSOAP12
public void useSOAP12() -
usesSOAP12
public boolean usesSOAP12() -
mtomEnabled
public boolean mtomEnabled() -
setTargetNamespace
-
logMessage
-
logMessage
-
getTopNamingConventionTransformer
-
setTopNamingConventionTransformer
-
hasBuildSqlOperations
public boolean hasBuildSqlOperations()
-