KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rmijdbc > RJDriverPropertyInfo


1
2 /**
3  * RmiJdbc client/server JDBC Driver
4  * (C) GIE Dyade (Groupe BULL / INRIA Research Center) 1997
5  *
6  * @version 1.0
7  * @author Pierre-Yves Gibello (pierreyves.gibello@experlog.com)
8  */

9
10 package org.objectweb.rmijdbc;
11
12 import java.sql.DriverPropertyInfo JavaDoc;
13
14 /**
15  * This class is used to make DriverPropertyInfo serializable, so the
16  * driver's getPropertyInfo() return can be accessed remotely.
17  */

18 public class RJDriverPropertyInfo implements java.io.Serializable JavaDoc {
19
20   protected String JavaDoc name_;
21   protected String JavaDoc value_;
22   protected boolean required_;
23   protected String JavaDoc description_;
24   protected String JavaDoc choices_[];
25
26   protected RJDriverPropertyInfo(DriverPropertyInfo JavaDoc dpi) {
27     choices_ = dpi.choices;
28     description_ = dpi.description;
29     name_ = dpi.name;
30     required_ = dpi.required;
31     value_ = dpi.value;
32   }
33
34   public DriverPropertyInfo JavaDoc getPropertyInfo() {
35     DriverPropertyInfo JavaDoc dpi = new DriverPropertyInfo JavaDoc(name_, value_);
36     dpi.choices = choices_;
37     dpi.description = description_;
38     dpi.required = required_;
39     return dpi;
40   }
41
42 };
43
44
Popular Tags