private static String prepareScripts ( String initScriptPath , String itemTableSuffix , String valueTableSuffix , String refTableSuffix , boolean isolatedDB ) throws IOException { String scripts = IOUtil . getStreamContentAsString ( PrivilegedFileHelper . getResourceAsStream ( initScriptPath ) ) ; if ( isolatedDB ) { scripts = scripts . replace ( "MITEM" , itemTableSuffix ) . replace ( "MVALUE" , valueTableSuffix ) . replace ( "MREF" , refTableSuffix ) ; } return scripts ; }
Preparing SQL scripts for database initialization .