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

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

Issue 2888: __findattr__ refactor (Closed) SVN Base: https://jython.svn.sourceforge.net/svnroot/jython/branches/asm
Patch Set: Created 1 year, 3 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.connect; 9 package com.ziclix.python.sql.connect;
10 10
(...skipping 26 matching lines...) Expand all
37 */ 37 */
38 public Lookup() { 38 public Lookup() {
39 } 39 }
40 40
41 /** 41 /**
42 * Method __findattr__ 42 * Method __findattr__
43 * 43 *
44 * @param name 44 * @param name
45 * @return PyObject 45 * @return PyObject
46 */ 46 */
47 public PyObject __findattr__(String name) { 47 public PyObject __findattr_ex__(String name) {
48 48
49 if ("__doc__".equals(name)) { 49 if ("__doc__".equals(name)) {
50 return _doc; 50 return _doc;
51 } 51 }
52 52
53 return super.__findattr__(name); 53 return super.__findattr_ex__(name);
54 } 54 }
55 55
56 /** 56 /**
57 * Expects a single PyString argument which is the JNDI name of the bound Co nnection or DataSource. 57 * Expects a single PyString argument which is the JNDI name of the bound Co nnection or DataSource.
58 * If any keywords are passed, an attempt is made to match the keyword to a static final Field on 58 * If any keywords are passed, an attempt is made to match the keyword to a static final Field on
59 * javax.naming.Context. If the Field is found, the value of the Field is s ubstituted as the key 59 * javax.naming.Context. If the Field is found, the value of the Field is s ubstituted as the key
60 * and the value of the keyword is the value put in the Hashtable environmen t. If the Field is not 60 * and the value of the keyword is the value put in the Hashtable environmen t. If the Field is not
61 * found, the key is the keyword with no substitutions. 61 * found, the key is the keyword with no substitutions.
62 */ 62 */
63 public PyObject __call__(PyObject[] args, String[] keywords) { 63 public PyObject __call__(PyObject[] args, String[] keywords) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 /** 142 /**
143 * Method toString 143 * Method toString
144 * 144 *
145 * @return String 145 * @return String
146 */ 146 */
147 public String toString() { 147 public String toString() {
148 return "<lookup object instance at " + Py.id(this) + ">"; 148 return "<lookup object instance at " + Py.id(this) + ">";
149 } 149 }
150 } 150 }
OLDNEW

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