Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.schema.ddl;
 
 import static com.google.common.base.Preconditions.checkNotNull;

An SQL statement representing some stage of schema modification. This may optionally have a corresponding "undo" action which can be executed to roll back this modification; this will only be done if the modification succeeded but then some later action failed.
public final class SQLAction
    private final String statement;
    private final SQLAction undoAction;
    
    private SQLAction(String statementSQLAction undoAction)
    {
        this. = checkNotNull(statement);
        this. = undoAction;
    }
    
    public static SQLAction of(CharSequence statement)
    {
        return new SQLAction(statement.toString(), null);
    }
    
    public SQLAction withUndoAction(SQLAction undoAction)
    {
        return new SQLAction(this.undoAction);
    }
    
    public String getStatement()
    {
        return ;
    }
    
    public SQLAction getUndoAction()
    {
        return ;
    }
    @Override
    public String toString()
    {
        return "SQLAction{" +
                "statement='" +  + '\'' +
                ", undoAction=" +  +
                '}';
    }
New to GrepCode? Check out our FAQ X