public class MockRiverSource extends Object implements RiverSource<MockRiverContext>
| Constructor and Description |
|---|
MockRiverSource() |
public MockRiverSource()
public String strategy()
strategy in interface RiverSource<MockRiverContext>public RiverSource<MockRiverContext> newInstance()
newInstance in interface RiverSource<MockRiverContext>public RiverSource setRiverContext(MockRiverContext context)
setRiverContext in interface RiverSource<MockRiverContext>public void beforeFetch() throws Exception
beforeFetch in interface RiverSource<MockRiverContext>Exceptionpublic void afterFetch() throws Exception
afterFetch in interface RiverSource<MockRiverContext>Exceptionpublic void fetch() throws SQLException, IOException
fetch in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic RiverSource setUrl(String url)
setUrl in interface RiverSource<MockRiverContext>public RiverSource setUser(String user)
setUser in interface RiverSource<MockRiverContext>public RiverSource setPassword(String password)
setPassword in interface RiverSource<MockRiverContext>public Connection getConnectionForReading() throws SQLException
getConnectionForReading in interface RiverSource<MockRiverContext>SQLExceptionpublic Connection getConnectionForWriting() throws SQLException
getConnectionForWriting in interface RiverSource<MockRiverContext>SQLExceptionpublic PreparedStatement prepareQuery(String sql) throws SQLException
prepareQuery in interface RiverSource<MockRiverContext>SQLExceptionpublic PreparedStatement prepareUpdate(String sql) throws SQLException
prepareUpdate in interface RiverSource<MockRiverContext>SQLExceptionpublic RiverSource bind(PreparedStatement statement, List<Object> values) throws SQLException
bind in interface RiverSource<MockRiverContext>SQLExceptionpublic RiverSource register(CallableStatement statement, Map<String,Object> values) throws SQLException
register in interface RiverSource<MockRiverContext>SQLExceptionpublic ResultSet executeQuery(PreparedStatement statement) throws SQLException
executeQuery in interface RiverSource<MockRiverContext>SQLExceptionpublic ResultSet executeQuery(Statement statement, String sql) throws SQLException
executeQuery in interface RiverSource<MockRiverContext>SQLExceptionpublic RiverSource executeUpdate(PreparedStatement statement) throws SQLException
executeUpdate in interface RiverSource<MockRiverContext>SQLExceptionpublic RiverSource executeUpdate(Statement statement, String sql) throws SQLException
executeUpdate in interface RiverSource<MockRiverContext>SQLExceptionpublic void beforeRows(ResultSet result, KeyValueStreamListener listener) throws SQLException, IOException
beforeRows in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic void beforeRows(SQLCommand command, ResultSet result, KeyValueStreamListener listener) throws SQLException, IOException
beforeRows in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic boolean nextRow(ResultSet result, KeyValueStreamListener listener) throws SQLException, IOException
nextRow in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic boolean nextRow(SQLCommand command, ResultSet result, KeyValueStreamListener listener) throws SQLException, IOException
nextRow in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic void afterRows(ResultSet result, KeyValueStreamListener listener) throws SQLException, IOException
afterRows in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic void afterRows(SQLCommand command, ResultSet result, KeyValueStreamListener listener) throws SQLException, IOException
afterRows in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionpublic Object parseType(ResultSet result, Integer num, int type, Locale locale) throws SQLException, IOException, ParseException
parseType in interface RiverSource<MockRiverContext>SQLExceptionIOExceptionParseExceptionpublic RiverSource close(ResultSet result) throws SQLException
close in interface RiverSource<MockRiverContext>SQLExceptionpublic RiverSource close(Statement statement) throws SQLException
close in interface RiverSource<MockRiverContext>SQLExceptionpublic RiverSource closeReading()
closeReading in interface RiverSource<MockRiverContext>public RiverSource closeWriting()
closeWriting in interface RiverSource<MockRiverContext>public RiverSource setLocale(Locale locale)
setLocale in interface RiverSource<MockRiverContext>public Locale getLocale()
getLocale in interface RiverSource<MockRiverContext>public RiverSource setTimeZone(TimeZone timezone)
setTimeZone in interface RiverSource<MockRiverContext>public TimeZone getTimeZone()
getTimeZone in interface RiverSource<MockRiverContext>public void suspend() throws Exception
suspend in interface RiverSource<MockRiverContext>Exceptionpublic void resume() throws Exception
resume in interface RiverSource<MockRiverContext>Exceptionpublic void shutdown() throws IOException
shutdown in interface RiverSource<MockRiverContext>IOExceptionelasticsearch-river-jdbc