Class JdbcSchemaUtils
java.lang.Object
org.springframework.session.jdbc.util.JdbcSchemaUtils
Utility class for schema files.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.core.io.Resource
replaceDefaultTableName
(org.springframework.core.io.Resource schemaResource, String tableName) Loads the content of the provided schema resource and replaces theJdbcIndexedSessionRepository.DEFAULT_TABLE_NAME
by the provided table name.
-
Method Details
-
replaceDefaultTableName
public static org.springframework.core.io.Resource replaceDefaultTableName(org.springframework.core.io.Resource schemaResource, String tableName) throws IOException Loads the content of the provided schema resource and replaces theJdbcIndexedSessionRepository.DEFAULT_TABLE_NAME
by the provided table name.- Parameters:
schemaResource
- the schema resourcetableName
- the table name to replace- Returns:
- the schema resource with the table name replaced
- Throws:
IOException
-