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: DB2JAdapter.java,v 1.2 2003/02/26 00:45:21 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 DB2J
17: * (Cloudscape 5) database.
18: *
19: * @author Matthew Cooper
20: * @version $Revision: 1.2 $
21: *
22: * @see CloudscapeAdapter
23: */
24:
25: class DB2JAdapter extends CloudscapeAdapter {
26: /**
27: * Constructs an DB2J adapter based on the given JDBC metadata.
28: *
29: * @param metadata the database metadata.
30: */
31:
32: protected DB2JAdapter(DatabaseMetaData metadata) {
33: super (metadata);
34: }
35:
36: public String getVendorID() {
37: return "db2j";
38: }
39:
40: public boolean supportsNullsInCandidateKeys() {
41: return false;
42: }
43: }
|