01: package simpleorm.core;
02:
03: /**
04: * Borland's db.
05: * @author Richard Schmidt
06: */
07: public class SDriverInterbase extends SDriver {
08: protected String driverName() {
09: return "InterClient";
10: }
11:
12: protected void addNull(StringBuffer sql, SFieldMeta fld) {
13:
14: // SLog.slog.log( "addNull" + sql.toString() + " " + fld.toLongerString());
15: if (fld.isPrimaryKey || fld.getBoolean(SMANDATORY))
16: sql.append(" NOT NULL");
17: //not needed for interbAW
18: // else
19: // sql.append(" NULL");
20:
21: }
22:
23: //ToDO Need to fix TimeStamp
24: //Change how table is generated.
25: //How to generate a timestamp.
26: protected String wholeColumnSQL(SFieldMeta fld) {
27:
28: String sql = super .wholeColumnSQL(fld);
29: // SLog.slog.log( sql);
30: // SLog.slog.log( fld.toLongerString());
31:
32: return sql;
33: }
34: }
|