1 package org.apache.torque.engine.platform; 2 3 18 19 import org.apache.torque.engine.database.model.Domain; 20 import org.apache.torque.engine.database.model.SchemaType; 21 22 28 public class PlatformDb2400Impl extends PlatformDefaultImpl 29 { 30 33 public PlatformDb2400Impl() 34 { 35 super(); 36 initialize(); 37 } 38 39 42 private void initialize() 43 { 44 setSchemaDomainMapping(new Domain(SchemaType.TINYINT, "SMALLINT")); 45 setSchemaDomainMapping(new Domain(SchemaType.INTEGER, "INT")); 46 setSchemaDomainMapping(new Domain(SchemaType.BOOLEANINT, "INT")); 47 setSchemaDomainMapping(new Domain(SchemaType.DOUBLE, "DOUBLE PRECISION")); 48 setSchemaDomainMapping(new Domain(SchemaType.DECIMAL, "DEC")); 49 setSchemaDomainMapping(new Domain(SchemaType.CHAR, "VARCHAR")); 50 setSchemaDomainMapping(new Domain(SchemaType.BOOLEANCHAR, "VARCHAR")); 51 setSchemaDomainMapping(new Domain(SchemaType.LONGVARCHAR, "LONG VARCHAR")); 52 setSchemaDomainMapping(new Domain(SchemaType.VARBINARY, "VARCHAR (32000) FOR BIT DATA")); 53 setSchemaDomainMapping(new Domain(SchemaType.LONGVARBINARY, "LONG VARCHAR FOR BIT DATA")); 54 } 55 56 59 public int getMaxColumnNameLength() 60 { 61 return 30; 62 } 63 64 } 65 | Popular Tags |