1
2
3
4
5
6
7
8
9 package com.buckosoft.BSAccountMan.db.jdbc;
10
11 import javax.sql.DataSource;
12
13 import org.apache.commons.logging.Log;
14 import org.apache.commons.logging.LogFactory;
15
16 import com.buckosoft.BSAccountMan.db.DbType;
17
18
19
20
21
22 public class JdbcBaseClass implements DbType {
23
24 protected final static boolean DEBUG = true;
25 protected final Log logger = LogFactory.getLog(getClass());
26
27 protected DataSource ds;
28 protected int dbType = DbType.MySQL;
29 protected boolean autoincrement = false;
30
31 public void setDataSource(DataSource ds) {
32 this.ds = ds;
33 }
34
35
36
37 public void setDbType(int dbType) {
38 this.dbType = dbType;
39 }
40
41
42
43
44
45 public void setAutoincrement(boolean autoincrement) {
46 this.autoincrement = autoincrement;
47 }
48 }