|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.adapter.AbstractInputAdapter
com.rhi.architecture.parc.adapter.jdbc.JDBCInputAdapter
Generic JDBC InputAdapter.
Constructor Summary | |
JDBCInputAdapter()
Default Constructor |
Method Summary | |
protected void |
bindValues(java.sql.PreparedStatement stmt)
If necessary, bind the appropriate values to the PreparedStatement. |
protected long |
getBatchSize()
Get method for batch size - allows override by sub-classes |
protected java.lang.String |
getQuery()
Get method for SQL - allows override by sub-classes |
void |
init(java.util.Properties props)
Perform any resource initialization. |
protected java.util.Collection |
loadBatch()
Retrieve all the source records that should be processed by the pipeline. |
protected java.sql.PreparedStatement |
prepareStatement(java.sql.Connection conn)
Allow override of Statement preparation in cases where the Input Adapters should load batches of records. |
protected abstract Record |
readRow(java.sql.ResultSet rs)
Extract the attributes from the ResultSet and return a Record object. |
Methods inherited from class com.rhi.architecture.parc.adapter.AbstractInputAdapter |
addToErrorChannel, cleanup, getAuditAgent, getErrors, push, setAuditAgent, setErrorChannel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCInputAdapter()
Method Detail |
public void init(java.util.Properties props) throws InitializationException
init
in interface Adapter
init
in class AbstractInputAdapter
props
-
InitializationException
protected java.util.Collection loadBatch() throws ProcessingException
loadBatch
in class AbstractInputAdapter
ProcessingException
protected java.sql.PreparedStatement prepareStatement(java.sql.Connection conn) throws java.sql.SQLException
conn
-
java.sql.SQLException
protected java.lang.String getQuery()
protected long getBatchSize()
protected void bindValues(java.sql.PreparedStatement stmt) throws java.sql.SQLException
stmt
- - the prepared statement to be executed.
java.sql.SQLException
protected abstract Record readRow(java.sql.ResultSet rs) throws java.sql.SQLException
rs
-
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |