View Javadoc

1   package sk.stuba.fiit.foo07.genex.dao;
2   
3   import java.sql.Connection;
4   
5   /**
6    * @author palo
7    * 
8    */
9   
10  public abstract class BasicDao {
11      protected Connection con;
12      String dbName;
13  
14      /*
15      private void makeDerbyConnection() throws Exception {
16          Properties p = System.getProperties();
17          p.put("derby.system.home", "target/");
18  
19          // load derby embedded driver
20          Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
21  
22          // create and connect to new derby database
23          con = DriverManager.getConnection("jdbc:derby:" + dbName
24                  + ";create=true");
25          return;
26      }
27      */
28  
29      public BasicDao() {
30          super();
31      }
32  
33      public BasicDao(Connection con) {
34          this.con = con;
35          return;
36      }
37  }