View Javadoc
1   /******************************************************************************
2    * JdbcBaseClass.java - The common poo for the BSAccount's d'Spring Jdbc classes 
3    * 
4    * BSAccountMan - BuckoSoft Web Account Manager 
5    * Copyright(c) 2007 - Dick Balaska and BuckoSoft, Corp.
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  /** The common poo for the BSAccount's Spring'd Jdbc classes
20   * @author Dick Balaska
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  	/** Set the Jdbc Datasource */
31  	public void setDataSource(DataSource ds) {
32  		this.ds = ds;
33  	}
34  	
35  	/** Set the database type of grammer
36  	 * @see com.buckosoft.BSAccountMan.db.DbType */
37  	public void setDbType(int dbType) {
38  		this.dbType = dbType;
39  	}
40  
41  
42  	/**
43  	 * @param autoincrement The autoincrement to set.
44  	 */
45  	public void setAutoincrement(boolean autoincrement) {
46  		this.autoincrement = autoincrement;
47  	}
48  }