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 PlatformSybaseImpl extends PlatformDefaultImpl 29 { 30 33 public PlatformSybaseImpl() 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.DOUBLE, "FLOAT")); 47 setSchemaDomainMapping(new Domain(SchemaType.LONGVARCHAR, "TEXT")); 48 setSchemaDomainMapping(new Domain(SchemaType.DATE, "DATETIME")); 49 setSchemaDomainMapping(new Domain(SchemaType.TIME, "TIMESTAMP")); 50 setSchemaDomainMapping(new Domain(SchemaType.TIMESTAMP, "DATETIME")); 51 setSchemaDomainMapping(new Domain(SchemaType.VARBINARY, "IMAGE")); 52 setSchemaDomainMapping(new Domain(SchemaType.LONGVARBINARY, "IMAGE")); 53 } 54 55 58 public int getMaxColumnNameLength() 59 { 60 return 30; 61 } 62 63 } 64 | Popular Tags |