KickJava   Java API By Example, From Geeks To Geeks.

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


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: DB2JAdapter.java,v 1.2 2003/02/26 00:45:21 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 DB2J
18  * (Cloudscape 5) database.
19  *
20  * @author Matthew Cooper
21  * @version $Revision: 1.2 $
22  *
23  * @see CloudscapeAdapter
24  */

25
26 class DB2JAdapter extends CloudscapeAdapter
27 {
28     /**
29      * Constructs an DB2J adapter based on the given JDBC metadata.
30      *
31      * @param metadata the database metadata.
32      */

33
34     protected DB2JAdapter(DatabaseMetaData JavaDoc metadata)
35     {
36         super(metadata);
37     }
38
39     public String JavaDoc getVendorID()
40     {
41         return "db2j";
42     }
43
44     public boolean supportsNullsInCandidateKeys()
45     {
46         return false;
47     }
48 }
49
Popular Tags