1 package org.hibernate.dialect; 3 4 import org.hibernate.Hibernate; 5 import org.hibernate.dialect.function.VarArgsSQLFunction; 6 import org.hibernate.id.TableHiLoGenerator; 7 import org.hibernate.sql.CaseFragment; 8 import org.hibernate.sql.DerbyCaseFragment; 9 10 18 public class DerbyDialect extends DB2Dialect { 19 20 public DerbyDialect() { 21 super(); 22 registerFunction( "concat", new VarArgsSQLFunction( Hibernate.STRING, "(","||",")" ) ); 23 } 24 25 28 public String getIdentityColumnString() { 29 return "not null generated always as identity"; } 31 32 35 public CaseFragment createCaseFragment() { 36 return new DerbyCaseFragment(); 37 } 38 39 public boolean dropConstraints() { 40 return true; 41 } 42 43 public Class getNativeIdentifierGeneratorClass() { 44 return TableHiLoGenerator.class; 45 } 46 47 public boolean supportsSequences() { 48 return false; 49 } 50 51 public boolean supportsLimit() { 52 return false; 53 } 54 55 public boolean supportsLimitOffset() { 56 return false; 57 } 58 59 public String getQuerySequencesString() { 60 return null ; 61 } 62 } 63 | Popular Tags |