Class PyStatement

    • Field Detail

      • STATEMENT_STATIC

        public static final int STATEMENT_STATIC
        Denotes a simple Statement with no parameters.
        See Also:
        Constant Field Values
      • STATEMENT_PREPARED

        public static final int STATEMENT_PREPARED
        Denotes a PreparedStatement either explicitly created by the user, or from a cursor (due to the presence of bind parameters).
        See Also:
        Constant Field Values
      • STATEMENT_CALLABLE

        public static final int STATEMENT_CALLABLE
        Denotes a stored procedure call.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PyStatement

        public PyStatement​(java.sql.Statement statement,
                           java.lang.Object sql,
                           int style)
        Constructor PyStatement
        Parameters:
        statement -
        sql -
        style -
      • PyStatement

        public PyStatement​(java.sql.Statement statement,
                           Procedure procedure)
        Constructor PyStatement
        Parameters:
        statement -
        procedure -
    • Method Detail

      • __str__

        public PyString __str__()
        Description copied from class: PyObject
        Equivalent to the standard Python __str__ method. This method should not typically need to be overridden. The easiest way to configure the string representation of a PyObject is to override the standard Java toString method.
        Overrides:
        __str__ in class PyObject
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class PyObject
      • __findattr_ex__

        public PyObject __findattr_ex__​(java.lang.String name)
        Gets the value of the attribute name.
        Overrides:
        __findattr_ex__ in class PyObject
        Parameters:
        name -
        Returns:
        the attribute for the given name
      • classDictInit

        public static void classDictInit​(PyObject dict)
        Initializes the object's namespace.
        Parameters:
        dict -
      • __del__

        public void __del__()
        Delete the statement.
      • execute

        public void execute​(PyCursor cursor,
                            PyObject params,
                            PyObject bindings)
                     throws java.sql.SQLException
        Method execute
        Parameters:
        cursor -
        params -
        bindings -
        Throws:
        java.sql.SQLException
      • close

        public void close()
        Method close