| Modifier and Type | Field and Description |
|---|---|
protected PyObject |
include
Field params, include
|
protected PyObject |
params
Field params, include
|
protected boolean |
sentHeader
Field sentHeader
|
protected java.lang.String |
sql
Field sql
|
connection, cursor, dataHandler, tableName| Constructor and Description |
|---|
DBSource(PyConnection connection,
java.lang.Class dataHandler,
java.lang.String tableName,
java.lang.String where,
PyObject include,
PyObject params)
Constructor for handling the generation of data.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createSql(java.lang.String where)
Create the sql string given the where clause.
|
void |
end()
Close the cursor.
|
PyObject |
next()
Return the next row in the result set.
|
void |
start()
Method start
|
protected java.lang.String sql
protected boolean sentHeader
protected PyObject params
protected PyObject include
public DBSource(PyConnection connection, java.lang.Class dataHandler, java.lang.String tableName, java.lang.String where, PyObject include, PyObject params)
connection - the database connectiondataHandler - a custom DataHandler for the cursor, can be NonetableName - the table in question on the source databasewhere - an optional where clause, defaults to '(1=1)' if nullinclude - the columns to be queried from the source, '*' if Noneparams - optional params to substituted in the where clauseprotected java.lang.String createSql(java.lang.String where)
public PyObject next()