KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.hibernate.dialect;
2
3 /**
4  * SQL Dialect for Sybase Anywhere
5  * extending Sybase (Enterprise) Dialect
6  * (Tested on ASA 8.x)
7  * @author ?
8  */

9 public class SybaseAnywhereDialect extends SybaseDialect {
10
11     /**
12      * Sybase Anywhere syntax would require a "DEFAULT" for each column specified,
13      * but I suppose Hibernate use this syntax only with tables with just 1 column
14      */

15     public String JavaDoc getNoColumnsInsertString() {
16         return "values (default)";
17     }
18
19
20     /**
21      * ASA does not require to drop constraint before dropping tables, and DROP statement
22      * syntax used by Hibernate to drop constraint is not compatible with ASA, so disable it
23      */

24     public boolean dropConstraints() {
25         return false;
26     }
27
28 }
Popular Tags