xdoclet.modules.bea.wls.ejb
public class WebLogicSubTask extends AbstractEjbDeploymentDescriptorSubTask
Modifier and Type | Class and Description |
---|---|
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.
|
TemplateSubTask.ExtentTypes, TemplateSubTask.OfType
currentClassTag, currentFieldTag, currentMethodTag
Constructor and Description |
---|
WebLogicSubTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
engineStarted()
Describe what the method does
|
void |
execute()
Describe what the method does
|
java.lang.String |
getCreatetables()
Gets the Createtables attribute of the WebLogicSubTask object
|
java.lang.String |
getDatabaseType()
Gets the database type specified in the weblogic deployment descriptor.
|
java.lang.String |
getDatasource()
Gets the Datasource attribute of the WebLogicSubTask object
|
java.lang.String |
getEnableBatchOperations() |
java.lang.String |
getEnableBeanClassRedeploy() |
java.lang.String |
getOrderDatabaseOperations() |
java.lang.String |
getPersistence() |
java.lang.String |
getPoolname() |
java.lang.String |
getValidateDbSchemaWith() |
java.lang.String |
getVersion()
Gets the Version attribute of the WebLogicSubTask object
|
void |
setCmpTemplateFile(java.io.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(java.lang.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(java.lang.String persistence)
Sets the persistence type to use.
|
void |
setPoolname(java.lang.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(java.io.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.
|
atLeastOneCmp1EntityBeanExists, atLeastOneCmp2EntityBeanExists, atLeastOneCmpEntityBeanExists
copyAttributesFrom, engineFinished, getDtdURL, getPublicId, getSchema, getSchemaURL, getSystemId, getUseIds, getXmlencoding, isValidateXML, setDtdURL, setPublicId, setSchema, setSchemaURL, setSystemId, setUseIds, setValidateXML, setXmlencoding, startProcess
addOfType, addOfType, addPackageSubstitution, generateForClass, getAcceptAbstractClasses, getAcceptInterfaces, getDestinationFile, getEngine, getExtent, getGeneratedFileName, getGenerationManager, getHavingClassTag, getOfType, getPackageSubstitutions, getSubTaskClassName, getTemplateURL, init, isPackageSubstitutionInheritanceSupported, isPrefixWithPackageStructure, javaFile, matchesGenerationRules, processInnerClasses, setAcceptAbstractClasses, setAcceptInterfaces, setDestinationFile, setEngine, setExtent, setExtentValue, setGenerationManager, setHavingClassTag, setOfType, setPackageSubstitutionInheritanceSupported, setPackageSubstitutions, setPrefixWithPackageStructure, setSubTaskClassName, setTemplateURL, startEngine, startProcessForAll, startProcessPerClass
addConfigParam, getConfigParams, getConfigParamsAsMap, getContext, getDestDir, getMergeDir, getSubTaskName, getXJavaDoc, setDestDir, setMergeDir, setSubTaskName
getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getCurrentTag, isDocletGenerated, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage
public java.lang.String getDatabaseType()
public java.lang.String getDatasource()
public java.lang.String getPoolname()
public java.lang.String getVersion()
public java.lang.String getCreatetables()
public java.lang.String getPersistence()
public java.lang.String getValidateDbSchemaWith()
public java.lang.String getOrderDatabaseOperations()
public java.lang.String getEnableBatchOperations()
public java.lang.String getEnableBeanClassRedeploy()
public void setTemplateFile(java.io.File templateFile) throws XDocletException
setTemplateFile
in class TemplateSubTask
templateFile
- XDocletException
TemplateSubTask.setTemplateFile(java.io.File)
public void setCmpTemplateFile(java.io.File templateFile) throws XDocletException
templateFile
- the file name (real file!) of the templateXDocletException
public void setOrderDatabaseOperations(boolean flag)
public void setEnableBatchOperations(boolean flag)
public void setEnableBeanClassRedeploy(boolean flag)
public void setDatabaseType(WebLogicSubTask.DatabaseTypes databaseType)
databaseType
- public void setPoolname(java.lang.String s)
s
- public void setDatasource(java.lang.String dataSource)
dataSource
- public void setVersion(WebLogicSubTask.Version version)
version
- The new Version valuepublic void setPersistence(java.lang.String persistence)
persistence
- public void setCreatetables(WebLogicSubTask.CreateTablesType flag)
flag
- The new Createtables valuepublic void setValidateDbSchemaWith(WebLogicSubTask.ValidateDbSchemaWithTypes type)
type
- public void validateOptions() throws XDocletException
validateOptions
in class TemplateSubTask
XDocletException
- Description of Exceptionpublic void execute() throws XDocletException
TemplateSubTask
execute
in class TemplateSubTask
XDocletException
SubTask.execute()
protected void engineStarted() throws XDocletException
engineStarted
in class TemplateSubTask
XDocletException
- Describe the exception