Class JdbcOperationsSessionRepository

java.lang.Object
org.springframework.session.jdbc.JdbcIndexedSessionRepository
org.springframework.session.jdbc.JdbcOperationsSessionRepository
All Implemented Interfaces:
FindByIndexNameSessionRepository<org.springframework.session.jdbc.JdbcIndexedSessionRepository.JdbcSession>, SessionRepository<org.springframework.session.jdbc.JdbcIndexedSessionRepository.JdbcSession>

@Deprecated public class JdbcOperationsSessionRepository extends JdbcIndexedSessionRepository
Deprecated.
since 2.2.0 in favor of JdbcIndexedSessionRepository
This SessionRepository implementation is kept in order to support migration to JdbcIndexedSessionRepository in a backwards compatible manner.
Since:
1.2.0
  • Constructor Details

    • JdbcOperationsSessionRepository

      public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.support.TransactionOperations transactionOperations)
      Deprecated.
      Create a new JdbcOperationsSessionRepository instance which uses the provided JdbcOperations and TransactionOperations to manage sessions.
      Parameters:
      jdbcOperations - the JdbcOperations to use
      transactionOperations - the TransactionOperations to use
      See Also:
    • JdbcOperationsSessionRepository

      @Deprecated public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.PlatformTransactionManager transactionManager)
      Create a new JdbcIndexedSessionRepository instance which uses the provided JdbcOperations to manage sessions.

      The created instance will execute all data access operations in a transaction with propagation level of TransactionDefinition.PROPAGATION_REQUIRES_NEW.

      Parameters:
      jdbcOperations - the JdbcOperations to use
      transactionManager - the PlatformTransactionManager to use
    • JdbcOperationsSessionRepository

      @Deprecated public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
      Create a new JdbcIndexedSessionRepository instance which uses the provided JdbcOperations to manage sessions.

      The created instance will not execute data access operations in a transaction.

      Parameters:
      jdbcOperations - the JdbcOperations to use