|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Hibernate JMX Management API
HibernateService
Method Summary | |
void |
addMapResource(String mapResource)
Add a mapping file |
String |
getCacheProvider()
Get the cache provider class |
String |
getDatasource()
The JNDI name of the datasource to use in this SessionFactory |
String |
getDefaultSchema()
Get the default schema name |
String |
getDialect()
The JNDI name of the dialect class to use in this SessionFactory |
Integer |
getJdbcBatchSize()
Get the JDBC batch size |
Integer |
getJdbcFetchSize()
Get the JDBC fetch size |
String |
getJndiName()
The JNDI name to bind to the SessionFactory |
String |
getMapResources()
The Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism) |
Integer |
getMaxFetchDepth()
Get the max outer join fetch depth |
String |
getPassword()
Log into the database with this password |
String |
getProperty(String property)
Get a property |
String |
getPropertyList()
Display the properties |
String |
getQuerySubstitutions()
Get the query substitutions string |
boolean |
getShowSql()
Is SQL logging enabled? |
String |
getTransactionManagerLookupStrategy()
Get the strategy for obtaining the JTA TransactionManager |
String |
getTransactionStrategy()
The fully qualified class name of the Hibernate TransactionFactory implementation |
boolean |
getUseOuterJoin()
Is outerjoin fetching enabled? |
boolean |
getUseQueryCache()
Is the query cache enabled? |
String |
getUserName()
Log into the database with this name |
String |
getUserTransactionName()
The JNDI name of the JTA UserTransaction object (used only be JTATransaction). |
void |
setCacheProvider(String cacheProvider)
Set the cache provider class |
void |
setDatasource(String datasource)
Set the JNDI name of the datasource to use in this SessionFactory |
void |
setDefaultSchema(String schema)
Set the default schema name |
void |
setDialect(String dialect)
The name of the dialect class to use in this SessionFactory |
void |
setJdbcBatchSize(Integer depth)
Set the JDBC batch size |
void |
setJdbcFetchSize(Integer depth)
Set the JDBC fetch size |
void |
setJndiName(String jndiName)
The JNDI name to bind to the SessionFactory |
void |
setMapResources(String mappingFiles)
Specify the Hibernate mapping files |
void |
setMaxFetchDepth(Integer depth)
Set the max outer join fetch depth |
void |
setPassword(String password)
Log into the database with this password |
void |
setProperty(String property,
String value)
Set a property |
void |
setQuerySubstitutions(String substitutions)
Set the query substitutions string |
void |
setShowSql(boolean showSql)
Enable logging of SQL to console |
void |
setTransactionManagerLookupStrategy(String lkpStrategy)
Set the strategy for obtaining the JTA TransactionManager |
void |
setTransactionStrategy(String txnStrategy)
Set the fully qualified class name of the Hibernate TransactionFactory implementation |
void |
setUseOuterJoin(boolean uoj)
Enable outerjoin fetching |
void |
setUseQueryCache(boolean enabled)
Enable/disable the query cache |
void |
setUserName(String userName)
Log into the database with this name |
void |
setUserTransactionName(String utName)
Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction). |
void |
start()
Create the SessionFactory and bind to the jndi name on startup |
void |
stop()
Unbind the SessionFactory or stub from JNDI |
Method Detail |
public String getMapResources()
public void setMapResources(String mappingFiles)
mappingFiles
- public void addMapResource(String mapResource)
mapResource
- public void setProperty(String property, String value)
property
- the property namevalue
- the property valuepublic String getProperty(String property)
property
- the property name
public String getPropertyList()
public String getDatasource()
public void setDatasource(String datasource)
datasource
- public String getUserName()
public void setUserName(String userName)
userName
- public String getPassword()
public void setPassword(String password)
password
- public String getDialect()
public void setDialect(String dialect)
dialect
- fully qualified class name of Dialect subclassDialect
public String getJndiName()
public void setJndiName(String jndiName)
jndiName
- public String getTransactionStrategy()
TransactionFactory
public void setTransactionStrategy(String txnStrategy)
txnStrategy
- the class nameTransactionFactory
public String getUserTransactionName()
JTATransaction
public void setUserTransactionName(String utName)
utName
- the JNDI nameJTATransaction
public String getTransactionManagerLookupStrategy()
TransactionManagerLookup
public void setTransactionManagerLookupStrategy(String lkpStrategy)
lkpStrategy
- the class nameTransactionManagerLookup
public boolean getUseOuterJoin()
public void setUseOuterJoin(boolean uoj)
uoj
- public void setMaxFetchDepth(Integer depth)
public Integer getMaxFetchDepth()
public void setJdbcFetchSize(Integer depth)
public Integer getJdbcFetchSize()
public void setJdbcBatchSize(Integer depth)
public Integer getJdbcBatchSize()
public void setCacheProvider(String cacheProvider)
public String getCacheProvider()
public void setUseQueryCache(boolean enabled)
public boolean getUseQueryCache()
public void setQuerySubstitutions(String substitutions)
public String getQuerySubstitutions()
public void setDefaultSchema(String schema)
public String getDefaultSchema()
public boolean getShowSql()
public void setShowSql(boolean showSql)
showSql
- public void start() throws HibernateException
HibernateException
public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |