Class DBScriptUtil


  • public abstract class DBScriptUtil
    extends Object
    • Constructor Detail

      • DBScriptUtil

        public DBScriptUtil()
    • Method Detail

      • readScript

        public static String readScript​(org.springframework.core.io.support.EncodedResource resource)
                                 throws IOException
        Read a script from the provided EncodedResource and build a String containing the lines.
        Parameters:
        resource - the resource (potentially associated with a specific encoding) to load the SQL script from
        Returns:
        a String containing the script lines
        Throws:
        IOException