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 PlatformCloudscapeImpl extends PlatformDefaultImpl 29 { 30 33 public PlatformCloudscapeImpl() 34 { 35 super(); 36 initialize(); 37 } 38 39 42 private void initialize() 43 { 44 setSchemaDomainMapping(new Domain(SchemaType.INTEGER, "INT")); 45 setSchemaDomainMapping(new Domain(SchemaType.BOOLEANINT, "INT")); 46 setSchemaDomainMapping(new Domain(SchemaType.BIGINT, "LONGINT")); 47 setSchemaDomainMapping(new Domain(SchemaType.DOUBLE, "DOUBLE PRECISION")); 48 setSchemaDomainMapping(new Domain(SchemaType.LONGVARCHAR, "LONG VARCHAR")); 49 setSchemaDomainMapping(new Domain(SchemaType.BINARY, "LONG BINARY")); 50 setSchemaDomainMapping(new Domain(SchemaType.VARBINARY, "LONG BINARY")); 51 setSchemaDomainMapping(new Domain(SchemaType.LONGVARBINARY, "LONG VARBINARY")); 52 setSchemaDomainMapping(new Domain(SchemaType.JAVA_OBJECT, "SERIALIZE")); 53 } 54 55 58 public String getAutoIncrement() 59 { 60 return "DEFAULT AUTOINCREMENT"; 61 } 62 63 } 64 | Popular Tags |