Package org.alfresco.util
Class DBScriptUtil
- java.lang.Object
-
- org.alfresco.util.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.StringreadScript(org.springframework.core.io.support.EncodedResource resource)Read a script from the provided EncodedResource and build a String containing the lines.
-
-
-
Method Detail
-
readScript
public static java.lang.String readScript(org.springframework.core.io.support.EncodedResource resource) throws java.io.IOExceptionRead 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
-
-