01: package net.sourceforge.jaxor.example.db;
02:
03: import java.sql.Types;
04:
05: /**
06: * Created By: Mike
07: * Date: Nov 28, 2003
08: * Time: 4:36:32 PM
09: *
10: * Last Checkin: $Author: mrettig $
11: * Date: $Date: 2004/02/09 03:47:47 $
12: * Revision: $Revision: 1.3 $
13: */
14: public class MySqlContextTestingFactory extends
15: JaxorContextTestingFactoryImpl {
16:
17: public MySqlContextTestingFactory() {
18: super (MySqlConnection.INSTANCE.getConnection(), true);
19: }
20:
21: public String getCreateTable(int type) {
22: // we must override timestamp to use datetime or else mysql will automatically timestamp fields.
23: if (type == Types.TIMESTAMP)
24: return "DATETIME";
25: return super .getCreateTable(type);
26: }
27:
28: public boolean capitalizeTableNameForMetaData() {
29: return false;
30: }
31:
32: public String getAutoIncrementKeyword() {
33: return "AUTO_INCREMENT";
34: }
35: }
|