1 package org.hibernate.dialect; 4 5 import java.sql.Types ; 6 7 23 public class ProgressDialect extends Dialect { 24 public ProgressDialect() { 25 super(); 26 registerColumnType( Types.BIT, "bit" ); 27 registerColumnType( Types.BIGINT, "numeric" ); 28 registerColumnType( Types.SMALLINT, "smallint" ); 29 registerColumnType( Types.TINYINT, "tinyint" ); 30 registerColumnType( Types.INTEGER, "integer" ); 31 registerColumnType( Types.CHAR, "character(1)" ); 32 registerColumnType( Types.VARCHAR, "varchar($l)" ); 33 registerColumnType( Types.FLOAT, "real" ); 34 registerColumnType( Types.DOUBLE, "double precision" ); 35 registerColumnType( Types.DATE, "date" ); 36 registerColumnType( Types.TIME, "time" ); 37 registerColumnType( Types.TIMESTAMP, "timestamp" ); 38 registerColumnType( Types.VARBINARY, "varbinary($l)" ); 39 registerColumnType( Types.NUMERIC, "numeric($p,$s)" ); 40 } 41 42 public boolean hasAlterTable(){ 43 return false; 44 } 45 46 public String getAddColumnString() { 47 return "add column"; 48 } 49 50 public boolean qualifyIndexName() { 51 return false; 52 } 53 } 54 55 56 57 58 59 60 61 | Popular Tags |