01: /*
02: * Copyright 2003 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: HSQLDBAdapter.java,v 1.1 2003/11/26 20:03:54 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import java.sql.DatabaseMetaData;
14:
15: /**
16: * Provides methods for adapting SQL language elements to the hsqldb
17: * database.
18: * <p>
19: * Currently this adapter is just an untested placeholder.
20: *
21: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22: */
23:
24: public class HSQLDBAdapter extends DatabaseAdapter {
25: public HSQLDBAdapter(DatabaseMetaData metadata) {
26: super (metadata);
27: }
28:
29: public String getVendorID() {
30: return "hsqldb";
31: }
32:
33: public boolean supportsDeferredConstraints() {
34: return false;
35: }
36:
37: public String getDropTableStatement(BaseTable table) {
38: return "DROP TABLE " + table.getName();
39: }
40: }
|