|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.python.core.PyObject
|
+--com.ziclix.python.sql.PyConnection
A connection to the database.
| Field Summary | |
static PyClass |
__class__
Field __class__ |
| Constructor Summary | |
PyConnection(java.sql.Connection connection)
Create a PyConnection with the open connection. |
|
| Method Summary | |
PyObject |
__findattr__(java.lang.String name)
Finds the attribute. |
void |
__setattr__(java.lang.String name,
PyObject value)
Sets the attribute. |
static void |
classDictInit(PyObject dict)
Method classDictInit |
void |
close()
Close the connection now (rather than whenever __del__ is called). |
void |
commit()
Commit any pending transaction to the database. |
PyCursor |
cursor()
Return a new Cursor Object using the connection. |
PyCursor |
cursor(boolean dynamicFetch)
Return a new Cursor Object using the connection. |
PyObject |
nativesql(PyObject nativeSQL)
Converts the given SQL statement into the system's native SQL grammar. |
void |
rollback()
This method is optional since not all databases provide transaction support. |
java.lang.String |
toString()
Produces a string representation of the object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static PyClass __class__
| Constructor Detail |
public PyConnection(java.sql.Connection connection)
throws java.sql.SQLException
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic static void classDictInit(PyObject dict)
public void __setattr__(java.lang.String name,
PyObject value)
__setattr__ in class PyObjectname - value - PyObject.__setattr__(PyString, PyObject)public PyObject __findattr__(java.lang.String name)
__findattr__ in class PyObjectname - the name of the attribute of interest
PyObject.__findattr__(PyString)public void close()
public void commit()
public void rollback()
public PyObject nativesql(PyObject nativeSQL)
public PyCursor cursor()
public PyCursor cursor(boolean dynamicFetch)
dynamicFetch - if true, dynamically iterate the result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||