Search in sources :

Example 1 with LogicalFlowStatsDao

use of org.finos.waltz.data.logical_flow.LogicalFlowStatsDao in project waltz by khartec.

the class LogicalFlowStatsHarness method main.

public static void main(String[] args) throws ParseException {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(DIConfiguration.class);
    DSLContext dsl = ctx.getBean(DSLContext.class);
    LogicalFlowStatsDao dao = ctx.getBean(LogicalFlowStatsDao.class);
    Map<FlowDirection, Set<FlowInfo>> flowInfoByDirection = dao.getFlowInfoByDirection(mkRef(EntityKind.APPLICATION, 20506L), null);
    System.out.println("--done");
}
Also used : AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) Set(java.util.Set) FlowDirection(org.finos.waltz.model.FlowDirection) DSLContext(org.jooq.DSLContext) LogicalFlowStatsDao(org.finos.waltz.data.logical_flow.LogicalFlowStatsDao)

Aggregations

Set (java.util.Set)1 LogicalFlowStatsDao (org.finos.waltz.data.logical_flow.LogicalFlowStatsDao)1 FlowDirection (org.finos.waltz.model.FlowDirection)1 DSLContext (org.jooq.DSLContext)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1