|
||||||||||
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.
Nested Class Summary |
Nested classes inherited from class org.python.core.PyObject |
PyObject.ConversionException |
Field Summary | |
static PyClass |
__class__
Field __class__ |
Fields inherited from class org.python.core.PyObject |
exposed_name |
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. |
PyCursor |
cursor(boolean dynamicFetch,
PyObject rsType,
PyObject rsConcur)
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
connection
-
java.sql.SQLException
Method Detail |
public java.lang.String toString()
toString
in class PyObject
public static void classDictInit(PyObject dict)
dict
- public void __setattr__(java.lang.String name, PyObject value)
__setattr__
in class PyObject
name
- value
- PyObject.__setattr__(PyString, PyObject)
public PyObject __findattr__(java.lang.String name)
__findattr__
in class PyObject
name
- the name of the attribute of interest
PyObject.__findattr__(PyString)
public void close()
public void commit()
public void rollback()
public PyObject nativesql(PyObject nativeSQL)
nativeSQL
-
public PyCursor cursor()
public PyCursor cursor(boolean dynamicFetch)
dynamicFetch
- if true, dynamically iterate the result
public PyCursor cursor(boolean dynamicFetch, PyObject rsType, PyObject rsConcur)
dynamicFetch
- if true, dynamically iterate the resultrsType
- the type of the underlying ResultSetrsConcur
- the concurrency of the underlying ResultSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |