java.lang.Object
io.helidon.dbclient.DbRowBase
- All Implemented Interfaces:
DbRow
Base
DbRow
implementation.-
Constructor Summary
ModifierConstructorDescriptionprotected
DbRowBase
(DbColumnBase[] columns, DbMapperManager dbMapperManager) -
Method Summary
Modifier and TypeMethodDescription<T> T
as
(GenericType<T> type) Map this row to an object using aDbMapper
.<T> T
Get specific class instance representation of this row.<T> T
Get specific class instance representation of this row.column
(int index) Get a column in this row.Get a column in this row.void
Iterate through each column in this row.
-
Constructor Details
-
DbRowBase
-
-
Method Details
-
column
Description copied from interface:DbRow
Get a column in this row. Column is identified by its name. -
column
Description copied from interface:DbRow
Get a column in this row. Column is identified by its index. -
forEach
Description copied from interface:DbRow
Iterate through each column in this row. -
as
Description copied from interface:DbRow
Get specific class instance representation of this row. Mapper for target class must be already registered.- Specified by:
as
in interfaceDbRow
- Type Parameters:
T
- type of the returned value- Parameters:
type
- class of the returned value type- Returns:
- instance of requested class containing this database row
- Throws:
MapperException
- in case the mapping is not defined or fails
-
as
Description copied from interface:DbRow
Map this row to an object using aDbMapper
.- Specified by:
as
in interfaceDbRow
- Type Parameters:
T
- type to be returned- Parameters:
type
- type that supports generic declarations- Returns:
- typed row
- Throws:
MapperException
- in case the mapping is not defined or failsMapperException
- in case the mapping is not defined or fails
-
as
Description copied from interface:DbRow
Get specific class instance representation of this row. Mapper for target class is provided as an argument.
-