1 package org.apache.ojb.broker.util.dbhandling; 2 3 17 18 import java.io.IOException ; 19 import java.io.InputStream ; 20 import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor; 21 import org.apache.ojb.broker.platforms.PlatformException; 22 23 28 public interface DBHandling 29 { 30 36 public void setWorkDir(String dir) throws IOException ; 37 38 44 public void setConnection(JdbcConnectionDescriptor jcd) throws PlatformException; 45 46 51 public JdbcConnectionDescriptor getConnection(); 52 53 59 public void addDBDefinitionFiles(String srcDir, String listOfFilenames) throws IOException ; 60 61 66 public void addDBDefinitionFile(InputStream inputStream) throws IOException ; 67 68 73 public void createDB() throws PlatformException; 74 75 80 public void initDB() throws PlatformException; 81 } 82 | Popular Tags |