Class JdbcSchemaUtils

java.lang.Object
org.springframework.session.jdbc.util.JdbcSchemaUtils

public final class JdbcSchemaUtils extends Object
Utility class for schema files.
Since:
3.1
  • 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 the JdbcIndexedSessionRepository.DEFAULT_TABLE_NAME by the provided table name.
      Parameters:
      schemaResource - the schema resource
      tableName - the table name to replace
      Returns:
      the schema resource with the table name replaced
      Throws:
      IOException