Package org.alfresco.util
Class DBScriptUtil
java.lang.Object
org.alfresco.util.DBScriptUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadScript(org.springframework.core.io.support.EncodedResource resource) Read a script from the provided EncodedResource and build a String containing the lines.
-
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
-