本文整理汇总了Java中org.jooq.Result.map方法的典型用法代码示例。如果您正苦于以下问题:Java Result.map方法的具体用法?Java Result.map怎么用?Java Result.map使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jooq.Result
的用法示例。
在下文中一共展示了Result.map方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getStationFromConnector
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public ExternalChargePointSelect getStationFromConnector(int connectorPK) {
Result<Record4<String, String, String, Integer>> record =
ctx.select(CHARGE_BOX.CHARGE_BOX_ID,
CHARGE_BOX.ENDPOINT_ADDRESS,
CHARGE_BOX.OCPP_PROTOCOL,
CONNECTOR.CONNECTOR_ID)
.from(CHARGE_BOX)
.join(CONNECTOR)
.on(CHARGE_BOX.CHARGE_BOX_ID.eq(CONNECTOR.CHARGE_BOX_ID))
.where(CONNECTOR.CONNECTOR_PK.eq(connectorPK))
.fetch();
List<ExternalChargePointSelect> bb = record.map(r -> {
OcppProtocol protocol = OcppProtocol.fromCompositeValue(r.value3());
ChargePointSelect s = new ChargePointSelect(protocol.getTransport(), r.value1(), r.value2());
return ExternalChargePointSelect.builder()
.version(protocol.getVersion())
.select(s)
.connectorId(r.value4())
.connectorPk(connectorPK)
.build();
});
if (bb == null || bb.isEmpty()) {
throw new SteveException("EVSE not found");
} else if (bb.size() == 1) {
return bb.get(0);
} else {
throw new SteveException("EVSE not found");
}
}
示例2: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<Application> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(SEARCH_POSTGRES, terms, terms, options.limit());
return records.map(ApplicationDao.TO_DOMAIN_MAPPER);
}
示例3: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<OrganisationalUnit> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(QUERY, terms, options.limit());
return records.map(OrganisationalUnitDao.TO_DOMAIN_MAPPER);
}
示例4: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<OrganisationalUnit> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(QUERY, terms, terms, options.limit());
return records.map(OrganisationalUnitDao.TO_DOMAIN_MAPPER);
}
示例5: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<ChangeInitiative> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(QUERY, terms, options.limit());
return records.map(ChangeInitiativeDao.TO_DOMAIN_MAPPER);
}
示例6: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<ChangeInitiative> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(SEARCH_POSTGRES, terms, terms, options.limit());
return records.map(ChangeInitiativeDao.TO_DOMAIN_MAPPER);
}
示例7: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<Measurable> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(QUERY, terms, options.limit());
return records.map(MeasurableDao.TO_DOMAIN_MAPPER);
}
示例8: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<Measurable> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(SEARCH_POSTGRES, terms, terms, options.limit());
return records.map(MeasurableDao.TO_DOMAIN_MAPPER);
}
示例9: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<Person> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(QUERY, terms, terms, options.limit());
return records.map(PersonDao.personMapper);
}
示例10: search
import org.jooq.Result; //导入方法依赖的package包/类
@Override
public List<Person> search(DSLContext dsl, String terms, EntitySearchOptions options) {
Result<Record> records = dsl.fetch(QUERY, terms, options.limit());
return records.map(PersonDao.personMapper);
}