Class SqlFeedEndpoint
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.feed.client.sql.SqlFeedEndpoint
-
- All Implemented Interfaces:
FeedEndpoint<SqlFeedLocation,SqlFeedEntry,SqlFeedPage>
public class SqlFeedEndpoint extends Object implements FeedEndpoint<SqlFeedLocation,SqlFeedEntry,SqlFeedPage>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSqlFeedEndpoint.SqlValueReaderstatic interfaceSqlFeedEndpoint.SqlValueWriter
-
Constructor Summary
Constructors Constructor Description SqlFeedEndpoint(DataSource dataSource, String table, String column, int size)SqlFeedEndpoint(DataSource dataSource, String table, String column, int size, SqlFeedEndpoint.SqlValueReader reader, SqlFeedEndpoint.SqlValueWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SqlFeedPage>getFirstPage()Optional<SqlFeedLocation>getLastLocation()Optional<SqlFeedPage>getLastPage()Optional<SqlFeedPage>getPage(SqlFeedLocation location)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedEndpoint
getFirstPage, getLastPage, getPage
-
-
-
-
Constructor Detail
-
SqlFeedEndpoint
public SqlFeedEndpoint(DataSource dataSource, String table, String column, int size)
-
SqlFeedEndpoint
public SqlFeedEndpoint(DataSource dataSource, String table, String column, int size, SqlFeedEndpoint.SqlValueReader reader, SqlFeedEndpoint.SqlValueWriter writer)
-
-
Method Detail
-
getFirstPage
public Optional<SqlFeedPage> getFirstPage()
- Specified by:
getFirstPagein interfaceFeedEndpoint<SqlFeedLocation,SqlFeedEntry,SqlFeedPage>
-
getLastPage
public Optional<SqlFeedPage> getLastPage()
- Specified by:
getLastPagein interfaceFeedEndpoint<SqlFeedLocation,SqlFeedEntry,SqlFeedPage>
-
getLastLocation
public Optional<SqlFeedLocation> getLastLocation()
- Specified by:
getLastLocationin interfaceFeedEndpoint<SqlFeedLocation,SqlFeedEntry,SqlFeedPage>
-
getPage
public Optional<SqlFeedPage> getPage(SqlFeedLocation location)
- Specified by:
getPagein interfaceFeedEndpoint<SqlFeedLocation,SqlFeedEntry,SqlFeedPage>
-
-