|
|||||||||||
| 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
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 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 |
String |
getDataSource()
|
String |
getDialect()
|
String |
getDriver()
|
String |
getFactoryClass()
|
protected String |
getGeneratedFileName(xjavadoc.XClass clazz)
Gets the GeneratedFileName attribute of the EntityCmpSubTask object |
String |
getJdbcUrl()
|
String |
getJndiName()
|
Collection |
getJndiProperties()
|
Collection |
getOtherMappings()
We don't provide/have/use other mappings here for now. |
Collection |
getOtherProperties()
|
String |
getPassword()
|
String |
getPoolSize()
|
boolean |
getShowSql()
|
String |
getTransactionManagerStrategy()
|
boolean |
getUseOuterJoin()
|
String |
getUsername()
|
String |
getUserName()
|
String |
getUserTransactionName()
|
boolean |
isUseJndiFactory()
|
void |
setDataSource(String dataSource)
The data source name to be generated into the factory |
void |
setDialect(String dialect)
The Hibernate DB dialect to be generated into the factory |
void |
setDriver(String driver)
The driver class name to be generated into the factory |
void |
setFactoryClass(String factoryClass)
The fully qualified class name of the generated factory |
void |
setJdbcUrl(String jdbcUrl)
|
void |
setJndiName(String jndiName)
|
void |
setPassword(String password)
The password to be generated into the factory |
void |
setPoolSize(String poolSize)
|
void |
setUseJndiFactory(boolean useJndiFactory)
|
void |
setUsername(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 String getDataSource()
getDataSource in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getDialect()
getDialect in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getDriver()
getDriver in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getPassword()
getPassword in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getUsername()
public String getFactoryClass()
public boolean isUseJndiFactory()
public Collection getJndiProperties()
getJndiProperties in interface xdoclet.modules.hibernate.HibernatePropertiespublic Collection getOtherMappings()
getOtherMappings in interface xdoclet.modules.hibernate.HibernatePropertiesHibernateProperties.getOtherMappings()public Collection getOtherProperties()
getOtherProperties in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getTransactionManagerStrategy()
getTransactionManagerStrategy in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getUserTransactionName()
getUserTransactionName in interface xdoclet.modules.hibernate.HibernatePropertiespublic 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 String getJndiName()
getJndiName in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getJdbcUrl()
getJdbcUrl in interface xdoclet.modules.hibernate.HibernatePropertiespublic String getPoolSize()
getPoolSize in interface xdoclet.modules.hibernate.HibernatePropertiespublic void setJndiName(String jndiName)
jndiName - public void setJdbcUrl(String jdbcUrl)
jdbcUrl - public void setPoolSize(String poolSize)
poolSize - public void setDataSource(String dataSource)
dataSource - public void setDialect(String dialect)
dialect - public void setDriver(String driver)
driver - public void setPassword(String password)
password - public void setUsername(String username)
username - public void setFactoryClass(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 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 | ||||||||||