All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.vkorobkov.jfixtures.instructions.CustomSql Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.github.vkorobkov.jfixtures.instructions;

import lombok.Getter;

@Getter
public class CustomSql implements Instruction {
    private static final String TABLE_NAME_PLACEHOLDER = "$TABLE_NAME";

    private final String instruction;

    public CustomSql(String table, String instruction) {
        this.instruction = instruction.replace(TABLE_NAME_PLACEHOLDER, table);
    }

    @Override
    public void accept(InstructionVisitor visitor) {
        visitor.visit(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy