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.
engineStarted
protected void engineStarted()
throws xdoclet.XDocletException
Describe what the method does
xdoclet.XDocletException
- Describe the exception
execute
public void execute()
throws xdoclet.XDocletException
xdoclet.XDocletException
-
xdoclet.SubTask.execute()
getCreatetables
public String getCreatetables()
Gets the Createtables attribute of the WebLogicSubTask object
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
getDatasource
public String getDatasource()
Gets the Datasource attribute of the WebLogicSubTask object
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
setCmpTemplateFile
public void setCmpTemplateFile(File templateFile)
throws xdoclet.XDocletException
Sets the template file for generation of weblogic-cmp-rdbms-jar.xml.
templateFile
- the file name (real file!) of the template
xdoclet.XDocletException
-
- Yesifits
anested
element.
setCreatetables
public 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). Valid values are "True" and "False" for WLS Servers < Version 8.1 and "CreateOnly", "DropAndCreate",
"DropAndCreateAlways", "AlterOrCreate" and "Disabled" for WLS Servers >= 8.1.
flag
- The new Createtables value
- "No, default is 'False' for WLS Servers < Version 8.1 and 'Disabled' for WLS Servers >=
8.1"
setDatabaseType
public void setDatabaseType(WebLogicSubTask.DatabaseTypes databaseType)
Sets the database type specified in the weblogic-cmp-rdbms-jar.xml deployment descriptor. This is a WLS 7.0 and
higher feature. Possible values: DB2 INFORMIX ORACLE SQL_SERVER SYBASE POINTBASE
- No,onlyused
with7.0upwards,
andoptionaleven
then.
setDatasource
public 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.
setEnableBatchOperations
public void setEnableBatchOperations(boolean flag)
setEnableBeanClassRedeploy
public void setEnableBeanClassRedeploy(boolean flag)
setOrderDatabaseOperations
public void setOrderDatabaseOperations(boolean flag)
setPersistence
public void setPersistence(String persistence)
Sets the persistence type to use. Useful if you're using a different persistence manager like MVCSoft
- "No, default is 'weblogic'"
setPoolname
public 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)
setTemplateFile
public void setTemplateFile(File templateFile)
throws xdoclet.XDocletException
Sets the template file for generation of weblogic-ejb-jar.xml.
xdoclet.XDocletException
-
xdoclet.TemplateSubTask.setTemplateFile(java.io.File)
setValidateDbSchemaWith
public void setValidateDbSchemaWith(WebLogicSubTask.ValidateDbSchemaWithTypes type)
The CMP subsystem checks that beans have been mapped to a valid database schema at deployment time. A value of
'MetaData' means that JDBC metadata is used to validate the schema. A value of 'TableQuery' means that tables are
queried directly to ascertain that they have the schema expected by the CMP runtime.
setVersion
public void setVersion(WebLogicSubTask.Version version)
Sets the target WebLogic version to generate for. Possible values are 6.1, 7.0 and 8.1
version
- The new Version value
validateOptions
public void validateOptions()
throws xdoclet.XDocletException
Called to validate configuration parameters.
xdoclet.XDocletException
- Description of Exception