xdoclet.modules.hibernate
public class HibernateCfgSubTask extends XmlSubTask implements HibernateProperties
Version: $Revision: 1.10 $
UNKNOWN: February 6, 2004 name = "hibernatecfg" display-name = "Hibernate Configuration File Generation" parent = "xdoclet.modules.hibernate.HibernateDocletTask"
Nested Class Summary | |
---|---|
static class | HibernateCfgSubTask.HibernateCFGVersion
Based on Matt Raible's code for the Hibernate sub-task.
|
Constructor Summary | |
---|---|
HibernateCfgSubTask()
Constructor for the HibernateSubTask object |
Method Summary | |
---|---|
void | addConfiguredJndiProperty(Parameter jndiProperty)
These elements allow you to add properties to the JNDI context. |
void | addOtherMapping(Parameter otherMapping)
These elements allow you to add arbitrary mappings to cfg.xml file. |
void | addOtherProperty(Parameter otherProperty)
These elements allow you to add arbitrary properties to cfg.xml file. |
protected void | engineStarted()
Called when the engine is started
|
void | execute()
Generate Hibernate Configuration file (hibernate.cfg.xml).
|
String | getCacheProviderClass() |
String | getCglibUseReflectionOptimizer() |
String | getDataSource() |
String | getDefaultSchema() |
String | getDialect() |
String | getDriver() |
String | getHbm2ddl() |
String | getJdbcUrl() |
String | getJndiName() |
Collection | getJndiProperties() |
Collection | getOtherMappings() |
Collection | getOtherProperties() |
String | getPassword() |
String | getPoolSize() |
boolean | getShowSql() |
String | getTransactionManagerFactory() |
String | getTransactionManagerLookup() |
String | getTransactionManagerStrategy() |
boolean | getUseOuterJoin() |
String | getUserName() |
String | getUserTransactionName() |
String | getVersion()
Get the Hibernate configuration DTD version.
|
void | setCacheProviderClass(String string)
The classname of a custom CacheProvider.
|
void | setCglibUseReflectionOptimizer(String string)
Enables use of CGLIB instead of runtime reflection (System-level property, default is to use CGLIB where
possible). |
void | setDataSource(String dataSource)
JNDI name of data source to use in the session factory.
|
void | setDefaultSchema(String string)
Qualify unqualified tablenames with the given schema/tablespace in generated SQL.
|
void | setDialect(String dialect)
SQL dialect of the
database.
|
void | setDriver(String driver)
JDBC Driver to make database connection.
|
void | setHbm2ddl(String hbm2ddl)
Automatically export schema DDL to the database when the SessionFactory is created. |
void | setJdbcUrl(String jdbcUrl)
URL for the JDBC Driver to make the connection to the database.
|
void | setJndiName(String jndiName)
JNDI name to bind to the SessionFactory
|
void | setPassword(String password)
Use this password to login to the database
|
void | setPoolSize(String poolSize)
Hibernate connection pool size.
|
void | setShowSql(boolean showSql)
Log sql statements. |
void | setTransactionManagerFactory(String string)
The classname of a TransactionFactory to use with Hibernate Transaction API (defaults to JDBCTransactionFactory).
eg. classname.of.TransactionFactory
|
void | setTransactionManagerLookup(String transactionManagerLookup)
The fully qualified class name of the Hibernate TransactionFactory implementation.
|
void | setTransactionManagerStrategy(String transactionManagerStrategy)
Strategy for obtaining the JTA TransactionManager
|
void | setUseOuterJoin(boolean useOuterJoin)
Whether to use outer join
|
void | setUserName(String userName)
Use this user name to login to the database
|
void | setUserTransactionName(String userTransactionName)
The JNDI name of the JTA UserTransaction object
|
void | setVersion(HibernateCfgSubTask.HibernateCFGVersion version)
Sets the hibernate configuration DTD version to use. |
void | validateOptions() |
Parameters: jndiProperty
UNKNOWN: No.Emptyarray ofelements.
Parameters: otherMapping The feature to be added to the OtherMapping attribute
UNKNOWN: No.Emptyarray ofelements.
Parameters: otherProperty The feature to be added to the OtherProperty attribute
UNKNOWN: No.Emptyarray ofelements.
Throws: XDocletException Thrown in case of problem
Throws: XDocletException
Returns:
Returns:
Returns:
Returns:
Returns:
Parameters: string
UNKNOWN:
Parameters: string
UNKNOWN:
Parameters: dataSource
UNKNOWN:
Parameters: string
UNKNOWN:
Parameters: driver
UNKNOWN:
Parameters: hbm2ddl
UNKNOWN:
Parameters: jdbcUrl
UNKNOWN:
Parameters: jndiName
UNKNOWN:
Parameters: password
UNKNOWN:
Parameters: poolSize
UNKNOWN:
Parameters: showSql
UNKNOWN:
Parameters: string
UNKNOWN:
Parameters: transactionManagerLookup
UNKNOWN:
Parameters: transactionManagerStrategy
UNKNOWN:
Parameters: useOuterJoin
UNKNOWN: No.Defaultsto false.
Parameters: userName
UNKNOWN:
Parameters: userTransactionName
UNKNOWN:
Parameters: version
UNKNOWN: No.Defaultis "2.0".