Class ColumnWithSerialTypeExtractor
java.lang.Object
io.github.mfvanek.pg.checks.extractors.ColumnWithSerialTypeExtractor
- All Implemented Interfaces:
ResultSetExtractor<io.github.mfvanek.pg.model.column.ColumnWithSerialType>
public class ColumnWithSerialTypeExtractor
extends Object
implements ResultSetExtractor<io.github.mfvanek.pg.model.column.ColumnWithSerialType>
-
Method Summary
Modifier and TypeMethodDescriptionio.github.mfvanek.pg.model.column.ColumnWithSerialType
extractData
(ResultSet resultSet) Converts a row from database to an arbitrary domain model.static ResultSetExtractor<io.github.mfvanek.pg.model.column.ColumnWithSerialType>
of()
-
Method Details
-
extractData
@Nonnull public io.github.mfvanek.pg.model.column.ColumnWithSerialType extractData(@Nonnull ResultSet resultSet) throws SQLException Converts a row from database to an arbitrary domain model.- Specified by:
extractData
in interfaceResultSetExtractor<io.github.mfvanek.pg.model.column.ColumnWithSerialType>
- Parameters:
resultSet
- the ResultSet to extract data from- Returns:
- an arbitrary result object
- Throws:
SQLException
- if an SQLException is encountered getting column values or navigating
-
of
@Nonnull public static ResultSetExtractor<io.github.mfvanek.pg.model.column.ColumnWithSerialType> of()
-