< prev index next >

src/java.sql/share/classes/java/sql/DriverPropertyInfo.java

Print this page




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.sql;
  27 
  28 /**
  29  * <p>Driver properties for making a connection. The
  30  * <code>DriverPropertyInfo</code> class is of interest only to advanced programmers
  31  * who need to interact with a Driver via the method
  32  * <code>getDriverProperties</code> to discover
  33  * and supply properties for connections.


  34  */
  35 
  36 public class DriverPropertyInfo {
  37 
  38     /**
  39      * Constructs a <code>DriverPropertyInfo</code> object with a  given
  40      * name and value.  The <code>description</code> and <code>choices</code>
  41      * are initialized to <code>null</code> and <code>required</code> is initialized
  42      * to <code>false</code>.
  43      *
  44      * @param name the name of the property
  45      * @param value the current value, which may be null
  46      */
  47     public DriverPropertyInfo(String name, String value) {
  48         this.name = name;
  49         this.value = value;
  50     }
  51 
  52     /**
  53      * The name of the property.




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.sql;
  27 
  28 /**
  29  * <p>Driver properties for making a connection. The
  30  * <code>DriverPropertyInfo</code> class is of interest only to advanced programmers
  31  * who need to interact with a Driver via the method
  32  * <code>getDriverProperties</code> to discover
  33  * and supply properties for connections.
  34  *
  35  * @since 1.1
  36  */
  37 
  38 public class DriverPropertyInfo {
  39 
  40     /**
  41      * Constructs a <code>DriverPropertyInfo</code> object with a  given
  42      * name and value.  The <code>description</code> and <code>choices</code>
  43      * are initialized to <code>null</code> and <code>required</code> is initialized
  44      * to <code>false</code>.
  45      *
  46      * @param name the name of the property
  47      * @param value the current value, which may be null
  48      */
  49     public DriverPropertyInfo(String name, String value) {
  50         this.name = name;
  51         this.value = value;
  52     }
  53 
  54     /**
  55      * The name of the property.


< prev index next >