1 7 package org.jboss.hibernate.jmx; 8 9 import org.jboss.system.ServiceMBean; 10 import org.jboss.deployment.DeploymentInfo; 11 12 import org.hibernate.SessionFactory; 13 14 import javax.management.MBeanRegistration ; 15 import javax.management.ObjectName ; 16 import java.net.URL ; 17 import java.util.Date ; 18 19 36 public interface HibernateMBean extends ServiceMBean, MBeanRegistration 37 { 38 39 45 public URL getHarUrl(); 46 47 55 public boolean isScanForMappingsEnabled(); 56 57 65 public void setScanForMappingsEnabled(boolean scanForMappings); 66 67 72 public DeploymentInfo getDeploymentInfo(); 73 74 79 public String getSessionFactoryName(); 80 81 86 public void setSessionFactoryName(String sessionFactoryName); 87 88 95 public ObjectName getDeployedTreeCacheObjectName(); 96 97 102 public void setDeployedTreeCacheObjectName(ObjectName deployedTreeCacheObjectName); 103 104 114 public ObjectName getStatisticsServiceName(); 115 116 123 public String getDialect(); 124 125 130 public void setDialect(String dialect); 131 132 139 public String getHbm2ddlAuto(); 140 141 146 public void setHbm2ddlAuto(String hbm2ddlAuto); 147 148 156 public String getDatasourceName(); 157 158 164 public void setDatasourceName(String datasourceName); 165 166 173 public String getUsername(); 174 175 180 public void setUsername(String username); 181 182 187 public void setPassword(String password); 188 189 196 public Boolean getSqlCommentsEnabled(); 197 198 203 public void setSqlCommentsEnabled(Boolean commentsEnabled); 204 205 215 public String getDefaultSchema(); 216 217 222 public void setDefaultSchema(String defaultSchema); 223 224 234 public String getDefaultCatalog(); 235 236 241 public void setDefaultCatalog(String defaultCatalog); 242 243 250 public Integer getMaxFetchDepth(); 251 252 257 public void setMaxFetchDepth(Integer maxFetchDepth); 258 259 266 public Integer getJdbcBatchSize(); 267 268 273 public void setJdbcBatchSize(Integer jdbcBatchSize); 274 275 282 public Integer getJdbcFetchSize(); 283 284 289 public void setJdbcFetchSize(Integer jdbcFetchSize); 290 291 298 public Boolean getJdbcScrollableResultSetEnabled(); 299 300 305 public void setJdbcScrollableResultSetEnabled(Boolean jdbcScrollableResultSetEnabled); 306 307 314 public Boolean getGetGeneratedKeysEnabled(); 315 316 321 public void setGetGeneratedKeysEnabled(Boolean getGeneratedKeysEnabled); 322 323 333 public Boolean getBatchVersionedDataEnabled(); 334 335 340 public void setBatchVersionedDataEnabled(Boolean batchVersionedDataEnabled); 341 342 349 public Boolean getStreamsForBinaryEnabled(); 350 351 356 public void setStreamsForBinaryEnabled(Boolean streamsForBinaryEnabled); 357 358 365 public String getQuerySubstitutions(); 366 367 372 public void setQuerySubstitutions(String querySubstitutions); 373 374 381 public String getCacheProviderClass(); 382 383 388 public void setCacheProviderClass(String cacheProviderClass); 389 390 397 public String getCacheRegionPrefix(); 398 399 404 public void setCacheRegionPrefix(String cacheRegionPrefix); 405 406 413 public Boolean getMinimalPutsEnabled(); 414 415 420 public void setMinimalPutsEnabled(Boolean minimalPutsEnabled); 421 422 432 public Boolean getUseStructuredCacheEntriesEnabled(); 433 434 439 public void setUseStructuredCacheEntriesEnabled(Boolean structuredEntriesEnabled); 440 441 public Boolean getSecondLevelCacheEnabled(); 442 443 public void setSecondLevelCacheEnabled(Boolean secondLevelCacheEnabled); 444 445 452 public Boolean getQueryCacheEnabled(); 453 454 459 public void setQueryCacheEnabled(Boolean queryCacheEnabled); 460 461 468 public Boolean getShowSqlEnabled(); 469 470 475 public void setShowSqlEnabled(Boolean showSqlEnabled); 476 477 486 public Boolean getReflectionOptimizationEnabled(); 487 488 493 public void setReflectionOptimizationEnabled(Boolean reflectionOptimizationEnabled); 494 495 502 public Boolean getStatGenerationEnabled(); 503 504 509 public void setStatGenerationEnabled(Boolean statGenerationEnabled); 510 511 517 public String getSessionFactoryInterceptor(); 518 519 525 public void setSessionFactoryInterceptor(String sessionFactoryInterceptor); 526 527 532 public String getListenerInjector(); 533 534 539 public void setListenerInjector(String listenerInjector); 540 541 550 public boolean isDirty(); 551 552 557 public boolean isSessionFactoryRunning(); 558 559 564 public String getVersion(); 565 566 571 public SessionFactory getInstance(); 572 573 578 public Date getRunningSince(); 579 580 586 public void rebuildSessionFactory() throws Exception ; 587 588 } 589 | Popular Tags |