Documentation of 'com.ziclix.python.sql.connect.Lookup' Java class
Lookup
com.ziclix.python.sql.connect

Class Lookup

  • All Implemented Interfaces:
    java.io.Serializable


    public class Lookup
    extends PyObject
    Establish a connection through a JNDI lookup. The bound object can be either a DataSource, ConnectionPooledDataSource, Connection or a String. If it's a String the value is passed to the DriverManager to obtain a connection, otherwise the Connection is established using the object.
    See Also:
    Serialized Form
    • Constructor Detail

      • Lookup

        public Lookup()
    • Method Detail

      • __findattr_ex__

        public PyObject __findattr_ex__(java.lang.String name)
        Method __findattr__
        Overrides:
        __findattr_ex__ in class PyObject
        Parameters:
        name -
        Returns:
        PyObject
      • __call__

        public PyObject __call__(PyObject[] args,
                                 java.lang.String[] keywords)
        Expects a single PyString argument which is the JNDI name of the bound Connection or DataSource. If any keywords are passed, an attempt is made to match the keyword to a static final Field on javax.naming.Context. If the Field is found, the value of the Field is substituted as the key and the value of the keyword is the value put in the Hashtable environment. If the Field is not found, the key is the keyword with no substitutions.
        Overrides:
        __call__ in class PyObject
        Parameters:
        args - all arguments to the function (including keyword arguments).
        keywords - the keywords used for all keyword arguments.
      • toString

        public java.lang.String toString()
        Method toString
        Overrides:
        toString in class PyObject
        Returns:
        String

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.