| LEFT | RIGHT |
|---|---|
| 1 /* | 1 /* |
| 2 * Jython Database Specification API 2.0 | 2 * Jython Database Specification API 2.0 |
| 3 * | 3 * |
| 4 * $Id$ | 4 * $Id$ |
| 5 * | 5 * |
| 6 * Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com> | 6 * Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com> |
| 7 * | 7 * |
| 8 */ | 8 */ |
| 9 package com.ziclix.python.sql.connect; | 9 package com.ziclix.python.sql.connect; |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 public class Connect extends PyObject { | 25 public class Connect extends PyObject { |
| 26 | 26 |
| 27 private static final PyString _doc = new PyString("establish a connection th rough java.sql.DriverManager"); | 27 private static final PyString _doc = new PyString("establish a connection th rough java.sql.DriverManager"); |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * Default empty constructor. | 30 * Default empty constructor. |
| 31 */ | 31 */ |
| 32 public Connect() { | 32 public Connect() { |
| 33 } | 33 } |
| 34 | 34 |
| 35 /** | |
| 36 * Method __findattr__ | |
|
Nicholas Riley
2008/08/11 04:45:50
Comment needs updating.
Leo Soto M.
2008/08/11 22:58:47
On 2008/08/11 04:45:50, Nicholas Riley wrote:
> Co
| |
| 37 * | |
| 38 * @param String name | |
| 39 * @return PyObject | |
| 40 */ | |
| 41 public PyObject __findattr_ex__(String name) { | 35 public PyObject __findattr_ex__(String name) { |
| 42 | |
| 43 if ("__doc__".equals(name)) { | 36 if ("__doc__".equals(name)) { |
| 44 return _doc; | 37 return _doc; |
| 45 } | 38 } |
| 46 | |
| 47 return super.__findattr_ex__(name); | 39 return super.__findattr_ex__(name); |
| 48 } | 40 } |
| 49 | 41 |
| 50 /** | 42 /** |
| 51 * Establish a connection through DriverManager. | 43 * Establish a connection through DriverManager. |
| 52 */ | 44 */ |
| 53 public PyObject __call__(PyObject[] args, String[] keywords) { | 45 public PyObject __call__(PyObject[] args, String[] keywords) { |
| 54 | 46 |
| 55 Connection c = null; | 47 Connection c = null; |
| 56 PyArgParser parser = new PyArgParser(args, keywords); | 48 PyArgParser parser = new PyArgParser(args, keywords); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 | 103 |
| 112 /** | 104 /** |
| 113 * Method toString | 105 * Method toString |
| 114 * | 106 * |
| 115 * @return String | 107 * @return String |
| 116 */ | 108 */ |
| 117 public String toString() { | 109 public String toString() { |
| 118 return "<connect object instance at " + Py.id(this) + ">"; | 110 return "<connect object instance at " + Py.id(this) + ">"; |
| 119 } | 111 } |
| 120 } | 112 } |
| LEFT | RIGHT |