Specific tags handler to make the template easy.
computeColumnName
public String computeColumnName(Properties attributes)
The column name for a component is prefix + basename
dataSource
public String dataSource()
throws xdoclet.XDocletException
Data source JNDI Name extractor.
xdoclet.XDocletException
-
dialect
public String dialect()
throws xdoclet.XDocletException
SQL dialect extractor.
xdoclet.XDocletException
-
driver
public String driver()
throws xdoclet.XDocletException
Driver Name extractor.
xdoclet.XDocletException
-
factoryClass
public String factoryClass()
throws xdoclet.XDocletException
classname extractor.
xdoclet.XDocletException
-
forAllJndiProperties
public void forAllJndiProperties(String template,
Properties attributes)
throws xdoclet.XDocletException
Iterates over all jndiProperties specified.
template
- The body of the block tagattributes
- The attributes of the template tag
xdoclet.XDocletException
- Description of Exception
forAllOtherMappings
public void forAllOtherMappings(String template,
Properties attributes)
throws xdoclet.XDocletException
Iterates over all otherMappings specified.
template
- The body of the block tagattributes
- The attributes of the template tag
xdoclet.XDocletException
- Description of Exception
forAllOtherProperties
public void forAllOtherProperties(String template,
Properties attributes)
throws xdoclet.XDocletException
Iterates over all otherProperties specified.
template
- The body of the block tagattributes
- The attributes of the template tag
xdoclet.XDocletException
- Description of Exception
forAllPersistentClasses
public void forAllPersistentClasses(String template,
Properties attributes)
throws xdoclet.XDocletException
Iterates over all classes marked as persistent.
template
- The body of the block tagattributes
- The attributes of the template tag
xdoclet.XDocletException
- Description of Exception
forAllSubclasses
public void forAllSubclasses(String template,
Properties attributes)
throws xdoclet.XDocletException
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. It discards classes that have an xdoclet-generated class tag defined.
template
- The body of the block tagattributes
- The attributes of the template tag
xdoclet.XDocletException
- Description of Exception
getCurrentMappingElement
public String getCurrentMappingElement(Properties attributes)
getCurrentTag
public String getCurrentTag(Properties attributes)
getFactoryClassSubTask
public FactoryClassSubTask getFactoryClassSubTask()
getFileName
public String getFileName()
throws xdoclet.XDocletException
Returns full path of hibernate file for the current class.
- The full file path of the current class.
xdoclet.XDocletException
-
getHibernateProperties
public HibernateProperties getHibernateProperties()
throws xdoclet.XDocletException
getIdMethod
public XMethod getIdMethod()
throws xdoclet.XDocletException
find id property of current class.
xdoclet.XDocletException
-
getJBossServiceSubTask
public JBossServiceSubTask getJBossServiceSubTask()
ifCurrentMappingElementIsnt
public void ifCurrentMappingElementIsnt(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if the current mapping element is not the one specified.
template
- the templateattributes
- the tag attributes
xdoclet.XDocletException
-
ifGeneratePropertyCache
public void ifGeneratePropertyCache(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if all of the properties needed are valid.
xdoclet.XDocletException
-
ifHasCompositeId
public void ifHasCompositeId(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if ID is composite.
xdoclet.XDocletException
-
ifHasJndiName
public void ifHasJndiName(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if jndiName of JBossServiceSubtask is valid. This is a required parameter, but the user might not
be using that subtask.
xdoclet.XDocletException
-
ifHasPrimitiveId
public void ifHasPrimitiveId(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if id is primitive.
xdoclet.XDocletException
-
ifNotHasJndiName
public void ifNotHasJndiName(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if jndiName of JBossServiceSubtask is not valid.
xdoclet.XDocletException
-
ifNotUseJndiFactory
public void ifNotUseJndiFactory(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if jndiName of JBossServiceSubtask is valid. This is a required parameter, but the user might not
be using that subtask.
xdoclet.XDocletException
-
ifUseJndiFactory
public void ifUseJndiFactory(String template,
Properties attributes)
throws xdoclet.XDocletException
Render template if jndiName of JBossServiceSubtask is valid. This is a required parameter, but the user might not
be using that subtask.
xdoclet.XDocletException
-
jdbcUrl
public String jdbcUrl()
throws xdoclet.XDocletException
JDBC URL extractor.
xdoclet.XDocletException
-
jndiName
public String jndiName()
throws xdoclet.XDocletException
Configured JNDI name.
xdoclet.XDocletException
-
jndiParameterName
public String jndiParameterName()
jndiParameterValue
public String jndiParameterValue()
logMapping
public void logMapping(Properties attributes)
throws xdoclet.XDocletException
Print the name of the current class to the console.
xdoclet.XDocletException
-
mappingList
public String mappingList()
throws xdoclet.XDocletException
Comma separated list of hibernate mappings.
xdoclet.XDocletException
-
otherMappingName
public String otherMappingName()
otherMappingValue
public String otherMappingValue()
otherParameterName
public String otherParameterName()
otherParameterValue
public String otherParameterValue()
password
public String password()
throws xdoclet.XDocletException
password extractor.
xdoclet.XDocletException
-
poolSize
public String poolSize()
throws xdoclet.XDocletException
poolSize extractor.
xdoclet.XDocletException
-
roleAttribute
public String roleAttribute(Properties attributes)
Get the attribute used for collection property names in this version of Hibernate (ie. "role" or "name").
serviceClassName
public String serviceClassName(Properties attributes)
Get the name of the class the implements the SessionFactory as a MBean is this version of Hibernate.
serviceName
public String serviceName()
throws xdoclet.XDocletException
Return configured service name.
xdoclet.XDocletException
-
setColumnPrefix
public void setColumnPrefix(String template,
Properties attributes)
throws xdoclet.XDocletException
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.
xdoclet.XDocletException
-
setCurrentTag
public void setCurrentTag(String template,
Properties attributes)
throws xdoclet.XDocletException
userName
public String userName()
throws xdoclet.XDocletException
username extractor.
xdoclet.XDocletException
-