Map values = ...; values.put("user", "mickeymouse"); ... VelocityDecorator strategy = VelocityDecorator.decorate(new ListParser(), values); List sql = Sql .loadScriptFromStream(is) .interceptingSqlWith(new VelocityInterceptor(values)) .viaStrategy(new ListParser()) .returnListOfQueries();
@author Zdenko Vrabel (zdenko.vrabel@celum.com)
Map values = ...; values.put("user", "mickeymouse"); ... VelocityDecorator strategy = VelocityDecorator.decorate(new ListStrategy(), values); List sql = Sql .loadScriptFromStream(is) .interceptingSqlWith(new VelocityInterceptor(values)) .viaStrategy(new ListStrategy()) .returnListOfQueries();
@author Zdenko Vrabel (zdenko.vrabel@celum.com)
|
|
|
|
|
|
|
|
|
|