private List < String > createStatementsFromScript ( TestContext context ) { List < String > stmts = new ArrayList <> ( ) ; script = context . replaceDynamicContentInString ( script ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Found inline PLSQL script " + script ) ; } StringTokenizer tok = new StringTokenizer ( script , PLSQL_STMT_ENDING ) ; while ( tok . hasMoreTokens ( ) ) { String next = tok . nextToken ( ) . trim ( ) ; if ( StringUtils . hasText ( next ) ) { stmts . add ( next ) ; } } return stmts ; }
Create SQL statements from inline script .