1 package org.hibernate.dialect; 3 4 import java.sql.Types ; 5 6 22 public class FrontBaseDialect extends Dialect { 23 24 public FrontBaseDialect() { 25 super(); 26 27 registerColumnType( Types.BIT, "bit" ); 28 registerColumnType( Types.BIGINT, "longint" ); 29 registerColumnType( Types.SMALLINT, "smallint" ); 30 registerColumnType( Types.TINYINT, "tinyint" ); 31 registerColumnType( Types.INTEGER, "integer" ); 32 registerColumnType( Types.CHAR, "char(1)" ); 33 registerColumnType( Types.VARCHAR, "varchar($l)" ); 34 registerColumnType( Types.FLOAT, "float" ); 35 registerColumnType( Types.DOUBLE, "double precision" ); 36 registerColumnType( Types.DATE, "date" ); 37 registerColumnType( Types.TIME, "time" ); 38 registerColumnType( Types.TIMESTAMP, "timestamp" ); 39 registerColumnType( Types.VARBINARY, "bit varying($l)" ); 40 registerColumnType( Types.NUMERIC, "numeric($p,$s)" ); 41 registerColumnType( Types.BLOB, "blob" ); 42 registerColumnType( Types.CLOB, "clob" ); 43 } 44 45 public String getAddColumnString() { 46 return "add column"; 47 } 48 49 public String getCascadeConstraintsString() { 50 return " cascade"; 51 } 52 53 public boolean dropConstraints() { 54 return false; 55 } 56 57 63 public String getForUpdateString() { 64 return ""; 65 } 66 67 } 68 | Popular Tags |