Top Description Fields Constructors Methods
com.ziclix.python.sql.connect

public Class Connectx

extends PyObject
Class Inheritance
Annotations
@Untraversable
Imports
java.lang.reflect.Field, .InvocationTargetException, .Method, java.sql.Connection, .SQLException, javax.sql.ConnectionPoolDataSource, .DataSource, org.python.core.Py, .PyObject, .PyString, .Untraversable, com.ziclix.python.sql.PyConnection, .zxJDBC, com.ziclix.python.sql.util.PyArgParser

Connect using through a javax.sql.DataSource or javax.sql.ConnectionPooledDataSource.
Author
brian zimmer

Field Summary

Modifier and TypeField and Description
private static final PyString
private static final String
Inherited from org.python.core.PyObject:
attributesgcMonitorGlobalobjtypeTYPE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PyObject
__call__(PyObject[]
all arguments to the function (including keyword arguments).
args
,
String[]
the keywords used for all keyword arguments.
keywords
)

Overrides org.python.core.PyObject.__call__.

Construct a javax.sql.DataSource or javax.sql.ConnectionPooledDataSource

public PyObject
__findattr_ex__(String name)

Overrides org.python.core.PyObject.__findattr_ex__.

Attribute lookup hook.

protected Method
getMethod(Class<?> srcClass, String methodName, Class<?> valueClass)

Try to find the method by the given name.

protected void
invoke(Object src, String methodName, Object value)

Method invoke

public String
toString()

Overrides org.python.core.PyObject.toString.

Returns a string representation of the object.

Inherited from org.python.core.PyObject:
__abs____add____and____call____call____call____call____call____call____call____call____call____call____call____call____call____call____call____cmp____coerce____coerce_ex____complex____contains____delattr____delattr____delete____delitem____delitem____delslice____delslice____dir____div____divmod____ensure_finalizer____eq____findattr____findattr____finditem____finditem____finditem____float____floordiv____format____ge____get____getattr____getattr____getitem____getitem____getnewargs____getslice____getslice____gt____hash____hex____iadd____iand____idiv____idivmod____ifloordiv____ilshift____imod____imul____index____int____invert____ior____ipow____irshift____isub____iter____iternext____itruediv____ixor____le____len____long____lshift____lt____mod____mul____ne____neg____nonzero____not____oct____or____pos____pow____pow____radd____rand____rawdir____rdiv____rdivmod____reduce____reduce_ex____reduce_ex____repr____rfloordiv____rlshift____rmod____rmul____ror____rpow____rrshift____rshift____rsub____rtruediv____rxor____set____setattr____setattr____setitem____setitem____setitem____setslice____setslice____str____sub____tojava____truediv____trunc____unicode____xor___add_and_callextra_cmp_div_divmod_doget_doget_doset_eq_floordiv_ge_gt_iadd_iand_idiv_idivmod_ifloordiv_ilshift_imod_imul_in_ior_ipow_irshift_is_isnot_isub_itruediv_ixor_jcall_jcallexc_jthrow_le_lshift_lt_mod_mul_ne_notin_or_pow_rshift_sub_truediv_unsupportedop_xoradaptToCoerceTupleasDoubleasIndexasIndexasIntasIntasIterableasLongasLongasNameasNameasStringasStringasStringOrNullasStringOrNullbit_lengthconjugatedelDictdelTypedispatch__init__equalsfastGetClassfastGetDictfinalizegetDictgetJavaProxygetTypehashCodeimpAttrimplementsDescrDeleteimplementsDescrGetimplementsDescrSetinvokeinvokeinvokeinvokeinvokeinvokeisCallableisDataDescrisIndexisIntegerisMappingTypeisNumberTypeisSequenceTypemergeClassDictmergeDictAttrmergeListAttrnoAttributeErrorobject___subclasshook__readonlyAttributeErrorrunsupportedopMessagesetDictsetTypeunsupportedopMessage

Field Detail

_docback to summary
private static final PyString _doc
SETback to summary
private static final String SET

Constructor Detail

Connectxback to summary
public Connectx()

Method Detail

__call__back to summary
public PyObject __call__(PyObject[] args, String[] keywords)

Overrides org.python.core.PyObject.__call__.

Construct a javax.sql.DataSource or javax.sql.ConnectionPooledDataSource

Parameters
args:PyObject[]

Doc from org.python.core.PyObject.__call__.

all arguments to the function (including keyword arguments).

keywords:String[]

Doc from org.python.core.PyObject.__call__.

the keywords used for all keyword arguments.

Annotations
@Override
__findattr_ex__back to summary
public PyObject __findattr_ex__(String name)

Overrides org.python.core.PyObject.__findattr_ex__.

Doc from org.python.core.PyObject.__findattr_ex__.

Attribute lookup hook. If the attribute is not found, null may be returned or a Py.AttributeError can be thrown, whatever is more correct, efficient and/or convenient for the implementing class. Client code should use __getattr__(String) or __findattr__(String). Both methods have a clear policy for failed lookups.

Returns:PyObject

The looked up value. May return null if the attribute is not found

Annotations
@Override
getMethodback to summary
protected Method getMethod(Class<?> srcClass, String methodName, Class<?> valueClass)

Try to find the method by the given name. If failing that, see if the valueClass is perhaps a primitive and attempt to recurse using the primitive type. Failing that return null.

invokeback to summary
protected void invoke(Object src, String methodName, Object value)

Method invoke

toStringback to summary
public String toString()

Overrides org.python.core.PyObject.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override