|
|||||||||||
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.HibernateProperties
public String getDialect()
getDialect
in interface xdoclet.modules.hibernate.HibernateProperties
public String getDriver()
getDriver
in interface xdoclet.modules.hibernate.HibernateProperties
public String getPassword()
getPassword
in interface xdoclet.modules.hibernate.HibernateProperties
public String getUsername()
public String getFactoryClass()
public boolean isUseJndiFactory()
public Collection getJndiProperties()
getJndiProperties
in interface xdoclet.modules.hibernate.HibernateProperties
public Collection getOtherMappings()
getOtherMappings
in interface xdoclet.modules.hibernate.HibernateProperties
HibernateProperties.getOtherMappings()
public Collection getOtherProperties()
getOtherProperties
in interface xdoclet.modules.hibernate.HibernateProperties
public String getTransactionManagerStrategy()
getTransactionManagerStrategy
in interface xdoclet.modules.hibernate.HibernateProperties
public String getUserTransactionName()
getUserTransactionName
in interface xdoclet.modules.hibernate.HibernateProperties
public String getUserName()
getUserName
in interface xdoclet.modules.hibernate.HibernateProperties
public boolean getUseOuterJoin()
getUseOuterJoin
in interface xdoclet.modules.hibernate.HibernateProperties
public boolean getShowSql()
getShowSql
in interface xdoclet.modules.hibernate.HibernateProperties
public String getJndiName()
getJndiName
in interface xdoclet.modules.hibernate.HibernateProperties
public String getJdbcUrl()
getJdbcUrl
in interface xdoclet.modules.hibernate.HibernateProperties
public String getPoolSize()
getPoolSize
in interface xdoclet.modules.hibernate.HibernateProperties
public 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 TemplateSubTask
XDocletException
- Description of Exceptionpublic void execute() throws XDocletException
execute
in class TemplateSubTask
XDocletException
- Describe the exceptionprotected String getGeneratedFileName(xjavadoc.XClass clazz) throws XDocletException
getGeneratedFileName
in class TemplateSubTask
clazz
- Describe what the parameter does
XDocletException
protected void engineStarted() throws XDocletException
engineStarted
in class TemplateSubTask
XDocletException
- 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 |