1 21 22 23 package org.webdocwf.util.loader.test; 24 25 import java.sql.Connection ; 26 import java.sql.Statement ; 27 import org.webdocwf.util.loader.test.DatabaseOperation; 28 import org.webdocwf.util.loader.Loader; 29 import org.webdocwf.util.loader.LoaderException; 30 31 import java.sql.SQLException ; 32 33 39 public class LoaderOperation extends DatabaseOperation { 40 41 private Loader loadJob = null; 42 43 public LoaderOperation() { 44 } 45 46 public LoaderOperation(Loader load) { 47 loadJob = load; 48 } 49 50 public void setLoader(Loader load) { 51 loadJob = load; 52 } 53 54 57 63 64 public void execute(Connection conn) throws SQLException { 65 } 66 67 71 72 public void execute() throws LoaderException { 73 74 loadJob.load(); 75 76 } 77 78 82 public String getDatabaseOperationType() { 83 return DatabaseOperation.LOADER; 84 } 85 86 } 87 | Popular Tags |