~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to src/org/hibernate/dialect/FirebirdDialect.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//$Id: FirebirdDialect.java 4202 2004-08-09 06:38:52Z oneovthafew $
 
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 getDropSequenceString(String sequenceName) {
 
11
                return "drop generator " + sequenceName;
 
12
        }
 
13
 
 
14
        public String getLimitString(String sql, boolean hasOffset) {
 
15
                return new StringBuffer( 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
}
 
 
b'\\ No newline at end of file'