java.lang.Object
io.helidon.dbclient.DbRowBase
- All Implemented Interfaces:
DbRow
Base
DbRow implementation.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDbRowBase(DbColumnBase[] columns, DbMapperManager dbMapperManager) -
Method Summary
Modifier and TypeMethodDescription<T> Tas(GenericType<T> type) Map this row to an object using aDbMapper.<T> TGet specific class instance representation of this row.<T> TGet specific class instance representation of this row.column(int index) Get a column in this row.Get a column in this row.voidIterate through each column in this row.
-
Constructor Details
-
DbRowBase
-
-
Method Details
-
column
Description copied from interface:DbRowGet a column in this row. Column is identified by its name. -
column
Description copied from interface:DbRowGet a column in this row. Column is identified by its index. -
forEach
Description copied from interface:DbRowIterate through each column in this row. -
as
Description copied from interface:DbRowGet specific class instance representation of this row. Mapper for target class must be already registered.- Specified by:
asin 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:DbRowMap this row to an object using aDbMapper.- Specified by:
asin 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:DbRowGet specific class instance representation of this row. Mapper for target class is provided as an argument.
-