Class PyStatement

java.lang.Object
org.python.core.PyObject
com.ziclix.python.sql.PyStatement
All Implemented Interfaces:
Serializable

public class PyStatement extends PyObject
Class PyStatement
Version:
$Revision: 2542 $
Author:
brian zimmer
See Also:
  • Field Details

    • STATEMENT_STATIC

      public static final int STATEMENT_STATIC
      Field STATEMENT_STATIC
      See Also:
    • STATEMENT_PREPARED

      public static final int STATEMENT_PREPARED
      Field STATEMENT_PREPARED
      See Also:
    • STATEMENT_CALLABLE

      public static final int STATEMENT_CALLABLE
      Field STATEMENT_CALLABLE
      See Also:
    • __class__

      public static PyClass __class__
      Field __class__
  • Constructor Details

    • PyStatement

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

      public PyStatement(Statement statement, Procedure procedure)
      Constructor PyStatement
      Parameters:
      statement -
      procedure -
  • Method Details

    • __str__

      public PyString __str__()
      Method __str__
      Overrides:
      __str__ in class PyObject
      Returns:
      PyString
    • __repr__

      public PyString __repr__()
      Method __repr__
      Overrides:
      __repr__ in class PyObject
      Returns:
      PyString
    • toString

      public String toString()
      Method toString
      Overrides:
      toString in class PyObject
      Returns:
      String
    • __findattr__

      public PyObject __findattr__(String name)
      Gets the value of the attribute name.
      Overrides:
      __findattr__ in class PyObject
      Parameters:
      name -
      Returns:
      the attribute for the given name
      See Also:
    • 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 SQLException
      Method execute
      Parameters:
      cursor -
      params -
      bindings -
      Throws:
      SQLException
    • close

      public void close()
      Method close