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_NAME
Fields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME
-
Constructor Summary
ConstructorDescriptionJdbcOperationsSessionRepository
(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 newJdbcOperationsSessionRepository
instance which uses the providedJdbcOperations
andTransactionOperations
to 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, setUpdateSessionQuery
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 newJdbcOperationsSessionRepository
instance which uses the providedJdbcOperations
andTransactionOperations
to manage sessions.- Parameters:
jdbcOperations
- theJdbcOperations
to usetransactionOperations
- theTransactionOperations
to 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 newJdbcIndexedSessionRepository
instance which uses the providedJdbcOperations
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
- theJdbcOperations
to usetransactionManager
- thePlatformTransactionManager
to use
-
JdbcOperationsSessionRepository
@Deprecated public JdbcOperationsSessionRepository(org.springframework.jdbc.core.JdbcOperations jdbcOperations) Deprecated.since 2.2.0 in favor ofJdbcIndexedSessionRepository(JdbcOperations, TransactionOperations)
Create a newJdbcIndexedSessionRepository
instance which uses the providedJdbcOperations
to manage sessions.The created instance will not execute data access operations in a transaction.
- Parameters:
jdbcOperations
- theJdbcOperations
to use
-
JdbcIndexedSessionRepository