Class DBScriptUtil


  • public abstract class DBScriptUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DBScriptUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String readScript​(org.springframework.core.io.support.EncodedResource resource)
      Read a script from the provided EncodedResource and build a String containing the lines.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DBScriptUtil

        public DBScriptUtil()
    • Method Detail

      • readScript

        public static java.lang.String readScript​(org.springframework.core.io.support.EncodedResource resource)
                                           throws java.io.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:
        java.io.IOException