HibernateService
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public String | |
| public String | |
| public String | |
| public String | getCacheProviderConfig()
For cache providers which support this setting, get the provider's specific configuration resource. |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | Returns: StringThe Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism) |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | Returns: the class nameGet the strategy for obtaining the JTA TransactionManager |
| public String | Returns: the class nameThe fully qualified class name of the Hibernate TransactionFactory implementation |
| public String | |
| public String | Returns: the JNDI nameThe JNDI name of the JTA UserTransaction object (used only be JTATransaction). |
| public void | setAutoCloseSessionEnabled(String enabled)
Enable automatic closing of Session when JTA transaction ends. |
| public void | setBatchVersionedDataEnabled(String enabled)
Enable or disable the use of batch updates for versioned entities |
| public void | |
| public void | setCacheProviderConfig(String cacheProviderConfig)
For cache providers which support this setting, specify the provider's specific configuration resource. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setDialect(String
fully qualified class name of Dialect subclass dialect)The name of the dialect class to use in this SessionFactory |
| public void | setFlushBeforeCompletionEnabled(String enabled)
Enable automatic flushing of the Session when JTA transaction ends. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setMinimalPutsEnabled(String enabled)
Enable or disable optimization of second-level cache for minimal puts |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setTransactionManagerLookupStrategy(String
the class name lkpStrategy)Set the strategy for obtaining the JTA TransactionManager |
| public void | setTransactionStrategy(String
the class name txnStrategy)Set the fully qualified class name of the Hibernate TransactionFactory implementation |
| public void | |
| public void | setUserTransactionName(String
the JNDI name utName)Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction). |
| public void | |
| public void |
| addMapResource | back to summary |
|---|---|
| public void addMapResource(String mapResource) Add a mapping file | |
| createSchema | back to summary |
|---|---|
| public void createSchema() throws HibernateException Export the CREATE DDL to the database | |
| dropSchema | back to summary |
|---|---|
| public void dropSchema() throws HibernateException Export the DROP DDL to the database | |
| getAutoCloseSessionEnabled | back to summary |
|---|---|
| public String getAutoCloseSessionEnabled() Is automatic Session closing enabled? | |
| getBatchVersionedDataEnabled | back to summary |
|---|---|
| public String getBatchVersionedDataEnabled() Is JDBC batch update for versioned entities enabled? | |
| getCacheProviderClass | back to summary |
|---|---|
| public String getCacheProviderClass() Get the second-level cache provider class name | |
| getCacheProviderConfig | back to summary |
|---|---|
| public String getCacheProviderConfig() For cache providers which support this setting, get the provider's specific configuration resource. | |
| getCacheRegionPrefix | back to summary |
|---|---|
| public String getCacheRegionPrefix() Get the cache region prefix | |
| getCommentsEnabled | back to summary |
|---|---|
| public String getCommentsEnabled() Are SQL comments enabled? | |
| getDatasource | back to summary |
|---|---|
| public String getDatasource() The JNDI name of the datasource to use in this SessionFactory
| |
| getDefaultCatalog | back to summary |
|---|---|
| public String getDefaultCatalog() Get the default catalog | |
| getDefaultSchema | back to summary |
|---|---|
| public String getDefaultSchema() Get the default schema | |
| getDialect | back to summary |
|---|---|
| public String getDialect() The JNDI name of the dialect class to use in this SessionFactory
| |
| getFlushBeforeCompletionEnabled | back to summary |
|---|---|
| public String getFlushBeforeCompletionEnabled() Is automatic Session flusing enabled? | |
| getGetGeneratedKeysEnabled | back to summary |
|---|---|
| public String getGetGeneratedKeysEnabled() Is use of JDBC3 getGeneratedKeys() enabled? | |
| getJdbcBatchSize | back to summary |
|---|---|
| public String getJdbcBatchSize() Get the maximum JDBC batch size | |
| getJdbcFetchSize | back to summary |
|---|---|
| public String getJdbcFetchSize() Get the JDBC fetch size | |
| getJdbcScrollableResultSetEnabled | back to summary |
|---|---|
| public String getJdbcScrollableResultSetEnabled() Is use of scrollable resultsets enabled? | |
| getJndiName | back to summary |
|---|---|
| public String getJndiName() The JNDI name to bind to the SessionFactory
| |
| getMapResources | back to summary |
|---|---|
| public String getMapResources() The Hibernate mapping files (might be overridden by subclasses that want to specify the mapping files by some other mechanism)
| |
| getMaximumFetchDepth | back to summary |
|---|---|
| public String getMaximumFetchDepth() Get the maximum outer join fetch depth | |
| getMinimalPutsEnabled | back to summary |
|---|---|
| public String getMinimalPutsEnabled() Is the second-level cache optimized for miminal puts? | |
| getPassword | back to summary |
|---|---|
| public String getPassword() Log into the database with this password
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(String property) Get a property | |
| getPropertyList | back to summary |
|---|---|
| public String getPropertyList() Display the properties
| |
| getQueryCacheEnabled | back to summary |
|---|---|
| public String getQueryCacheEnabled() Is the query cache enabled? | |
| getQuerySubstitutions | back to summary |
|---|---|
| public String getQuerySubstitutions() Get the query language substitutions | |
| getSecondLevelCacheEnabled | back to summary |
|---|---|
| public String getSecondLevelCacheEnabled() Is the second-level cache enabled? | |
| getShowSqlEnabled | back to summary |
|---|---|
| public String getShowSqlEnabled() Is SQL logging enabled? | |
| getTransactionManagerLookupStrategy | back to summary |
|---|---|
| public String getTransactionManagerLookupStrategy() Get the strategy for obtaining the JTA TransactionManager
| |
| getTransactionStrategy | back to summary |
|---|---|
| public String getTransactionStrategy() The fully qualified class name of the Hibernate TransactionFactory implementation
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() Log into the database with this name
| |
| getUserTransactionName | back to summary |
|---|---|
| public String getUserTransactionName() The JNDI name of the JTA UserTransaction object (used only be JTATransaction).
| |
| setAutoCloseSessionEnabled | back to summary |
|---|---|
| public void setAutoCloseSessionEnabled(String enabled) Enable automatic closing of Session when JTA transaction ends. | |
| setBatchVersionedDataEnabled | back to summary |
|---|---|
| public void setBatchVersionedDataEnabled(String enabled) Enable or disable the use of batch updates for versioned entities | |
| setCacheProviderClass | back to summary |
|---|---|
| public void setCacheProviderClass(String providerClassName) Set the second-level cache provider class name | |
| setCacheProviderConfig | back to summary |
|---|---|
| public void setCacheProviderConfig(String cacheProviderConfig) For cache providers which support this setting, specify the provider's specific configuration resource. | |
| setCacheRegionPrefix | back to summary |
|---|---|
| public void setCacheRegionPrefix(String prefix) Set the cache region prefix | |
| setCommentsEnabled | back to summary |
|---|---|
| public void setCommentsEnabled(String enabled) Enable or disable the inclusion of comments in generated SQL | |
| setDatasource | back to summary |
|---|---|
| public void setDatasource(String datasource) Set the JNDI name of the datasource to use in this SessionFactory | |
| setDefaultCatalog | back to summary |
|---|---|
| public void setDefaultCatalog(String catalog) Set the default catalog | |
| setDefaultSchema | back to summary |
|---|---|
| public void setDefaultSchema(String schema) Set the default schema | |
| setDialect | back to summary |
|---|---|
| public void setDialect(String dialect) The name of the dialect class to use in this SessionFactory
| |
| setFlushBeforeCompletionEnabled | back to summary |
|---|---|
| public void setFlushBeforeCompletionEnabled(String enabled) Enable automatic flushing of the Session when JTA transaction ends. | |
| setGetGeneratedKeysEnabled | back to summary |
|---|---|
| public void setGetGeneratedKeysEnabled(String enabled) Enable or disable the use getGeneratedKeys() | |
| setJdbcBatchSize | back to summary |
|---|---|
| public void setJdbcBatchSize(String batchSize) Set the maximum JDBC batch size | |
| setJdbcFetchSize | back to summary |
|---|---|
| public void setJdbcFetchSize(String fetchSize) Set the JDBC fetch size | |
| setJdbcScrollableResultSetEnabled | back to summary |
|---|---|
| public void setJdbcScrollableResultSetEnabled(String enabled) Enable or disable the use of scrollable resultsets | |
| setJndiName | back to summary |
|---|---|
| public void setJndiName(String jndiName) The JNDI name to bind to the SessionFactory | |
| setMapResources | back to summary |
|---|---|
| public void setMapResources(String mappingFiles) Specify the Hibernate mapping files | |
| setMaximumFetchDepth | back to summary |
|---|---|
| public void setMaximumFetchDepth(String fetchDepth) Set the maximum outer join fetch depth | |
| setMinimalPutsEnabled | back to summary |
|---|---|
| public void setMinimalPutsEnabled(String enabled) Enable or disable optimization of second-level cache for minimal puts | |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) Log into the database with this password | |
| setProperty | back to summary |
|---|---|
| public void setProperty(String property, String value) Set a property | |
| setQueryCacheEnabled | back to summary |
|---|---|
| public void setQueryCacheEnabled(String enabled) Enable or disable the query cache | |
| setQuerySubstitutions | back to summary |
|---|---|
| public void setQuerySubstitutions(String querySubstitutions) Set the query language substitutions | |
| setSecondLevelCacheEnabled | back to summary |
|---|---|
| public void setSecondLevelCacheEnabled(String enabled) Enable or disable the second-level cache | |
| setShowSqlEnabled | back to summary |
|---|---|
| public void setShowSqlEnabled(String showSql) Enable logging of SQL to console | |
| setTransactionManagerLookupStrategy | back to summary |
|---|---|
| public void setTransactionManagerLookupStrategy(String lkpStrategy) Set the strategy for obtaining the JTA TransactionManager
| |
| setTransactionStrategy | back to summary |
|---|---|
| public void setTransactionStrategy(String txnStrategy) Set the fully qualified class name of the Hibernate TransactionFactory implementation
| |
| setUserName | back to summary |
|---|---|
| public void setUserName(String userName) Log into the database with this name | |
| setUserTransactionName | back to summary |
|---|---|
| public void setUserTransactionName(String utName) Set the JNDI name of the JTA UserTransaction object (used only by JTATransaction).
| |
| start | back to summary |
|---|---|
| public void start() throws HibernateException Create the SessionFactory and bind to the jndi name on startup | |
| stop | back to summary |
|---|---|
| public void stop() Unbind the SessionFactory or stub from JNDI | |