| OLD | NEW |
| 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.util; | 9 package com.ziclix.python.sql.util; |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 super.__setattr__(name, value); | 121 super.__setattr__(name, value); |
| 122 } | 122 } |
| 123 } | 123 } |
| 124 | 124 |
| 125 /** | 125 /** |
| 126 * Gets the value of the attribute name. | 126 * Gets the value of the attribute name. |
| 127 * | 127 * |
| 128 * @param name | 128 * @param name |
| 129 * @return the attribute for the given name | 129 * @return the attribute for the given name |
| 130 */ | 130 */ |
| 131 public PyObject __findattr__(String name) { | 131 public PyObject __findattr_ex__(String name) { |
| 132 | 132 |
| 133 if ("destinationDataHandler".equals(name)) { | 133 if ("destinationDataHandler".equals(name)) { |
| 134 return Py.java2py(this.destDH); | 134 return Py.java2py(this.destDH); |
| 135 } else if ("sourceDataHandler".equals(name)) { | 135 } else if ("sourceDataHandler".equals(name)) { |
| 136 return Py.java2py(this.sourceDH); | 136 return Py.java2py(this.sourceDH); |
| 137 } else if ("batchsize".equals(name)) { | 137 } else if ("batchsize".equals(name)) { |
| 138 return Py.newInteger(this.batchsize); | 138 return Py.newInteger(this.batchsize); |
| 139 } else if ("queuesize".equals(name)) { | 139 } else if ("queuesize".equals(name)) { |
| 140 return Py.newInteger(this.queuesize); | 140 return Py.newInteger(this.queuesize); |
| 141 } | 141 } |
| 142 | 142 |
| 143 return super.__findattr__(name); | 143 return super.__findattr_ex__(name); |
| 144 } | 144 } |
| 145 | 145 |
| 146 /** | 146 /** |
| 147 * Initializes the object's namespace. | 147 * Initializes the object's namespace. |
| 148 * | 148 * |
| 149 * @param dict | 149 * @param dict |
| 150 */ | 150 */ |
| 151 static public void classDictInit(PyObject dict) { | 151 static public void classDictInit(PyObject dict) { |
| 152 | 152 |
| 153 dict.__setitem__("__version__", Py.newString("$Revision$").__getslice__(
Py.newInteger(11), Py.newInteger(-2), null)); | 153 dict.__setitem__("__version__", Py.newString("$Revision$").__getslice__(
Py.newInteger(11), Py.newInteger(-2), null)); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 PyObject bindings = parser.kw("bindings", Py.None); | 321 PyObject bindings = parser.kw("bindings", Py.None); |
| 322 PyObject count = bcp.bcp(table, where, params, include, exclude,
toTable, bindings); | 322 PyObject count = bcp.bcp(table, where, params, include, exclude,
toTable, bindings); |
| 323 | 323 |
| 324 return count; | 324 return count; |
| 325 | 325 |
| 326 default : | 326 default : |
| 327 throw info.unexpectedCall(3, false); | 327 throw info.unexpectedCall(3, false); |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 } | 330 } |
| OLD | NEW |