KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > dialect > FirebirdDialect


1 //$Id: FirebirdDialect.java,v 1.3 2004/08/09 06:38:50 oneovthafew Exp $
2
package org.hibernate.dialect;
3
4 /**
5  * An SQL dialect for Firebird.
6  * @author Reha CENANI
7  */

8 public class FirebirdDialect extends InterbaseDialect {
9
10     public String JavaDoc getDropSequenceString(String JavaDoc sequenceName) {
11         return "drop generator " + sequenceName;
12     }
13
14     public String JavaDoc getLimitString(String JavaDoc sql, boolean hasOffset) {
15         return new StringBuffer JavaDoc( sql.length()+20 )
16             .append(sql)
17             .insert(6, hasOffset ? " first ? skip ?" : " first ?")
18             .toString();
19     }
20
21     public boolean bindLimitParametersFirst() {
22         return true;
23     }
24
25     public boolean bindLimitParametersInReverseOrder() {
26         return true;
27     }
28
29 }
Popular Tags