Class H2JdbcSessionRepositoryDialect
java.lang.Object
org.springframework.ai.session.jdbc.H2JdbcSessionRepositoryDialect
- All Implemented Interfaces:
JdbcSessionRepositoryDialect
The dialect of H2. The upsert is a standard
MERGE ... USING, so that an update
leaves created_at alone as the other dialects do; H2's shorter MERGE ...
KEY would overwrite every column.- Since:
- 2.1.0
- Author:
- Christian Tzolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInserts a row intoAI_SESSIONor updates the existing one, refreshing onlyexpires_atandmetadata:created_atkeeps its value andevent_versionis never touched.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.session.jdbc.JdbcSessionRepositoryDialect
getInsertSessionIfAbsentSql
-
Constructor Details
-
H2JdbcSessionRepositoryDialect
public H2JdbcSessionRepositoryDialect()
-
-
Method Details
-
getUpsertSessionSql
Description copied from interface:JdbcSessionRepositoryDialectInserts a row intoAI_SESSIONor updates the existing one, refreshing onlyexpires_atandmetadata:created_atkeeps its value andevent_versionis never touched. Parameters, in order:id,created_at,expires_at,metadata.- Specified by:
getUpsertSessionSqlin interfaceJdbcSessionRepositoryDialect
-