xdoclet.modules.bea.wls.ejb

Class WebLogicSubTask

public class WebLogicSubTask extends AbstractEjbDeploymentDescriptorSubTask

This task can generate deployment descriptors for WLS 6.0, 6.1, 7.0 and 8.1. The destinationFile attribute is ignored because this subtask creates multiple deployment descriptor files.

Version: $Revision: 1.29 $

Author: Aslak Hellesxy Jerome Bernard

UNKNOWN: Sept 11, 2001 display-name = "WebLogic Server" name = "weblogic" parent = "xdoclet.modules.ejb.EjbDocletTask" file = "weblogic-cmp-rdbms-beans.xml" relates-to = "weblogic-cmp-rdbms-jar.xml" description = "An XML * unparsed entity containing weblogic-rdbms-bean for any CMP entity beans not processed by XDoclet." file = "weblogic-cmp-rdbms-relationships.xml" relates-to = "weblogic-cmp-rdbms-jar.xml" description = "An XML unparsed entity containing weblogic-rdbms-relation for any CMR relationships of CMP entity * beans not processed by XDoclet." file = "weblogic-enterprise-beans.xml" relates-to = "weblogic-ejb-jar.xml" description = "An XML * unparsed entity containing weblogic-enterprise-bean elements for any beans not processed by XDoclet." file = "weblogic-security-role-assignment.xml" relates-to = "weblogic-ejb-jar.xml" description = "An * XML unparsed entity containing security-role-assignment elements." file = "weblogic-run-as-role-assignment.xml" relates-to = "weblogic-ejb-jar.xml" description = "An * XML unparsed entity containing run-as-role-assignment elements."

Nested Class Summary
static classWebLogicSubTask.CreateTablesType
static classWebLogicSubTask.DatabaseTypes
Legal values of the database-type in weblogic-rdbms20-persistence-700.dtd
static classWebLogicSubTask.ValidateDbSchemaWithTypes
Legal values of the validate-db-schema-with in weblogic-rdbms20-persistence-600.dtd
static classWebLogicSubTask.Version
Supported WLS versions.
Constructor Summary
WebLogicSubTask()
Method Summary
protected voidengineStarted()
Describe what the method does
voidexecute()
StringgetCreatetables()
Gets the Createtables attribute of the WebLogicSubTask object
StringgetDatabaseType()
Gets the database type specified in the weblogic deployment descriptor.
StringgetDatasource()
Gets the Datasource attribute of the WebLogicSubTask object
StringgetEnableBatchOperations()
StringgetEnableBeanClassRedeploy()
StringgetOrderDatabaseOperations()
StringgetPersistence()
StringgetPoolname()
StringgetValidateDbSchemaWith()
StringgetVersion()
Gets the Version attribute of the WebLogicSubTask object
voidsetCmpTemplateFile(File templateFile)
Sets the template file for generation of weblogic-cmp-rdbms-jar.xml.
voidsetCreatetables(WebLogicSubTask.CreateTablesType flag)
If "True" or "CreateOnly", then at deployment time if there is no Table in the Database for a CMP Bean, the Container will attempt to CREATE the Table (based on information found in the deployment files and in the Bean Class).
voidsetDatabaseType(WebLogicSubTask.DatabaseTypes databaseType)
Sets the database type specified in the weblogic-cmp-rdbms-jar.xml deployment descriptor.
voidsetDatasource(String dataSource)
Specifies a default value for the data-source-name element in the CMP descriptor, to use if no weblogic.data-source-name tag appears on a bean.
voidsetEnableBatchOperations(boolean flag)
voidsetEnableBeanClassRedeploy(boolean flag)
voidsetOrderDatabaseOperations(boolean flag)
voidsetPersistence(String persistence)
Sets the persistence type to use.
voidsetPoolname(String s)
Specifies a default value for the pool-name element in the CMP descriptor, to use if no weblogic.pool-name tag appears on a bean (only applies when ejbspec=1.1)
voidsetTemplateFile(File templateFile)
Sets the template file for generation of weblogic-ejb-jar.xml.
voidsetValidateDbSchemaWith(WebLogicSubTask.ValidateDbSchemaWithTypes type)
The CMP subsystem checks that beans have been mapped to a valid database schema at deployment time.
voidsetVersion(WebLogicSubTask.Version version)
Sets the target WebLogic version to generate for.
voidvalidateOptions()
Called to validate configuration parameters.

Constructor Detail

WebLogicSubTask

public WebLogicSubTask()

Method Detail

engineStarted

protected void engineStarted()
Describe what the method does

Throws: XDocletException Describe the exception

execute

public void execute()

Throws: XDocletException

See Also: execute

getCreatetables

public String getCreatetables()
Gets the Createtables attribute of the WebLogicSubTask object

Returns: The Createtables value

getDatabaseType

public String getDatabaseType()
Gets the database type specified in the weblogic deployment descriptor. This is a WLS 7.0 and higher feature. Possible values: DB2 INFORMIX ORACLE SQL_SERVER SYBASE POINTBASE

Returns: DatabaseType

getDatasource

public String getDatasource()
Gets the Datasource attribute of the WebLogicSubTask object

Returns: The Datasource value

getEnableBatchOperations

public String getEnableBatchOperations()

getEnableBeanClassRedeploy

public String getEnableBeanClassRedeploy()

getOrderDatabaseOperations

public String getOrderDatabaseOperations()

getPersistence

public String getPersistence()

getPoolname

public String getPoolname()

getValidateDbSchemaWith

public String getValidateDbSchemaWith()

getVersion

public String getVersion()
Gets the Version attribute of the WebLogicSubTask object

Returns: The Version value

setCmpTemplateFile

public void setCmpTemplateFile(File templateFile)
Sets the template file for generation of weblogic-cmp-rdbms-jar.xml.

Parameters: templateFile the file name (real file!) of the template

Throws: XDocletException

UNKNOWN: Yesifits anested