com.ziclix.python.sql

Class PyStatement

public class PyStatement extends PyObject

Class PyStatement

Version: $Revision: 2542 $

Author: brian zimmer

Field Summary
static intSTATEMENT_CALLABLE
Field STATEMENT_CALLABLE
static intSTATEMENT_PREPARED
Field STATEMENT_PREPARED
static intSTATEMENT_STATIC
Field STATEMENT_STATIC
static PyClass__class__
Field __class__
Constructor Summary
PyStatement(Statement statement, Object sql, int style)
Constructor PyStatement
PyStatement(Statement statement, Procedure procedure)
Constructor PyStatement
Method Summary
static voidclassDictInit(PyObject dict)
Initializes the object's namespace.
voidclose()
Method close
voidexecute(PyCursor cursor, PyObject params, PyObject bindings)
Method execute
StringtoString()
Method toString
void__del__()
Delete the statement.
PyObject__findattr__(String name)
Gets the value of the attribute name.
PyString__repr__()
Method __repr__
PyString__str__()
Method __str__

Field Detail

STATEMENT_CALLABLE

public static final int STATEMENT_CALLABLE
Field STATEMENT_CALLABLE

STATEMENT_PREPARED

public static final int STATEMENT_PREPARED
Field STATEMENT_PREPARED

STATEMENT_STATIC

public static final int STATEMENT_STATIC
Field STATEMENT_STATIC

__class__

public static PyClass __class__
Field __class__

Constructor Detail

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 Detail

classDictInit

public static void classDictInit(PyObject dict)
Initializes the object's namespace.

Parameters: dict

close

public void close()
Method close

execute

public void execute(PyCursor cursor, PyObject params, PyObject bindings)
Method execute

Parameters: cursor params bindings

Throws: SQLException

toString

public String toString()
Method toString

Returns: String

__del__

public void __del__()
Delete the statement.

__findattr__

public PyObject __findattr__(String name)
Gets the value of the attribute name.

Parameters: name

Returns: the attribute for the given name

__repr__

public PyString __repr__()
Method __repr__

Returns: PyString

__str__

public PyString __str__()
Method __str__

Returns: PyString

Jython homepage