Class DBWSBuilder
java.lang.Object
org.eclipse.persistence.tools.dbws.DBWSBuilderModel
org.eclipse.persistence.tools.dbws.DBWSBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected DBWSBuilderHelperprotected Connectionstatic final Stringprotected DatabasePlatformstatic final Stringstatic final Stringprotected Stringstatic final Stringstatic final Stringprotected Loggerstatic final Stringprotected NamespaceResolverprotected Projectstatic final Stringprotected Projectstatic final Stringprotected DBWSPackagerstatic final Map<String, DBWSPackager> static final Stringstatic final Stringstatic final Stringbooleanprotected Schemastatic final Stringstatic final Stringstatic final Stringprotected NamingConventionTransformerstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected WSDLGeneratorprotected XRServiceModelFields inherited from class org.eclipse.persistence.tools.dbws.DBWSBuilderModel
operations, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperation(OperationModel operation) Add an OperationModel instance to the List of OperationModels to be processed.voidaddSqlOperation(SQLOperationModel sqlOperation) Deprecated.As of release 2.4, use addOperation(OperationModel operation) instead.voidbuild(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.voidbuild(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 ProjectConfigprotected ProjectConfigReturn the projectName property or the default (myProject) if not set.getUrl()protected booleanbooleanvoidlogMessage(Level level, String message) protected voidlogMessage(Level severe, String message, Exception e) static voidThis method creates a new DBWSBuilder instance, and calls the start method with the given arguments.booleanvoidsetBuilderHelper(DBWSBuilderHelper builderHelper) voidsetConnection(Connection conn) voidsetContextRoot(String contextRoot) voidsetDatabasePlatform(DatabasePlatform databasePlatform) voidsetDataSource(String dataSource) voidvoidsetLogLevel(String logLevel) voidsetOrProject(Project orProject) voidsetOrSessionCustomizerClassName(String sessionCustomizerClassName) voidsetOxProject(Project oxProject) voidsetOXSessionCustomizerClassName(String sessionCustomizerClassName) voidsetPackager(DBWSPackager packager) voidsetPassword(String password) voidsetPlatformClassname(String platformClassname) voidsetProjectName(String projectName) Sets the projectName property.voidvoidsetSessionsFileName(String sessionsFileName) voidsetTargetNamespace(String targetNamespace) voidsetTopNamingConventionTransformer(NamingConventionTransformer topTransformer) voidvoidsetUsername(String username) voidsetWsdlLocationURI(String wsdlLocationURI) voidstart()Initialize the required OutputStreams and call the build method.voidThis method processes the given arguments, sets properties and operations, initializes the target packager, then calls the start method.voidbooleanMethods 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()
-