1 27 28 package org.webdocwf.util.loader.test; 29 30 import java.sql.Connection ; 31 import org.webdocwf.util.loader.Loader; 32 33 import java.sql.SQLException ; 34 35 41 public abstract class DatabaseOperation 42 { 43 public static final String NONE = "NONE"; 44 public static final String CREATE = "CREATE"; 45 public static final String DROP = "DROP"; 46 public static final String LOADER = "LOADER"; 47 public static DatabaseOperation DO_NOTHING = new DummyAction(); 48 49 50 56 public abstract void execute(Connection conn) throws SQLException ; 57 58 59 63 public abstract String getDatabaseOperationType(); 64 65 66 private static class DummyAction extends DatabaseOperation 67 { 68 public void execute(Connection conn) 69 { 70 } 71 72 public String getDatabaseOperationType() 73 { 74 return DatabaseOperation.NONE; 75 } 76 } 77 } 78 79 80 81 82 83 84 | Popular Tags |