|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdoclet.template.TemplateTagHandler xdoclet.XDocletTagSupport xdoclet.modules.hibernate.HibernateTagsHandler
Specific tags handler to make the template easy.
Field Summary |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
HibernateTagsHandler()
|
Method Summary | |
String |
computeColumnName(Properties attributes)
The column name for a component is prefix + basename |
String |
dataSource()
Data source JNDI Name extractor. |
String |
dialect()
SQL dialect extractor. |
String |
driver()
Driver Name extractor. |
String |
factoryClass()
classname extractor. |
void |
forAllJndiProperties(String template,
Properties attributes)
Iterates over all jndiProperties specified. |
void |
forAllOtherMappings(String template,
Properties attributes)
Iterates over all otherMappings specified. |
void |
forAllOtherProperties(String template,
Properties attributes)
Iterates over all otherProperties specified. |
void |
forAllPersistentClasses(String template,
Properties attributes)
Iterates over all classes marked as persistent. |
void |
forAllSubclasses(String template,
Properties attributes)
Iterates over all classes loaded by javadoc that are direct subclasses of the current class and evaluates the body of the tag for each class. |
String |
getCurrentMappingElement(Properties attributes)
|
String |
getCurrentTag(Properties attributes)
|
FactoryClassSubTask |
getFactoryClassSubTask()
|
String |
getFileName()
Returns full path of hibernate file for the current class. |
xdoclet.modules.hibernate.HibernateProperties |
getHibernateProperties()
|
xjavadoc.XMethod |
getIdMethod()
find id property of current class. |
JBossServiceSubTask |
getJBossServiceSubTask()
|
void |
ifCurrentMappingElementIsnt(String template,
Properties attributes)
Render template if the current mapping element is not the one specified. |
void |
ifGeneratePropertyCache(String template,
Properties attributes)
Render template if all of the properties needed are valid. |
void |
ifHasCompositeId(String template,
Properties attributes)
Render template if ID is composite. |
void |
ifHasJndiName(String template,
Properties attributes)
Render template if jndiName of JBossServiceSubtask is valid. |
void |
ifHasPrimitiveId(String template,
Properties attributes)
Render template if id is primitive. |
void |
ifNotHasJndiName(String template,
Properties attributes)
Render template if jndiName of JBossServiceSubtask is not valid. |
void |
ifNotUseJndiFactory(String template,
Properties attributes)
Render template if jndiName of JBossServiceSubtask is valid. |
void |
ifUseJndiFactory(String template,
Properties attributes)
Render template if jndiName of JBossServiceSubtask is valid. |
String |
jdbcUrl()
JDBC URL extractor. |
String |
jndiName()
Configured JNDI name. |
String |
jndiParameterName()
|
String |
jndiParameterValue()
|
void |
logMapping(Properties attributes)
Print the name of the current class to the console. |
String |
mappingList()
Comma separated list of hibernate mappings. |
String |
otherMappingName()
|
String |
otherMappingValue()
|
String |
otherParameterName()
|
String |
otherParameterValue()
|
String |
password()
password extractor. |
String |
poolSize()
poolSize extractor. |
String |
roleAttribute(Properties attributes)
Get the attribute used for collection property names in this version of Hibernate (ie. |
String |
serviceClassName(Properties attributes)
Get the name of the class the implements the SessionFactory as a MBean is this version of Hibernate. |
String |
serviceName()
Return configured service name. |
void |
setColumnPrefix(String template,
Properties attributes)
Set the prefix for the \@hibernate.component, as there may be more than one component in a class that refer to the same target class. |
void |
setCurrentTag(String template,
Properties attributes)
|
String |
userName()
username extractor. |
Methods inherited from class xdoclet.template.TemplateTagHandler |
getXJavaDoc, setXJavaDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HibernateTagsHandler()
Method Detail |
public String getFileName() throws XDocletException
XDocletException
public JBossServiceSubTask getJBossServiceSubTask()
public FactoryClassSubTask getFactoryClassSubTask()
public xdoclet.modules.hibernate.HibernateProperties getHibernateProperties() throws XDocletException
XDocletException
public xjavadoc.XMethod getIdMethod() throws XDocletException
XDocletException
public String getCurrentTag(Properties attributes)
public String getCurrentMappingElement(Properties attributes)
public void setCurrentTag(String template, Properties attributes) throws XDocletException
XDocletException
public void setColumnPrefix(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public String roleAttribute(Properties attributes)
attributes
-
public String serviceClassName(Properties attributes)
attributes
-
public void ifCurrentMappingElementIsnt(String template, Properties attributes) throws XDocletException
template
- the templateattributes
- the tag attributes
XDocletException
public void ifHasCompositeId(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public void ifHasPrimitiveId(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public String serviceName() throws XDocletException
XDocletException
public String jndiName() throws XDocletException
XDocletException
public void ifUseJndiFactory(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public void ifNotUseJndiFactory(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public void ifHasJndiName(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public void ifGeneratePropertyCache(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public void ifNotHasJndiName(String template, Properties attributes) throws XDocletException
template
- attributes
-
XDocletException
public String dialect() throws XDocletException
XDocletException
public String dataSource() throws XDocletException
XDocletException
public String driver() throws XDocletException
XDocletException
public String jdbcUrl() throws XDocletException
XDocletException
public String userName() throws XDocletException
XDocletException
public String password() throws XDocletException
XDocletException
public String poolSize() throws XDocletException
XDocletException
public String factoryClass() throws XDocletException
XDocletException
public String mappingList() throws XDocletException
XDocletException
public void logMapping(Properties attributes) throws XDocletException
attributes
-
XDocletException
public void forAllPersistentClasses(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic void forAllJndiProperties(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic void forAllOtherProperties(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic void forAllOtherMappings(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic String jndiParameterName()
public String jndiParameterValue()
public String otherParameterName()
public String otherParameterValue()
public String otherMappingName()
public String otherMappingValue()
public void forAllSubclasses(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
- Description of Exceptionpublic String computeColumnName(Properties attributes)
attributes
-
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |