KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > store > HSQLDBAdapter


1 /*
2  * Copyright 2003 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: HSQLDBAdapter.java,v 1.1 2003/11/26 20:03:54 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.store;
12
13 import java.sql.DatabaseMetaData JavaDoc;
14
15
16 /**
17  * Provides methods for adapting SQL language elements to the hsqldb
18  * database.
19  * <p>
20  * Currently this adapter is just an untested placeholder.
21  *
22  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
23  */

24
25 public class HSQLDBAdapter extends DatabaseAdapter
26 {
27     public HSQLDBAdapter(DatabaseMetaData JavaDoc metadata)
28     {
29         super(metadata);
30     }
31
32     public String JavaDoc getVendorID()
33     {
34         return "hsqldb";
35     }
36
37     public boolean supportsDeferredConstraints()
38     {
39         return false;
40     }
41
42     public String JavaDoc getDropTableStatement(BaseTable table)
43     {
44         return "DROP TABLE " + table.getName();
45     }
46 }
47
Popular Tags