Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Side by Side Diff: src/com/ziclix/python/sql/PyExtendedCursor.java

Issue 2888: __findattr__ refactor (Closed) SVN Base: https://jython.svn.sourceforge.net/svnroot/jython/branches/asm
Patch Set: This is the actually commited patch (on r5155), in case you have more comments Created 1 year, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
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; 9 package com.ziclix.python.sql;
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 dict.__setitem__("classDictInit", null); 124 dict.__setitem__("classDictInit", null);
125 dict.__setitem__("toString", null); 125 dict.__setitem__("toString", null);
126 } 126 }
127 127
128 /** 128 /**
129 * Finds the attribute. 129 * Finds the attribute.
130 * 130 *
131 * @param name the name of the attribute of interest 131 * @param name the name of the attribute of interest
132 * @return the value for the attribute of the specified name 132 * @return the value for the attribute of the specified name
133 */ 133 */
134 public PyObject __findattr__(String name) { 134 public PyObject __findattr_ex__(String name) {
135 135
136 if ("__methods__".equals(name)) { 136 if ("__methods__".equals(name)) {
137 return __methods__; 137 return __methods__;
138 } else if ("__members__".equals(name)) { 138 } else if ("__members__".equals(name)) {
139 return __members__; 139 return __members__;
140 } 140 }
141 141
142 return super.__findattr__(name); 142 return super.__findattr_ex__(name);
143 } 143 }
144 144
145 /** 145 /**
146 * Only table descriptions matching the catalog, schema, table name and type 146 * Only table descriptions matching the catalog, schema, table name and type
147 * criteria are returned. They are ordered by TABLE_TYPE, TABLE_SCHEM and 147 * criteria are returned. They are ordered by TABLE_TYPE, TABLE_SCHEM and
148 * TABLE_NAME. 148 * TABLE_NAME.
149 * 149 *
150 * @param qualifier 150 * @param qualifier
151 * @param owner 151 * @param owner
152 * @param table 152 * @param table
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 case 105: 589 case 105:
590 cursor.procedurecolumns(arg1, arg2, arg3, arg4); 590 cursor.procedurecolumns(arg1, arg2, arg3, arg4);
591 591
592 return Py.None; 592 return Py.None;
593 593
594 default : 594 default :
595 throw info.unexpectedCall(4, false); 595 throw info.unexpectedCall(4, false);
596 } 596 }
597 } 597 }
598 } 598 }
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483