Class DBScriptUtil

java.lang.Object
org.alfresco.util.DBScriptUtil

public abstract class DBScriptUtil extends Object
  • Constructor Details

    • DBScriptUtil

      public DBScriptUtil()
  • Method Details

    • 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