org.modeshape.jcr.cache

## Interface SessionEnvironment

- All Known Implementing Classes:
    JcrRepository.RepositorySessionEnvironment

      public interface SessionEnvironment

  Interface which exposes global repository subsystems/configuration to running sessions.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `TransactionalWorkspaceCaches` | `getTransactionalWorkspaceCacheFactory()` Get the factory used to obtain the transactional workspace caches.
    `Transactions` | `getTransactions()` Get the interface for working with transactions.
    `String` | `journalId()` Returns the id of the repository's `ChangeJournal`

- - ### Method Detail

    - #### getTransactions

          Transactions getTransactions()

      Get the interface for working with transactions.
      Returns:
        the transactions object

    - #### getTransactionalWorkspaceCacheFactory

          TransactionalWorkspaceCaches getTransactionalWorkspaceCacheFactory()

      Get the factory used to obtain the transactional workspace caches.
      Returns:
        the factory; never null

    - #### journalId

          String journalId()

      Returns the id of the repository's `ChangeJournal`
      Returns:
        either a `String` or `null` if no journal is configured.

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.