Code example for SingleLineSqlCommandExtractor

0
 * import sql files, there are a number of value declarations that are incompatible with Oracle. This 
 * custom extractor takes care of transforming those values into something Oracle understands. 
 * 
 * @author Jeff Fischer 
 */ 
public class DemoOracleSingleLineSqlCommandExtractor extends SingleLineSqlCommandExtractor {
 
    private static final SupportLogger LOGGER = SupportLogManager.getLogger("UserOverride", DemoOracleSingleLineSqlCommandExtractor.class);
 
    private static final String BOOLEANTRUEMATCH = "(?i)(true)";
    private static final String BOOLEANFALSEMATCH = "(?i)(false)";
    private static final String TIMESTAMPMATCH = "(?<!\\{ts\\s)('\\d{4}-\\d{2}-\\d{2}\\s\\d{2}:\\d{2}:\\d{2}')";
    public static final String TRUE = "1";
    public static final String FALSE = "0";
 
    protected boolean alreadyRun = false;
 
    @Override 
    public String[] extractCommands(Reader reader) {
        if (!alreadyRun) {
Connect your IDE to all the code out there  Get Codota for Java