|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
com.ziclix.python.sql.zxJDBC
public class zxJDBC
Creates database connections.
from com.ziclix.python.sql import zxJDBC db = zxJDBC.connect("jdbc:mysql://localhost:3306/MySql", None, None, "org.gjt.mm.mysql.Driver")
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary | |
---|---|
static PyObject |
DatabaseError
Field DatabaseError |
static PyObject |
DataError
Field DataError |
static DateFactory |
datefactory
Instance used to create date-like objects as per the API |
static PyObject |
Error
Field Error |
static PyObject |
IntegrityError
Field IntegrityError |
static PyObject |
InterfaceError
Field InterfaceError |
static PyObject |
InternalError
Field InternalError |
static PyObject |
NotSupportedError
Field NotSupportedError |
static PyObject |
OperationalError
Field OperationalError |
static PyObject |
ProgrammingError
Field ProgrammingError |
static PyObject |
Warning
Field Warning |
Fields inherited from class org.python.core.PyObject |
---|
TYPE |
Constructor Summary | |
---|---|
zxJDBC()
|
Method Summary | |
---|---|
static void |
classDictInit(PyObject dict)
Initializes the module. |
static String |
getString(String key)
Return the string associated with the key for the default resource bundle. |
static String |
getString(String key,
Object[] values)
Return a formatted string. |
static PyException |
makeException(PyObject type,
String msg)
Return a newly instantiated PyException of the given type. |
static PyException |
makeException(PyObject type,
Throwable t)
Return a newly instantiated PyException of the given type. |
static PyException |
makeException(PyObject type,
Throwable t,
int rowIndex)
Return a newly instantiated PyException of the given type. |
static PyException |
makeException(String msg)
Return a newly instantiated PyException of the type Error. |
static PyException |
makeException(Throwable throwable)
Return a newly instantiated PyException of the type Error. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static PyObject Error
public static PyObject Warning
public static PyObject InterfaceError
public static PyObject DatabaseError
public static PyObject InternalError
public static PyObject OperationalError
public static PyObject ProgrammingError
public static PyObject IntegrityError
public static PyObject DataError
public static PyObject NotSupportedError
public static DateFactory datefactory
Constructor Detail |
---|
public zxJDBC()
Method Detail |
---|
public static void classDictInit(PyObject dict)
dict
- public static String getString(String key)
key
-
public static String getString(String key, Object[] values)
key
- values
-
public static PyException makeException(String msg)
msg
-
public static PyException makeException(PyObject type, String msg)
type
- msg
-
public static PyException makeException(Throwable throwable)
throwable
-
public static PyException makeException(PyObject type, Throwable t)
type
- t
-
public static PyException makeException(PyObject type, Throwable t, int rowIndex)
type
- t
- rowIndex
- Row index where the error has happened. Useful for diagnosing.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |