|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxdoclet.DocletSupport
xdoclet.SubTask
xdoclet.TemplateSubTask
xdoclet.modules.hibernate.FactoryClassSubTask
public class FactoryClassSubTask
Generate a SessionFactory facade that is capable of configuring Hibernate inline, as well as provide a convenient method of switching later to other SessionFactory implementations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xdoclet.TemplateSubTask |
|---|
TemplateSubTask.ExtentTypes, TemplateSubTask.OfType |
| Field Summary |
|---|
| Fields inherited from class xdoclet.DocletSupport |
|---|
currentClassTag, currentFieldTag, currentMethodTag |
| Constructor Summary | |
|---|---|
FactoryClassSubTask()
Constructor for the HibernateSubTask object |
|
| Method Summary | |
|---|---|
protected void |
engineStarted()
Called when the engine is started |
void |
execute()
Describe what the method does |
java.lang.String |
getDataSource()
|
java.lang.String |
getDialect()
|
java.lang.String |
getDriver()
|
java.lang.String |
getFactoryClass()
|
protected java.lang.String |
getGeneratedFileName(xjavadoc.XClass clazz)
Gets the GeneratedFileName attribute of the EntityCmpSubTask object |
java.lang.String |
getJdbcUrl()
|
java.lang.String |
getJndiName()
|
java.util.Collection |
getJndiProperties()
|
java.util.Collection |
getOtherMappings()
We don't provide/have/use other mappings here for now. |
java.util.Collection |
getOtherProperties()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPoolSize()
|
boolean |
getShowSql()
|
java.lang.String |
getTransactionManagerStrategy()
|
boolean |
getUseOuterJoin()
|
java.lang.String |
getUsername()
|
java.lang.String |
getUserName()
|
java.lang.String |
getUserTransactionName()
|
boolean |
isUseJndiFactory()
|
void |
setDataSource(java.lang.String dataSource)
The data source name to be generated into the factory |
void |
setDialect(java.lang.String dialect)
The Hibernate DB dialect to be generated into the factory |
void |
setDriver(java.lang.String driver)
The driver class name to be generated into the factory |
void |
setFactoryClass(java.lang.String factoryClass)
The fully qualified class name of the generated factory |
void |
setJdbcUrl(java.lang.String jdbcUrl)
|
void |
setJndiName(java.lang.String jndiName)
|
void |
setPassword(java.lang.String password)
The password to be generated into the factory |
void |
setPoolSize(java.lang.String poolSize)
|
void |
setUseJndiFactory(boolean useJndiFactory)
|
void |
setUsername(java.lang.String username)
The username to be generated into the factory |
void |
validateOptions()
Called to validate configuration parameters. |
| Methods inherited from class xdoclet.SubTask |
|---|
addConfigParam, getConfigParams, getConfigParamsAsMap, getContext, getDestDir, getMergeDir, getSubTaskName, getXJavaDoc, setDestDir, setMergeDir, setSubTaskName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryClassSubTask()
| Method Detail |
|---|
public java.lang.String getDataSource()
getDataSource in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getDialect()
getDialect in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getDriver()
getDriver in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getPassword()
getPassword in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getUsername()
public java.lang.String getFactoryClass()
public boolean isUseJndiFactory()
public java.util.Collection getJndiProperties()
getJndiProperties in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.util.Collection getOtherMappings()
getOtherMappings in interface xdoclet.modules.hibernate.HibernatePropertiesHibernateProperties.getOtherMappings()public java.util.Collection getOtherProperties()
getOtherProperties in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getTransactionManagerStrategy()
getTransactionManagerStrategy in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getUserTransactionName()
getUserTransactionName in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getUserName()
getUserName in interface xdoclet.modules.hibernate.HibernatePropertiespublic boolean getUseOuterJoin()
getUseOuterJoin in interface xdoclet.modules.hibernate.HibernatePropertiespublic boolean getShowSql()
getShowSql in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getJndiName()
getJndiName in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getJdbcUrl()
getJdbcUrl in interface xdoclet.modules.hibernate.HibernatePropertiespublic java.lang.String getPoolSize()
getPoolSize in interface xdoclet.modules.hibernate.HibernatePropertiespublic void setJndiName(java.lang.String jndiName)
jndiName - public void setJdbcUrl(java.lang.String jdbcUrl)
jdbcUrl - public void setPoolSize(java.lang.String poolSize)
poolSize - public void setDataSource(java.lang.String dataSource)
dataSource - public void setDialect(java.lang.String dialect)
dialect - public void setDriver(java.lang.String driver)
driver - public void setPassword(java.lang.String password)
password - public void setUsername(java.lang.String username)
username - public void setFactoryClass(java.lang.String factoryClass)
factoryClass - public void setUseJndiFactory(boolean useJndiFactory)
useJndiFactory -
public void validateOptions()
throws XDocletException
TemplateSubTask
validateOptions in class TemplateSubTaskXDocletException - Description of Exception
public void execute()
throws XDocletException
execute in class TemplateSubTaskXDocletException - Describe the exception
protected java.lang.String getGeneratedFileName(xjavadoc.XClass clazz)
throws XDocletException
getGeneratedFileName in class TemplateSubTaskclazz - Describe what the parameter does
XDocletException
protected void engineStarted()
throws XDocletException
engineStarted in class TemplateSubTaskXDocletException - Thrown in case of problem
|
http://xdoclet.sourceforge.net/ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||