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

com.agimatec.dbmigrate.util.ScriptVisitorDelegate Maven / Gradle / Ivy

There is a newer version: 2.5.27
Show newest version
package com.agimatec.dbmigrate.util;

import com.agimatec.sql.script.ScriptVisitor;

import java.sql.SQLException;

/**
 * Description: subclass this class
* User: roman.stumm
* Date: 04.04.2007
* Time: 17:41:24
* Copyright: Agimatec GmbH */ public abstract class ScriptVisitorDelegate implements ScriptVisitor { protected final ScriptVisitor nextVisitor; protected ScriptVisitorDelegate(ScriptVisitor aVisitor) { nextVisitor = aVisitor; } public int visitStatement(String statement) throws SQLException { if (nextVisitor == null) { return 0; } else { return nextVisitor.visitStatement(statement); } } public void visitComment(String theComment) throws SQLException { if (nextVisitor != null) nextVisitor.visitComment(theComment); } public void doCommit() throws SQLException { if (nextVisitor != null) nextVisitor.doCommit(); } public void doRollback() throws SQLException { if (nextVisitor != null) nextVisitor.doRollback(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy