Top Description Fields Constructors Methods
com.ziclix.python.sql.pipe.db

public abstract Class BaseDB

extends Object
Class Inheritance
Known Direct Subclasses
com.ziclix.python.sql.pipe.db.DBSink, com.ziclix.python.sql.pipe.db.DBSource
Imports
com.ziclix.python.sql.DataHandler, .PyConnection, .PyCursor, .zxJDBC, org.python.core.Py, java.lang.reflect.Constructor

Abstract class to assist in generating cursors.
Author
brian zimmer

Field Summary

Modifier and TypeField and Description
protected PyConnection
connection

Field connection

protected PyCursor
cursor

Field cursor

protected Class<T>
dataHandler

Field dataHandler

protected String
tableName

Field tableName

Constructor Summary

AccessConstructor and Description
public
BaseDB(PyConnection connection, Class<T> dataHandler, String tableName)

Construct the helper.

Method Summary

Modifier and TypeMethod and Description
protected PyCursor
cursor()

Create a new constructor and optionally bind a new DataHandler.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
protected PyConnection connection

Field connection

cursorback to summary
protected PyCursor cursor

Field cursor

dataHandlerback to summary
protected Class<T> dataHandler

Field dataHandler

tableNameback to summary
protected String tableName

Field tableName

Constructor Detail

BaseDBback to summary
public BaseDB(PyConnection connection, Class<T> dataHandler, String tableName)

Construct the helper.

Method Detail

cursorback to summary
protected PyCursor cursor()

Create a new constructor and optionally bind a new DataHandler. The new DataHandler must act as a Decorator, having a single argument constructor of another DataHandler. The new DataHandler is then expected to delegate all calls to the original while enhancing the functionality in any matter desired. This allows additional functionality without losing any previous work or requiring any complicated inheritance dependencies.