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 $
Authors:
Aslak Hellesxy
Jerome Bernard
ant.element
display-name = "WebLogic Server" name = "weblogic" parent = "xdoclet.modules.ejb.EjbDocletTask"
created
Sept 11, 2001

Nested Class Summary

static class
WebLogicSubTask.CreateTablesType
static class
WebLogicSubTask.DatabaseTypes
Legal values of the database-type in weblogic-rdbms20-persistence-700.dtd
static class
WebLogicSubTask.ValidateDbSchemaWithTypes
Legal values of the validate-db-schema-with in weblogic-rdbms20-persistence-600.dtd
static class
WebLogicSubTask.Version
Supported WLS versions.

Constructor Summary

WebLogicSubTask()

Method Summary

protected void
engineStarted()
Describe what the method does
void
execute()
String
getCreatetables()
Gets the Createtables attribute of the WebLogicSubTask object
String
getDatabaseType()
Gets the database type specified in the weblogic deployment descriptor.
String
getDatasource()
Gets the Datasource attribute of the WebLogicSubTask object
String
getEnableBatchOperations()
String
getEnableBeanClassRedeploy()
String
getOrderDatabaseOperations()
String
getPersistence()
String
getPoolname()
String
getValidateDbSchemaWith()
String
getVersion()
Gets the Version attribute of the WebLogicSubTask object
void
setCmpTemplateFile(File templateFile)
Sets the template file for generation of weblogic-cmp-rdbms-jar.xml.
void
setCreatetables(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).
void
setDatabaseType(WebLogicSubTask.DatabaseTypes databaseType)
Sets the database type specified in the weblogic-cmp-rdbms-jar.xml deployment descriptor.
void
setDatasource(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.
void
setEnableBatchOperations(boolean flag)
void
setEnableBeanClassRedeploy(boolean flag)
void
setOrderDatabaseOperations(boolean flag)
void
setPersistence(String persistence)
Sets the persistence type to use.
void
setPoolname(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)
void
setTemplateFile(File templateFile)
Sets the template file for generation of weblogic-ejb-jar.xml.
void
setValidateDbSchemaWith(WebLogicSubTask.ValidateDbSchemaWithTypes type)
The CMP subsystem checks that beans have been mapped to a valid database schema at deployment time.
void
setVersion(WebLogicSubTask.Version version)
Sets the target WebLogic version to generate for.
void
validateOptions()
Called to validate configuration parameters.

Constructor Details

WebLogicSubTask

public WebLogicSubTask()

Method Details

engineStarted

protected void engineStarted()
            throws xdoclet.XDocletException
Describe what the method does
Throws:
xdoclet.XDocletException - Describe the exception

execute

public void execute()
            throws xdoclet.XDocletException
Throws:
xdoclet.XDocletException -
See Also:
xdoclet.SubTask.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)
            throws xdoclet.XDocletException
Sets the template file for generation of weblogic-cmp-rdbms-jar.xml.
Parameters:
templateFile - the file name (real file!) of the template
Throws:
xdoclet.XDocletException -
ant.not-required
Yesifits anested