Package org.qi4j.sample.dcicargo.sample_b.data.structure.handling

Examples of org.qi4j.sample.dcicargo.sample_b.data.structure.handling.HandlingEvent.trackingId()


            public Query<HandlingEventEntity> getQuery()
            {
                HandlingEvent eventTemplate = templateFor( HandlingEvent.class );

                QueryBuilder<HandlingEventEntity> qb = qbf.newQueryBuilder( HandlingEventEntity.class )
                    .where( QueryExpressions.eq( eventTemplate.trackingId().get().id(), trackingIdString ) );
                return uowf.currentUnitOfWork().newQuery( qb )
                    .orderBy( orderBy( eventTemplate.completionTime() ) );
            }
        };
    }
View Full Code Here


                {
                    HandlingEvent eventTemplate = templateFor( HandlingEvent.class );
                    QueryBuilder<HandlingEventEntity> qb = qbf.newQueryBuilder( HandlingEventEntity.class )
                        .where(
                            and(
                                eq( eventTemplate.trackingId().get().id(), c.trackingIdString ),
                                eq( eventTemplate.handlingEventType(), CLAIM )
                            )
                        );
                    Query<HandlingEventEntity> alreadyClaimed = uowf.currentUnitOfWork().newQuery( qb );
                    if( alreadyClaimed.count() > 0 )
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.