Package com.bytedesk.ai.alibaba.memory
Class MysqlChatMemoryProperties
java.lang.Object
com.bytedesk.ai.alibaba.memory.MysqlChatMemoryProperties
@ConfigurationProperties("spring.ai.chat.memory.repository.jdbc.mysql")
public class MysqlChatMemoryProperties
extends Object
Configuration properties for MySQL chat memory repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate StringFully qualified name of the JDBC driver class.private booleanWhether to enable custom datasource configuration.private booleanprivate StringJDBC URL of the database.private StringDatabase password.private StringDatabase username. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetDriverClassName(String driverClassName) voidsetEnabled(boolean enabled) voidsetInitializeSchema(boolean initializeSchema) voidsetJdbcUrl(String jdbcUrl) voidsetPassword(String password) voidsetUsername(String username)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
initializeSchema
private boolean initializeSchema -
jdbcUrl
JDBC URL of the database. -
username
Database username. -
password
Database password. -
driverClassName
Fully qualified name of the JDBC driver class. -
enabled
private boolean enabledWhether to enable custom datasource configuration.
-
-
Constructor Details
-
MysqlChatMemoryProperties
public MysqlChatMemoryProperties()
-
-
Method Details
-
isInitializeSchema
public boolean isInitializeSchema() -
setInitializeSchema
public void setInitializeSchema(boolean initializeSchema) -
getJdbcUrl
-
setJdbcUrl
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getDriverClassName
-
setDriverClassName
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-