Package org.springframework.session.jdbc
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.
This
SessionRepository implementation is kept in order to support migration to
JdbcIndexedSessionRepository in a backwards compatible manner.- Since:
- 1.2.0
-
Field Summary
Fields inherited from class org.springframework.session.jdbc.JdbcIndexedSessionRepository
DEFAULT_TABLE_NAMEFields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations) Deprecated.since 2.2.0 in favor ofJdbcIndexedSessionRepository(JdbcOperations, TransactionOperations)JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.PlatformTransactionManager transactionManager) Deprecated.since 2.2.0 in favor ofJdbcIndexedSessionRepository(JdbcOperations, TransactionOperations)JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.support.TransactionOperations transactionOperations) Deprecated.Create a newJdbcOperationsSessionRepositoryinstance which uses the providedJdbcOperationsandTransactionOperationsto manage sessions. -
Method Summary
Methods inherited from class org.springframework.session.jdbc.JdbcIndexedSessionRepository
cleanUpExpiredSessions, createSession, deleteById, findById, findByIndexNameAndIndexValue, save, setConversionService, setCreateSessionAttributeQuery, setCreateSessionQuery, setDefaultMaxInactiveInterval, setDeleteSessionAttributeQuery, setDeleteSessionQuery, setDeleteSessionsByExpiryTimeQuery, setFlushMode, setGetSessionQuery, setIndexResolver, setListSessionsByPrincipalNameQuery, setLobHandler, setSaveMode, setTableName, setUpdateSessionAttributeQuery, setUpdateSessionQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.session.FindByIndexNameSessionRepository
findByPrincipalName
-
Constructor Details
-
JdbcOperationsSessionRepository
public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.support.TransactionOperations transactionOperations) Deprecated.Create a newJdbcOperationsSessionRepositoryinstance which uses the providedJdbcOperationsandTransactionOperationsto manage sessions.- Parameters:
jdbcOperations- theJdbcOperationsto usetransactionOperations- theTransactionOperationsto use- See Also:
-
JdbcOperationsSessionRepository
@Deprecated public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations, org.springframework.transaction.PlatformTransactionManager transactionManager) Deprecated.since 2.2.0 in favor ofJdbcIndexedSessionRepository(JdbcOperations, TransactionOperations)Create a newJdbcIndexedSessionRepositoryinstance which uses the providedJdbcOperationsto manage sessions.The created instance will execute all data access operations in a transaction with propagation level of
TransactionDefinition.PROPAGATION_REQUIRES_NEW.- Parameters:
jdbcOperations- theJdbcOperationsto usetransactionManager- thePlatformTransactionManagerto use
-
JdbcOperationsSessionRepository
@Deprecated public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations) Deprecated.since 2.2.0 in favor ofJdbcIndexedSessionRepository(JdbcOperations, TransactionOperations)Create a newJdbcIndexedSessionRepositoryinstance which uses the providedJdbcOperationsto manage sessions.The created instance will not execute data access operations in a transaction.
- Parameters:
jdbcOperations- theJdbcOperationsto use
-
JdbcIndexedSessionRepository